Gentoo Archives: gentoo-commits

From: "Sebastien Fabbro (bicatali)" <bicatali@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-libs/djbfft: metadata.xml ChangeLog djbfft-0.76-r1.ebuild
Date: Fri, 10 Oct 2008 20:27:46
Message-Id: E1KoOaN-0000HL-P6@stork.gentoo.org
1 bicatali 08/10/10 20:27:43
2
3 Modified: metadata.xml ChangeLog
4 Added: djbfft-0.76-r1.ebuild
5 Log:
6 QA fixes: soname (closing bug #158373, missing header files, separate tests and library building, remove forced flags for x86.
7 (Portage version: 2.2_rc11/cvs/Linux 2.6.25-gentoo-r7 x86_64)
8
9 Revision Changes Path
10 1.2 sci-libs/djbfft/metadata.xml
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/djbfft/metadata.xml?rev=1.2&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/djbfft/metadata.xml?rev=1.2&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/djbfft/metadata.xml?r1=1.1&r2=1.2
15
16 Index: metadata.xml
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sci-libs/djbfft/metadata.xml,v
19 retrieving revision 1.1
20 retrieving revision 1.2
21 diff -u -r1.1 -r1.2
22 --- metadata.xml 28 Dec 2004 20:11:36 -0000 1.1
23 +++ metadata.xml 10 Oct 2008 20:27:43 -0000 1.2
24 @@ -3,4 +3,13 @@
25 <pkgmetadata>
26 <herd>sci</herd>
27 <herd>video</herd>
28 +<longdescription lang="en">
29 + D.J. Bernstein Fast Fourier Transform (djbfft) is an extremely
30 + fast library for floating-point convolution. The current version
31 + holds most of the speed records for double-precision FFTs on
32 + general-purpose computers.
33 + djbfft provides power-of-2 complex FFTs, real FFTs at twice the speed,
34 + and fast multiplication of complex arrays. Single precision and double
35 + precision are equally supported.
36 +</longdescription>
37 </pkgmetadata>
38
39
40
41 1.11 sci-libs/djbfft/ChangeLog
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/djbfft/ChangeLog?rev=1.11&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/djbfft/ChangeLog?rev=1.11&content-type=text/plain
45 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/djbfft/ChangeLog?r1=1.10&r2=1.11
46
47 Index: ChangeLog
48 ===================================================================
49 RCS file: /var/cvsroot/gentoo-x86/sci-libs/djbfft/ChangeLog,v
50 retrieving revision 1.10
51 retrieving revision 1.11
52 diff -u -r1.10 -r1.11
53 --- ChangeLog 6 Apr 2008 17:45:23 -0000 1.10
54 +++ ChangeLog 10 Oct 2008 20:27:43 -0000 1.11
55 @@ -1,6 +1,14 @@
56 # ChangeLog for sci-libs/djbfft
57 # Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
58 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/djbfft/ChangeLog,v 1.10 2008/04/06 17:45:23 hollow Exp $
59 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/djbfft/ChangeLog,v 1.11 2008/10/10 20:27:43 bicatali Exp $
60 +
61 +*djbfft-0.76-r1 (10 Oct 2008)
62 +
63 + 10 Oct 2008; Sébastien Fabbro <bicatali@g.o>
64 + +files/djbfft-0.76-headers.patch, files/djbfft-0.76-shared.patch,
65 + metadata.xml, +djbfft-0.76-r1.ebuild:
66 + QA fixes: soname (closing bug #158373, missing header files, separate
67 + tests and library building, remove forced flags for x86.
68
69 06 Apr 2008; Benedikt Böhm <hollow@g.o> djbfft-0.76.ebuild:
70 fix LICENSE, bug #204327
71
72
73
74 1.1 sci-libs/djbfft/djbfft-0.76-r1.ebuild
75
76 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/djbfft/djbfft-0.76-r1.ebuild?rev=1.1&view=markup
77 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/djbfft/djbfft-0.76-r1.ebuild?rev=1.1&content-type=text/plain
78
79 Index: djbfft-0.76-r1.ebuild
80 ===================================================================
81 # Copyright 1999-2008 Gentoo Foundation
82 # Distributed under the terms of the GNU General Public License v2
83 # $Header: /var/cvsroot/gentoo-x86/sci-libs/djbfft/djbfft-0.76-r1.ebuild,v 1.1 2008/10/10 20:27:43 bicatali Exp $
84
85 inherit eutils flag-o-matic toolchain-funcs multilib
86
87 DESCRIPTION="Extremely fast library for floating-point convolution"
88 HOMEPAGE="http://cr.yp.to/djbfft.html"
89 SRC_URI="http://cr.yp.to/djbfft/${P}.tar.gz"
90
91 LICENSE="public-domain"
92 SLOT="0"
93 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
94 IUSE=""
95
96 src_unpack() {
97 MY_PV="${PV:0:1}.${PV:2:1}.${PV:3:1}" # a.bc -> a.b.c
98 MY_D="${D}usr"
99
100 # mask out everything, which is not suggested by the author (RTFM)!
101 ALLOWED_FLAGS="-fstack-protector -march -mcpu -pipe -mpreferred-stack-boundary -ffast-math"
102 strip-flags
103
104 # why?
105 #MY_CFLAGS="${CFLAGS} -O1 -fomit-frame-pointer"
106 MY_CFLAGS="${CFLAGS}"
107 use x86 && MY_CFLAGS="${CFLAGS} -malign-double"
108
109 LIBPERMS="0755"
110 LIBDJBFFT="libdjbfft.so.${MY_PV}"
111
112 unpack ${A}
113 cd "${S}"
114 epatch "${FILESDIR}/${P}-gcc3.patch"
115 epatch "${FILESDIR}/${P}-shared.patch"
116 epatch "${FILESDIR}/${P}-headers.patch"
117
118 sed -i -e "s:\"lib\":\"$(get_libdir)\":" hier.c
119 echo "$(tc-getCC) $MY_CFLAGS -fPIC -DPIC" > "conf-cc"
120 echo "$(tc-getCC) ${LDFLAGS}" > "conf-ld"
121 echo "${MY_D}" > "conf-home"
122 einfo "conf-cc: $(<conf-cc)"
123 }
124
125 src_compile() {
126 emake \
127 LIBDJBFFT="${LIBDJBFFT}" \
128 LIBPERMS="${LIBPERMS}" \
129 ${LIBDJBFFT} || die "emake failed"
130 }
131
132 src_test() {
133 for t in accuracy accuracy2 speed; do
134 emake ${t} || die "emake ${t} failed"
135 einfo "Testing ${t}"
136 LD_LIBRARY_PATH=. ./${t} > ${t}.out || die "test ${t} failed"
137 done
138 }
139
140 src_install() {
141 emake LIBDJBFFT="$LIBDJBFFT" install || die "emake install failed"
142 ./install || die "setup failed"
143 dosym "${LIBDJBFFT}" /usr/$(get_libdir)/libdjbfft.so
144 dosym "${LIBDJBFFT}" /usr/$(get_libdir)/libdjbfft.so.${MY_PV%%.*}
145 dodoc CHANGES README TODO VERSION || die
146 }