summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2013-08-10 18:29:20 +0000
committerAlexis Ballier <aballier@gentoo.org>2013-08-10 18:29:20 +0000
commitf96b99486f7bbaf3570e1e1dd2af2ccfa4599c86 (patch)
tree350c296b16d5335f8092393d6cc556862fa32d90 /sci-libs
parent0.9.43 version bump. (diff)
downloadhistorical-f96b99486f7bbaf3570e1e1dd2af2ccfa4599c86.tar.gz
historical-f96b99486f7bbaf3570e1e1dd2af2ccfa4599c86.tar.bz2
historical-f96b99486f7bbaf3570e1e1dd2af2ccfa4599c86.zip
convert to multilib
Package-Manager: portage-2.2.0_alpha196/cvs/Linux x86_64 Manifest-Sign-Key: 0x160F534A
Diffstat (limited to 'sci-libs')
-rw-r--r--sci-libs/djbfft/ChangeLog7
-rw-r--r--sci-libs/djbfft/Manifest11
-rw-r--r--sci-libs/djbfft/djbfft-0.76-r2.ebuild68
3 files changed, 80 insertions, 6 deletions
diff --git a/sci-libs/djbfft/ChangeLog b/sci-libs/djbfft/ChangeLog
index b7b7e8ee88ff..35fe64442932 100644
--- a/sci-libs/djbfft/ChangeLog
+++ b/sci-libs/djbfft/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sci-libs/djbfft
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/djbfft/ChangeLog,v 1.20 2013/01/14 10:05:22 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/djbfft/ChangeLog,v 1.21 2013/08/10 18:29:14 aballier Exp $
+
+*djbfft-0.76-r2 (10 Aug 2013)
+
+ 10 Aug 2013; Alexis Ballier <aballier@gentoo.org> +djbfft-0.76-r2.ebuild:
+ convert to multilib
14 Jan 2013; Justin Lecher <jlec@gentoo.org> -djbfft-0.76.ebuild,
metadata.xml:
diff --git a/sci-libs/djbfft/Manifest b/sci-libs/djbfft/Manifest
index 1f6a014b2ed9..e6db9b0b7dab 100644
--- a/sci-libs/djbfft/Manifest
+++ b/sci-libs/djbfft/Manifest
@@ -6,12 +6,13 @@ AUX djbfft-0.76-headers.patch 995 SHA256 783ef6cf4b82af55efc6d038aa0fe2f76c81dcd
AUX djbfft-0.76-shared.patch 3722 SHA256 bbe7f027a29428265e44d4f966808b4d752c523c340d13d8f037233bc45e6ad1 SHA512 58bc4d65553a6642a1b9a25a5b57974325f201dcec5758c7bf4c86da6b0a9fa018f1099af98234e7fbcbe29b398ac22d40c25069b9b987b41f547630f2799c1a WHIRLPOOL f18a357252394a1bb0f6b595d74941912d1d9c50525f645895355d25a5a9f0d5c3ce17655426adc8254e009c1424fa393d57395ecad9a31027f1aebf9ffcfb91
DIST djbfft-0.76.tar.gz 80092 SHA256 799d929c3631a77ef0e16a2449e4fc11af8540b62359f8733ac2899fca2b394c SHA512 f23e5f80d2737476feea4ed65d7d022c4ca74748a2ff7b3b9338fdea4f72b4009d1c5909325382647feab837bec078231eddc3fc3bd0b5ae3346690e5edef530 WHIRLPOOL 710c694eeb92f4baf37e8ebb2658c2d8757a129354a240a47aff3891bd68f0d955caaa3b20524df259fcb415b6d7d40db8d60dd6d657b36397c1007569396058
EBUILD djbfft-0.76-r1.ebuild 1812 SHA256 e8e1b209093b27340c0249127c265871df0f7879bebf0f3312f77082c3c9281c SHA512 aeb3bdd01997003b1e2a0b7532258b30b8cbf9118f832aa53befc3050516f08d0b8ce7fb251b312b7a9e10c502e308b5793c92e82adccad6a96d66ce07242624 WHIRLPOOL d3e6ce303437bea06f1f2d4d6d2344d6c1f2ac065adf5efe2e3e99aea6864c12a58bc20eb32f2bb24d45118aa85d51c09c715b0bbac4f5d93827e0a7ad868eaa
-MISC ChangeLog 4160 SHA256 a710b77460fa0a0bec315b46a9aa9b82cf4b2b0c3ebe35cf176439b9db9a3bc1 SHA512 8a782bf840b9e08642fb5c95e52cca745379663f9b41f41999f03158f23f2b21bd6e21deb1a6bc083638972ac1cb28b616d37ff94220fe9bb3537cbea1276e80 WHIRLPOOL 902cb5ec4bd930b3cec95964fd7c4c192f703ac73330dbf1f0e34da0f2f70de8de1b6f88d4d659457dd326b6d29087d465a84edff324db5e407402271bdcd0f3
+EBUILD djbfft-0.76-r2.ebuild 1932 SHA256 95a447b5bdbce64ace179088390bb25ba80382b6dccd6ba706c7fe66f367e085 SHA512 93fd8963724532cfd5950d88669d4f0c0a0ca4519b5abf5f3ff9ae19fcf380a3aee04d671bdb9d4d318b05cf081e2eb870c65c176e21f42a75c122ceddcf55e1 WHIRLPOOL e8c16c5f6ef8927672f0c0509f1e1619ed35f977d2519c5cacf99e0b8ce847134aa072c98a4a3c4916c888823218c6cd1a382f791d813e52e4abcbdb029afef4
+MISC ChangeLog 4294 SHA256 4fda55fc5d63b1b2c25a917ae5e6b8a302b83a62df6f93e350fba0c3cee8484c SHA512 44d7be903c83e5f93f154b03511b7de4eaf079995875c36ed1cadb883ace37ba1c2de45de3d8d45b1d52c911f46e9abfcaa73d948ce5438d439a0e4844295728 WHIRLPOOL d7654146591b976ccf01e4599f5bbe7e53e0092e28ccf27399ca98e9966ff22989e13a29a00afca6db20c4543d001e3ffa014297b697b135045e3d823ecf6ac0
MISC metadata.xml 634 SHA256 4f41df07d126ce9d5412c0f40e03052fe5fa2be5db3f813540c11318b2525f8a SHA512 7dbe76bdbb2f77ffec3e552616be0da48c29cd2528f40b7a1ada7e503a435882ac128059d76fadf4f194562b8b2a514b0b6fdf02ec6f5ed10b5e5fc84affef44 WHIRLPOOL 5f99266800976d7c2297dd549c50d5651b9beb8b9079a2a747c8f8faa1cfca16a346bd057c30723393361491138869774fe67116b3387ebebe4977f70e9839db
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.19 (GNU/Linux)
+Version: GnuPG v2.0.20 (GNU/Linux)
-iEYEAREIAAYFAlDz2GMACgkQgAnW8HDreRZHCACdG1USxND03vJIzmk2aNjRz227
-FJkAn2bIFzo+ux1cnXLBCsYzAfFSvSVj
-=dYwi
+iEYEAREIAAYFAlIGhnsACgkQvFcC4BYPU0osrQCfUFXeMCCtc6vA9FQYeVFbeaPX
+gkYAn03lb7yk9g58JGNyorrXm1x/d6Q1
+=Tpxz
-----END PGP SIGNATURE-----
diff --git a/sci-libs/djbfft/djbfft-0.76-r2.ebuild b/sci-libs/djbfft/djbfft-0.76-r2.ebuild
new file mode 100644
index 000000000000..0a5aeffd3c02
--- /dev/null
+++ b/sci-libs/djbfft/djbfft-0.76-r2.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/djbfft/djbfft-0.76-r2.ebuild,v 1.1 2013/08/10 18:29:14 aballier Exp $
+
+EAPI=5
+inherit eutils flag-o-matic toolchain-funcs multilib multilib-minimal
+
+DESCRIPTION="Extremely fast library for floating-point convolution"
+HOMEPAGE="http://cr.yp.to/djbfft.html"
+SRC_URI="http://cr.yp.to/djbfft/${P}.tar.gz"
+
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
+IUSE=""
+DOCS=( CHANGES README TODO VERSION )
+
+src_prepare() {
+ SOVER="${PV:0:1}.${PV:2:1}.${PV:3:1}" # a.bc -> a.b.c
+ # mask out everything, which is not suggested by the author (RTFM)!
+ ALLOWED_FLAGS="-fstack-protector -march -mcpu -pipe -mpreferred-stack-boundary -ffast-math"
+ strip-flags
+
+ SONAME="libdjbfft.so.${SOVER}"
+
+ epatch \
+ "${FILESDIR}"/${P}-gcc3.patch \
+ "${FILESDIR}"/${P}-shared.patch \
+ "${FILESDIR}"/${P}-headers.patch
+ multilib_copy_sources
+}
+
+multilib_src_configure() {
+ [[ ${ABI} == x86* ]] && append-cflags -malign-double
+
+ sed -i -e "s:\"lib\":\"$(get_libdir)\":" hier.c || die
+ echo "$(tc-getCC) ${CFLAGS} -fPIC" > "conf-cc"
+ echo "$(tc-getCC) ${LDFLAGS}" > "conf-ld"
+ echo "${ED}usr" > "conf-home"
+ einfo "conf-cc: $(<conf-cc)"
+}
+
+multilib_src_compile() {
+ emake \
+ LIBDJBFFT=${SONAME} \
+ LIBPERMS=0755 \
+ ${SONAME}
+ echo "the compile function was:"
+ cat ./compile
+ echo "the conf-ld function was:"
+ cat ./conf-ld
+}
+
+multilib_src_test() {
+ local t
+ for t in accuracy accuracy2 speed; do
+ emake ${t}
+ einfo "Testing ${t}"
+ LD_LIBRARY_PATH=. ./${t} > ${t}.out || die "test ${t} failed"
+ done
+}
+
+multilib_src_install() {
+ emake LIBDJBFFT=${SONAME} install
+ ./install || die "install failed"
+ dosym ${SONAME} /usr/$(get_libdir)/libdjbfft.so
+ dosym ${SONAME} /usr/$(get_libdir)/libdjbfft.so.${SOVER%%.*}
+}