diff options
author | Dane Smith <smitdane@gmail.com> | 2010-10-12 19:25:09 -0400 |
---|---|---|
committer | Dane Smith <smitdane@gmail.com> | 2010-10-12 19:25:09 -0400 |
commit | f66ac56c5bbead58d69650df5b1bbbd4f68c9b8b (patch) | |
tree | 5b051a833a0454c52a4c3b2e3983ca3c267592dc | |
parent | Test ebuild for truecrypt (diff) | |
download | smithdanea-f66ac56c5bbead58d69650df5b1bbbd4f68c9b8b.tar.gz smithdanea-f66ac56c5bbead58d69650df5b1bbbd4f68c9b8b.tar.bz2 smithdanea-f66ac56c5bbead58d69650df5b1bbbd4f68c9b8b.zip |
New ebuild for botan to be tested
-rw-r--r-- | dev-libs/botan/ChangeLog | 275 | ||||
-rw-r--r-- | dev-libs/botan/Manifest | 9 | ||||
-rw-r--r-- | dev-libs/botan/botan-1.8.10.ebuild | 93 | ||||
-rw-r--r-- | dev-libs/botan/botan-1.8.8-r1.ebuild | 97 | ||||
-rw-r--r-- | dev-libs/botan/files/botan-1.8.8-darwin-install_name-fix.patch | 13 | ||||
-rw-r--r-- | dev-libs/botan/files/botan-1.8.8-use_negative_lea_displacement.patch | 29 | ||||
-rw-r--r-- | dev-libs/botan/metadata.xml | 10 |
7 files changed, 526 insertions, 0 deletions
diff --git a/dev-libs/botan/ChangeLog b/dev-libs/botan/ChangeLog new file mode 100644 index 0000000..4635c32 --- /dev/null +++ b/dev-libs/botan/ChangeLog @@ -0,0 +1,275 @@ +# ChangeLog for dev-libs/botan +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/botan/ChangeLog,v 1.60 2010/04/18 17:17:37 nixnut Exp $ + + 18 Apr 2010; <nixnut@gentoo.org> botan-1.8.8-r1.ebuild: + ppc stable #312177 + + 08 Apr 2010; Christian Faulhammer <fauli@gentoo.org> + botan-1.8.8-r1.ebuild: + stable x86, bug 312177 + + 05 Apr 2010; Markos Chandras <hwoarang@gentoo.org> botan-1.8.8-r1.ebuild: + Stable on amd64 wrt bug #312177 + + 30 Mar 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + botan-1.8.8-r1.ebuild: + Set Python 2 as active version of Python. + + 04 Feb 2010; Markos Chandras <hwoarang@gentoo.org> botan-1.8.8.ebuild: + Stable on amd64 wrt bug #295701 + +*botan-1.8.8-r1 (23 Jan 2010) + + 23 Jan 2010; Fabian Groffen <grobian@gentoo.org> +botan-1.8.8-r1.ebuild, + +files/botan-1.8.8-darwin-install_name-fix.patch: + Revbump for Prefix/OSX fixes. I changed the ebuild in such a way that + needs less sedding/fixing afterwards basically because I had to to get a + correct install_name on Darwin. Also support case-insensitive filesystems + for the docs installation. Marked ~ppc-macos, fixes bug #299620. + + 28 Dec 2009; Markus Meier <maekke@gentoo.org> botan-1.8.8.ebuild: + x86 stable, bug #295701 + + 09 Dec 2009; nixnut <nixnut@gentoo.org> botan-1.8.8.ebuild: + ppc stable #295701 + + 07 Dec 2009; Markus Meier <maekke@gentoo.org> botan-1.8.7.ebuild: + amd64 stable, bug #291749 + + 04 Nov 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + botan-1.8.8.ebuild, + +files/botan-1.8.8-use_negative_lea_displacement.patch: + Fix building with sys-devel/binutils-2.20.51.0.2 (bug #291785). + +*botan-1.8.8 (03 Nov 2009) + + 03 Nov 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + -botan-1.8.4.ebuild, -botan-1.8.6.ebuild, +botan-1.8.8.ebuild: + Version bump. + + 03 Nov 2009; Christian Faulhammer <fauli@gentoo.org> botan-1.8.7.ebuild: + stable x86, bug 289437 + + 24 Oct 2009; nixnut <nixnut@gentoo.org> botan-1.8.7.ebuild: + ppc stable #289437 + + 27 Sep 2009; nixnut <nixnut@gentoo.org> botan-1.8.6.ebuild: + ppc stable #285156 + +*botan-1.8.7 (13 Sep 2009) + + 13 Sep 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + -botan-1.6.5.ebuild, -botan-1.8.2.ebuild, + -files/botan-1.8.2-respect_LDFLAGS.patch, -botan-1.8.5.ebuild, + +botan-1.8.7.ebuild: + Version bump. + + 12 Sep 2009; Christian Faulhammer <fauli@gentoo.org> botan-1.8.4.ebuild: + stable x86, bug 281841 + + 29 Aug 2009; nixnut <nixnut@gentoo.org> botan-1.8.4.ebuild: + ppc stable #281841 + +*botan-1.8.6 (17 Aug 2009) + + 17 Aug 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + +botan-1.8.6.ebuild: + Version bump. + +*botan-1.8.5 (09 Aug 2009) + + 09 Aug 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + -botan-1.8.0.ebuild, +botan-1.8.5.ebuild: + Version bump. + + 09 Aug 2009; nixnut <nixnut@gentoo.org> botan-1.8.2.ebuild: + ppc stable #277122 + +*botan-1.8.4 (15 Jul 2009) + + 15 Jul 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + +botan-1.8.4.ebuild: + Version bump (bug #277453). + + 09 Jul 2009; Christian Faulhammer <fauli@gentoo.org> botan-1.8.2.ebuild: + stable x86, bug 277122 + +*botan-1.8.2 (06 Jun 2009) + + 06 Jun 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + +botan-1.8.2.ebuild, +files/botan-1.8.2-respect_LDFLAGS.patch: + Version bump. Respect LDFLAGS. Fix building with --as-needed (bug + #272242). + + 29 Apr 2009; Raúl Porcel <armin76@gentoo.org> botan-1.8.0.ebuild: + Add ~ia64 wrt #267773 + + 15 Jan 2009; Daniel Black <dragonheart@gentoo.org> botan-1.8.0.ebuild: + remove alg_ia32 as per bug #253716 thanks Helmut Jarausch, Nickolay + Kolchin-Semyonov et. al + +*botan-1.8.0 (03 Jan 2009) + + 03 Jan 2009; Daniel Black <dragonheart@gentoo.org> +botan-1.8.0.ebuild: + version bump + + 30 Aug 2008; Daniel Black <dragonheart@gentoo.org> botan-1.6.1-r1.ebuild, + botan-1.6.5.ebuild: + fixed URLs as per bug #235957 + +*botan-1.6.5 (30 Aug 2008) + + 30 Aug 2008; Daniel Black <dragonheart@gentoo.org> +botan-1.6.5.ebuild: + version bump as per bug #235957 thanks to Jack Lloyd + + 18 Jun 2008; Daniel Black <dragonheart@gentoo.org> + files/botan-1.6.1-gcc-4.2.patch, +files/botan-1.6.1-gcc-4.3.patch, + botan-1.6.1-r1.ebuild: + patch for gcc-4.3 compatibility thanks to Jack. bug #227535 + + 02 May 2008; Alon Bar-Lev <alonbl@gentoo.org> + +files/botan-1.6.1-gcc-4.2.patch, botan-1.6.1-r1.ebuild: + Fix bug#219896, thanks to Nickolay Kolchin-Semyonov and Jack Lloyd, also fix + g++ CHOST usage + + 11 Nov 2007; Alon Bar-Lev <alonbl@gentoo.org> -botan-1.6.1.ebuild: + Cleanup + + 11 Nov 2007; Dawid Węgliński <cla@gentoo.org> botan-1.6.1-r1.ebuild: + Stable on x86 (bug #198684) + + 10 Nov 2007; Ferris McCormick <fmccor@gentoo.org> botan-1.6.1-r1.ebuild: + Sparc stable --- Bug #198684 --- all tests pass. + + 10 Nov 2007; nixnut <nixnut@gentoo.org> botan-1.6.1-r1.ebuild: + Stable on ppc wrt bug 19864 + + 15 Oct 2007; Alon Bar-Lev <alonbl@gentoo.org> + -files/botan-1.4.4-gcc34.patch, -files/botan-1.4.9-gcc-4.patch, + -files/botan-1.5.11-asm.patch, -botan-1.4.4.ebuild, -botan-1.4.9.ebuild, + -botan-1.4.11.ebuild, -botan-1.4.12.ebuild, -botan-1.5.5.ebuild, + -botan-1.5.11.ebuild, +botan-1.6.1-r1.ebuild: + Cleanup + +*botan-1.6.1-r1 (15 Oct 2007) + + 15 Oct 2007; Alon Bar-Lev <alonbl@gentoo.org> +botan-1.6.1-r1.ebuild: + Fix lib location, bug#195982, thanks to Jean Krohn + + 13 Aug 2007; Tobias Scherbaum <dertobi123@gentoo.org> botan-1.6.1.ebuild: + ppc. stable + + 24 May 2007; Gustavo Zacarias <gustavoz@gentoo.org> botan-1.6.1.ebuild: + Stable on sparc + + 24 Apr 2007; Raúl Porcel <armin76@gentoo.org> botan-1.6.1.ebuild: + x86 stable + + 03 Mar 2007; Marius Mauch <genone@gentoo.org> botan-1.4.4.ebuild, + botan-1.4.9.ebuild, botan-1.4.11.ebuild, botan-1.4.12.ebuild, + botan-1.5.5.ebuild, botan-1.5.11.ebuild, botan-1.6.1.ebuild: + Replacing einfo with elog + +*botan-1.6.1 (20 Jan 2007) + + 20 Jan 2007; Alon Bar-Lev <alonbl@gentoo.org> + +files/botan-1.6.1-asm.patch, +botan-1.6.1.ebuild: + Version bump, bug#162916, thanks to Jack Lloyd + + 27 Dec 2006; Piotr Jaroszyński <peper@gentoo.org> botan-1.5.11.ebuild: + Add ~amd64 wrt bug #152692. + + 24 Nov 2006; Alon Bar-Lev <alonbl@gentoo.org> botan-1.5.11.ebuild: + Added multilib support, thanks to Christoph Mende, closes bug#156065 + +*botan-1.5.11 (24 Oct 2006) + + 24 Oct 2006; Alon Bar-Lev <alonbl@gentoo.org> + +files/botan-1.5.11-asm.patch, +botan-1.5.11.ebuild: + Version bump, thanks to Jack Lloyd, added executable stack fix, closes + bug#149213 + + 20 Feb 2006; Mark Loeser <halcy0n@gentoo.org> botan-1.5.5.ebuild: + Clean up leading whitespaces, add additional quoting, and drop the + virtual/libc dep + +*botan-1.5.5 (20 Feb 2006) + + 20 Feb 2006; Daniel Black <dragonheart@gentoo.org> +botan-1.5.5.ebuild: + version bump as per bug #121672 thanks to author Jack Lloyd + +*botan-1.4.12 (22 Jan 2006) + + 22 Jan 2006; Daniel Black <dragonheart@gentoo.org> +botan-1.4.12.ebuild: + version bump + + 07 Jan 2006; <nixnut@gentoo.org> botan-1.4.9.ebuild: + Stable on ppc Bug #118002 + + 06 Jan 2006; Paul Varner <fuzzyray@gentoo.org> botan-1.4.9.ebuild: + Stable on x86 Bug #118002 + + 06 Jan 2006; Gustavo Zacarias <gustavoz@gentoo.org> botan-1.4.9.ebuild: + Stable on sparc wrt #118002 + +*botan-1.4.11 (06 Jan 2006) + + 06 Jan 2006; Daniel Black <dragonheart@gentoo.org> + +files/botan-1.4.9-gcc-4.patch, -botan-1.4.6.ebuild, -botan-1.4.7.ebuild, + -botan-1.4.8.ebuild, botan-1.4.9.ebuild, +botan-1.4.11.ebuild: + version bump as promised in bug #117548. Fixes compile problem with gcc-4 as + well. Thanks Lloyd and Dirk + +*botan-1.4.9 (08 Nov 2005) + + 08 Nov 2005; Daniel Black <dragonheart@gentoo.org> +botan-1.4.9.ebuild: + version bump + +*botan-1.4.8 (18 Oct 2005) + + 18 Oct 2005; Daniel Black <dragonheart@gentoo.org> +botan-1.4.8.ebuild: + version bump + +*botan-1.4.7 (28 Sep 2005) + + 28 Sep 2005; Daniel Black <dragonheart@gentoo.org> +botan-1.4.7.ebuild: + version bump + + 29 Jul 2005; Daniel Black <dragonheart@gentoo.org> botan-1.4.4.ebuild: + removed die from epatch || die. + +*botan-1.4.6 (25 Jun 2005) + + 25 Jun 2005; Daniel Black <dragonheart@gentoo.org> -botan-1.4.3.ebuild, + botan-1.4.4.ebuild, +botan-1.4.6.ebuild: + version bump thanks to meatoo. old version removed + + 01 Jun 2005; Mike Frysinger <vapier@gentoo.org> botan-1.4.3.ebuild, + botan-1.4.4.ebuild: + Change USE=bzlib to USE=bzip2. + + 09 Dec 2004; Gustavo Zacarias <gustavoz@gentoo.org> botan-1.4.4.ebuild: + Stable on sparc wrt #71760, fixed the whole sparc mess too + + 08 Dec 2004; Daniel Black <dragonheart@gentoo.org> botan-1.4.4.ebuild, + +files/botan-1.4.4-gcc34.patch: + Added patch to fix local problem with gcc recognision. Fixed test src_test + routine. Added support for module tm_hard in sparc64, mips64 and i586+. ppc + tested too + +*botan-1.4.4 (04 Dec 2004) + + 04 Dec 2004; Daniel Black <dragonheart@gentoo.org> botan-1.4.3.ebuild, + +botan-1.4.4.ebuild: + Version bump. Added --dumb-gcc to configure.pl as per bug #71760 + (botan-1.4.3). Thanks to Jack Lloyd <lloyd@randombit.net> and Stefan + Schweizer <genstef@gentoo.org> + +*botan-1.4.3 (09 Nov 2004) + + 09 Nov 2004; Daniel Black <dragonheart@gentoo.org> +metadata.xml, + +botan-1.4.3.ebuild: + initial import as per bug #51938. Thanks to the author (Jack Lloyd + <lloyd@randombit.net>) for the program and ebuild + diff --git a/dev-libs/botan/Manifest b/dev-libs/botan/Manifest new file mode 100644 index 0000000..3c814c0 --- /dev/null +++ b/dev-libs/botan/Manifest @@ -0,0 +1,9 @@ +AUX botan-1.8.8-darwin-install_name-fix.patch 511 RMD160 40f5e7361f991de21ca0599b2e51954b6b10f573 SHA1 ad7afc7d13cdd90d72437e160a94568f8cedf48b SHA256 fca8d469d78ae2ec7e26dbef9732e4a73223173565135e48678d0d3f81785e17 +AUX botan-1.8.8-use_negative_lea_displacement.patch 884 RMD160 c259f4d51f3c25df93d2cf99f9f29d6f2f92ea5d SHA1 d5b3deec6fadaea2b2fc41e3b62ca38c8c007f16 SHA256 b88d8a5af5a849e7a0ecbce70d63f5348cb15fd156440080e6f8e6d569084784 +DIST Botan-1.8.10.tbz 2828431 RMD160 fff0f22e768da4e6f0afca434602a4a76f78a006 SHA1 9da4809ba408e98b65f818ebf6aec4fbb61d9b59 SHA256 e9da2d0f6a107f2a2032a5a1dcd27091f4a6ed428d896def5c91b4908be5fb6d +DIST Botan-1.8.8.tgz 2844588 RMD160 f8ac1842ddba312903442038d32da57f25f9bc1b SHA1 699df8f0c5e8d48fa8c65a873bb2e9975d4d66c5 SHA256 60a31bd9ed18ac85293d7f44c7fbb9bd0206eb7df5b42dff8517dd01b446ba84 +EBUILD botan-1.8.10.ebuild 2423 RMD160 5eb9a03c4b37508118c9f4088eb0c3ead690f024 SHA1 d43e32efc62c61ec7548a6d8fe67b2e2b24b5380 SHA256 40f52a82ec0c312df5f12d79e4880991d5c21ba8404073e7b7104dedaa8ee952 +EBUILD botan-1.8.8-r1.ebuild 2545 RMD160 bf8adc409539138c015854cf3ae625de9c6f2017 SHA1 d8d55ce0b1edcd6846f244813b86a4df77835e09 SHA256 f5fabda52dfa1e13f6a7049e67d0162ea71f3c982b42036e5de8742fb3714ccf +MISC ChangeLog 9370 RMD160 2864d801d065e552ae0501e07848abdef019f971 SHA1 e0d308960b4adfc764139ff5eab5b73a4f15e5ca SHA256 f4c1a0cf7b53ff569f060c8f723000ebfe931cc573821646883211c2a70908a3 +MISC botan-1.8.10.ebuild~ 2427 RMD160 ab019878fd4aab0adf747655c2b812299b29b0cc SHA1 c6da3a1430c284970f9474c017f9eb9add4bef75 SHA256 30a6b739ef97d12631a6abf08bf672e4c4c575c695d0dc03814b92b85b00969e +MISC metadata.xml 319 RMD160 084032a656409b8d666fa6e9c0b0f89e3ef955e7 SHA1 77d4f800c80c56a3191d488ef2d6444ab165cee3 SHA256 c0597f70f00af70ca6f77bf906babe3059717b8c1e91a74c61904008e0c14054 diff --git a/dev-libs/botan/botan-1.8.10.ebuild b/dev-libs/botan/botan-1.8.10.ebuild new file mode 100644 index 0000000..a6d29c7 --- /dev/null +++ b/dev-libs/botan/botan-1.8.10.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/botan/botan-1.8.8-r1.ebuild,v 1.5 2010/04/18 17:17:37 nixnut Exp $ + +EAPI="3" +PYTHON_DEPEND="2" +inherit eutils multilib python toolchain-funcs + +MY_PN="Botan" +MY_P="${MY_PN}-${PV}" +DESCRIPTION="A C++ crypto library" +HOMEPAGE="http://botan.randombit.net/" +SRC_URI="http://files.randombit.net/botan/${MY_P}.tbz" + +KEYWORDS="~amd64 ~ia64 ~ppc ~sparc ~x86 ~ppc-macos" +SLOT="0" +LICENSE="BSD" +IUSE="bzip2 gmp ssl threads zlib" + +S="${WORKDIR}/${MY_P}" + +RDEPEND="bzip2? ( >=app-arch/bzip2-1.0.5 ) + zlib? ( >=sys-libs/zlib-1.2.3 ) + gmp? ( >=dev-libs/gmp-4.2.2 ) + ssl? ( >=dev-libs/openssl-0.9.8g )" + +DEPEND="${RDEPEND}" + +pkg_setup() { + python_set_active_version 2 +} + +src_prepare() { + # Install documentation in /usr/share/doc/${PF}. + sed -e "/^DOCDIR *=/s/Botan-\$(VERSION)/${PF}/" -i src/build-data/makefile/unix_shr.in || die "sed failed" +} + +src_configure() { + local disable_modules="proc_walk,unix_procs,cpu_counter" + + if ! useq threads; then + disable_modules="${disable_modules},pthreads" + fi + + # Enable v9 instructions for sparc64 + if [[ "${PROFILE_ARCH}" = "sparc64" ]]; then + CHOSTARCH="sparc32-v9" + else + CHOSTARCH="${CHOST%%-*}" + fi + + cd "${S}" + elog "Disabling modules: ${disable_modules}" + + local myos= + case ${CHOST} in + *-darwin*) myos=darwin ;; + *) myos=linux ;; + esac + + # foobared buildsystem, --prefix translates into DESTDIR, see also make + # install in src_install, we need the correct live-system prefix here on + # Darwin for a shared lib with correct install_name + ./configure.py \ + --prefix="${EPREFIX}/usr" \ + --libdir=$(get_libdir) \ + --docdir=share/doc \ + --cc=gcc \ + --os=${myos} \ + --cpu=${CHOSTARCH} \ + --with-endian="$(tc-endian)" \ + --with-tr1=system \ + $(use_with bzip2) \ + $(use_with gmp gnump) \ + $(use_with ssl openssl) \ + $(use_with zlib) \ + --disable-modules=${disable_modules} \ + || die "configure.py failed" +} + +src_compile() { + emake CXX="$(tc-getCXX)" AR="$(tc-getAR) crs" LIB_OPT="${CXXFLAGS}" MACH_OPT="" || die "emake failed" +} + +src_test() { + chmod -R ugo+rX "${S}" + emake CXX="$(tc-getCXX)" CHECK_OPT="${CXXFLAGS}" check || die "emake check failed" + LD_LIBRARY_PATH="${S}" ./check --validate || die "Validation tests failed" +} + +src_install() { + emake DESTDIR="${ED}usr" install || die "emake install failed" +} diff --git a/dev-libs/botan/botan-1.8.8-r1.ebuild b/dev-libs/botan/botan-1.8.8-r1.ebuild new file mode 100644 index 0000000..debcb21 --- /dev/null +++ b/dev-libs/botan/botan-1.8.8-r1.ebuild @@ -0,0 +1,97 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/botan/botan-1.8.8-r1.ebuild,v 1.5 2010/04/18 17:17:37 nixnut Exp $ + +EAPI="3" + +inherit eutils multilib python toolchain-funcs + +MY_PN="Botan" +MY_P="${MY_PN}-${PV}" +DESCRIPTION="A C++ crypto library" +HOMEPAGE="http://botan.randombit.net/" +SRC_URI="http://files.randombit.net/botan/${MY_P}.tgz" + +KEYWORDS="amd64 ~ia64 ppc ~sparc x86 ~ppc-macos" +SLOT="0" +LICENSE="BSD" +IUSE="bzip2 gmp ssl threads zlib" + +S="${WORKDIR}/${MY_P}" + +RDEPEND="bzip2? ( >=app-arch/bzip2-1.0.5 ) + zlib? ( >=sys-libs/zlib-1.2.3 ) + gmp? ( >=dev-libs/gmp-4.2.2 ) + ssl? ( >=dev-libs/openssl-0.9.8g )" + +DEPEND="${RDEPEND} + =dev-lang/python-2*" + +pkg_setup() { + python_set_active_version 2 +} + +src_prepare() { + epatch "${FILESDIR}/${P}-use_negative_lea_displacement.patch" + epatch "${FILESDIR}/${P}-darwin-install_name-fix.patch" + + # Install documentation in /usr/share/doc/${PF}. + sed -e "/^DOCDIR *=/s/Botan-\$(VERSION)/${PF}/" -i src/build-data/makefile/unix_shr.in || die "sed failed" +} + +src_configure() { + local disable_modules="proc_walk,unix_procs,cpu_counter" + + if ! useq threads; then + disable_modules="${disable_modules},pthreads" + fi + + # Enable v9 instructions for sparc64 + if [[ "${PROFILE_ARCH}" = "sparc64" ]]; then + CHOSTARCH="sparc32-v9" + else + CHOSTARCH="${CHOST%%-*}" + fi + + cd "${S}" + elog "Disabling modules: ${disable_modules}" + + local myos= + case ${CHOST} in + *-darwin*) myos=darwin ;; + *) myos=linux ;; + esac + + # foobared buildsystem, --prefix translates into DESTDIR, see also make + # install in src_install, we need the correct live-system prefix here on + # Darwin for a shared lib with correct install_name + ./configure.py \ + --prefix="${EPREFIX}/usr" \ + --libdir=$(get_libdir) \ + --docdir=share/doc \ + --cc=gcc \ + --os=${myos} \ + --cpu=${CHOSTARCH} \ + --with-endian="$(tc-endian)" \ + --with-tr1=system \ + $(use_with bzip2) \ + $(use_with gmp gnump) \ + $(use_with ssl openssl) \ + $(use_with zlib) \ + --disable-modules=${disable_modules} \ + || die "configure.py failed" +} + +src_compile() { + emake CXX="$(tc-getCXX)" AR="$(tc-getAR) crs" LIB_OPT="${CXXFLAGS}" MACH_OPT="" || die "emake failed" +} + +src_test() { + chmod -R ugo+rX "${S}" + emake CXX="$(tc-getCXX)" CHECK_OPT="${CXXFLAGS}" check || die "emake check failed" + LD_LIBRARY_PATH="${S}" ./check --validate || die "Validation tests failed" +} + +src_install() { + emake DESTDIR="${ED}usr" install || die "emake install failed" +} diff --git a/dev-libs/botan/files/botan-1.8.8-darwin-install_name-fix.patch b/dev-libs/botan/files/botan-1.8.8-darwin-install_name-fix.patch new file mode 100644 index 0000000..d749ea0 --- /dev/null +++ b/dev-libs/botan/files/botan-1.8.8-darwin-install_name-fix.patch @@ -0,0 +1,13 @@ +install_names (sonames) on Darwin are absolute + +--- src/build-data/cc/gcc.txt ++++ src/build-data/cc/gcc.txt +@@ -31,7 +31,7 @@ + # AIX doesn't seem to have soname support (weird...) + aix -> "$(CXX) -shared -fPIC" + +-darwin -> "$(CXX) -dynamiclib -fPIC -install_name $(SONAME)" ++darwin -> "$(CXX) -dynamiclib -fPIC -install_name $(LIBDIR)/$(SONAME)" + hpux -> "$(CXX) -shared -fPIC -Wl,+h,$(SONAME)" + solaris -> "$(CXX) -shared -fPIC -Wl,-h,$(SONAME)" + # Gotta use ld directly on BeOS, their GCC is busted diff --git a/dev-libs/botan/files/botan-1.8.8-use_negative_lea_displacement.patch b/dev-libs/botan/files/botan-1.8.8-use_negative_lea_displacement.patch new file mode 100644 index 0000000..50faa56 --- /dev/null +++ b/dev-libs/botan/files/botan-1.8.8-use_negative_lea_displacement.patch @@ -0,0 +1,29 @@ +# +# old_revision [a101c8c86b755a666c72baf03154230e09e0667e] +# +# patch "src/hash/sha1_amd64/sha1_amd64_imp.S" +# from [dd263db10309950dec501dd9257a8df43cf6c6aa] +# to [ab1db7a394b41a1d3b9a63a6e8e1571e4671b962] +# +============================================================ +--- src/hash/sha1_amd64/sha1_amd64_imp.S dd263db10309950dec501dd9257a8df43cf6c6aa ++++ src/hash/sha1_amd64/sha1_amd64_imp.S ab1db7a394b41a1d3b9a63a6e8e1571e4671b962 +@@ -103,10 +103,16 @@ ALIGN; + + subq $320, W + ++/* ++* Using negative values for SHA-1 constants > 2^31 to work around ++* a bug in binutils not accepting large lea displacements. ++* -0x70E44324 == 0x8F1BBCDC ++* -0x359D3E2A == 0xCA62C1D6 ++*/ + #define MAGIC1 0x5A827999 + #define MAGIC2 0x6ED9EBA1 +-#define MAGIC3 0x8F1BBCDC +-#define MAGIC4 0xCA62C1D6 ++#define MAGIC3 -0x70E44324 ++#define MAGIC4 -0x359D3E2A + + #define T %esi + #define T2 %eax diff --git a/dev-libs/botan/metadata.xml b/dev-libs/botan/metadata.xml new file mode 100644 index 0000000..b7c2217 --- /dev/null +++ b/dev-libs/botan/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>crypto</herd> +<maintainer> + <email>lloyd@randombit.net</email> + <name>Jack Lloyd </name> + <description>Ebuild contributor and botan author</description> +</maintainer> +</pkgmetadata> |