diff options
author | 2004-12-08 10:27:36 +0000 | |
---|---|---|
committer | 2004-12-08 10:27:36 +0000 | |
commit | 8a4251b7dab211cdf2b294c3d21c9768387b7637 (patch) | |
tree | 9d8e324677d85ff92d07db2367cd025c64a9c48e /dev-libs/botan/botan-1.4.4.ebuild | |
parent | works nicely on ppc (Manifest recommit) (diff) | |
download | gentoo-2-8a4251b7dab211cdf2b294c3d21c9768387b7637.tar.gz gentoo-2-8a4251b7dab211cdf2b294c3d21c9768387b7637.tar.bz2 gentoo-2-8a4251b7dab211cdf2b294c3d21c9768387b7637.zip |
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
Diffstat (limited to 'dev-libs/botan/botan-1.4.4.ebuild')
-rw-r--r-- | dev-libs/botan/botan-1.4.4.ebuild | 33 |
1 files changed, 22 insertions, 11 deletions
diff --git a/dev-libs/botan/botan-1.4.4.ebuild b/dev-libs/botan/botan-1.4.4.ebuild index f53df3ac3657..3dd689d7443d 100644 --- a/dev-libs/botan/botan-1.4.4.ebuild +++ b/dev-libs/botan/botan-1.4.4.ebuild @@ -1,14 +1,16 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/botan/botan-1.4.4.ebuild,v 1.1 2004/12/04 05:26:22 dragonheart Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/botan/botan-1.4.4.ebuild,v 1.2 2004/12/08 10:27:36 dragonheart Exp $ # Comments/fixes to lloyd@randombit.net (author) +inherit eutils + DESCRIPTION="A C++ crypto library" HOMEPAGE="http://botan.randombit.net/" SRC_URI="http://botan.randombit.net/files/Botan-${PV}.tgz" -KEYWORDS="~x86" +KEYWORDS="x86 ppc" SLOT="0" LICENSE="BSD" IUSE="bzlib zlib gmp ssl debug" @@ -27,25 +29,33 @@ RDEPEND="virtual/libc DEPEND="${RDEPEND} dev-lang/perl" +src_unpack() { + unpack ${A} + cd ${S} + epatch ${FILESDIR}/${P}-gcc34.patch || die "patch failed" +} + src_compile() { # Modules that should work under any semi-recent Unix - modules="alloc_mmap,es_egd,es_ftw,es_unix,fd_unix,ml_unix,tm_unix,mux_pthr" + local modules="alloc_mmap,es_egd,es_ftw,es_unix,fd_unix,ml_unix,tm_unix,mux_pthr" if useq bzlib; then modules="$modules,comp_bzip2"; fi - if use zlib; then modules="$modules,comp_zlib"; fi - if use gmp; then modules="$modules,eng_gmp"; fi - if use ssl; then modules="$modules,eng_ossl"; fi + if useq zlib; then modules="$modules,comp_zlib"; fi + if useq gmp; then modules="$modules,eng_gmp"; fi + if useq ssl; then modules="$modules,eng_ossl"; fi - # This is also supported on i586+ and sparcv9 - how to test for them? CCHOST? + # This is also supported on i586+ and sparcv9 - hope this is correct. if [ ${ARCH} = 'alpha' -o ${ARCH} = 'amd64' ] || \ - [ ${ARCH} = 'x86' -a ${CHOST:0:4} != "i386" -a ${CHOST:0:4} != "i486" ]; then + [ ${ARCH} = 'x86' -a ${CHOST:0:4} != "i386" -a ${CHOST:0:4} != "i486" ] || \ + [ ${CHOSTARCH} = 'sparc32-v9' -a ${PROFILE_ARCH} = 'sparc64' ]; then modules="$modules,tm_hard" fi # Also works on mips64 and sparc64 - if [ ${ARCH} = 'alpha' -o ${ARCH} = 'amd64' -o \ - ${ARCH} = 'ia64' -o ${ARCH} = 'ppc64' ]; then + if [ "${ARCH}" = 'alpha' -o "${ARCH}" = 'amd64' -o \ + "${ARCH}" = 'ia64' -o "${ARCH}" = 'ppc64' -o "${PROFILE_ARCH}" = 'mips64' ] || \ + [ "${CHOSTARCH}" = 'sparc32-v9' -a "${PROFILE_ARCH}" = 'sparc64' ]; then modules="$modules,mp_asm64" fi @@ -53,7 +63,7 @@ src_compile() { CHOSTARCH=$(echo ${CHOST} | cut -d - -f 1) cd ${S} - einfo "Enabling modules: " $(echo $modules | sed 's/,/ /g') + einfo "Enabling modules: " ${modules} # FIXME: We might actually be on *BSD or OS X... ./configure.pl --noauto gcc-linux-$CHOSTARCH --modules=$modules || @@ -62,6 +72,7 @@ src_compile() { } src_test() { + chmod -R ugo+rX ${S} emake check || die "emake check failed" env LD_LIBRARY_PATH=${S} ./check --validate || die "validation tests failed" } |