Line
Link Here
|
0 |
-- dev-libs/cryptlib/cryptlib-3.3.1.ebuild |
0 |
++ dev-libs/cryptlib/cryptlib-3.3.2.ebuild |
Lines 2-38
Link Here
|
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/dev-libs/cryptlib/cryptlib-3.3.1.ebuild,v 1.1 2007/02/16 14:36:34 alonbl Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/dev-libs/cryptlib/cryptlib-3.3.1.ebuild,v 1.1 2007/02/16 14:36:34 alonbl Exp $ |
4 |
|
4 |
|
5 |
inherit eutils multilib flag-o-matic |
5 |
inherit eutils flag-o-matic multilib toolchain-funcs |
6 |
|
6 |
|
7 |
MY_PV="${PV//.0}" |
7 |
MY_PV="${PV//.0}" |
8 |
MY_PV="${MY_PV//.}" |
8 |
MY_PV="${MY_PV//.}" |
9 |
|
9 |
|
10 |
DESCRIPTION="Powerful security toolkit for adding encryption to software" |
10 |
DESCRIPTION="Powerful security toolkit for adding encryption to software" |
11 |
HOMEPAGE="http://www.cs.auckland.ac.nz/~pgut001/cryptlib/" |
11 |
HOMEPAGE="http://www.cs.auckland.ac.nz/~pgut001/cryptlib/" |
12 |
DOC_PREFIX="${PN}-3.3.0" |
12 |
DOC_PREFIX="${PN}-3.3.2" |
13 |
SRC_URI="ftp://ftp.franken.de/pub/crypt/cryptlib/cl${MY_PV}.zip |
13 |
SRC_URI="ftp://ftp.franken.de/pub/crypt/cryptlib/cl${MY_PV}.zip |
14 |
doc? ( mirror://gentoo/${DOC_PREFIX}-manual.pdf.bz2 )" |
14 |
doc? ( mirror://gentoo/${DOC_PREFIX}-manual.pdf.bz2 )" |
15 |
|
15 |
|
16 |
LICENSE="Sleepycat" |
16 |
LICENSE="Sleepycat" |
17 |
KEYWORDS="~x86 ~amd64" |
17 |
KEYWORDS="~x86 ~amd64" |
18 |
SLOT="0" |
18 |
SLOT="0" |
19 |
IUSE="doc odbc" |
19 |
IUSE="doc ldap odbc" |
20 |
|
20 |
|
21 |
S="${WORKDIR}" |
21 |
S="${WORKDIR}" |
22 |
|
22 |
|
23 |
RDEPEND="odbc? ( dev-db/unixODBC )" |
23 |
RDEPEND="sys-libs/zlib |
|
|
24 |
ldap? ( net-nds/openldap ) |
25 |
odbc? ( dev-db/unixODBC )" |
24 |
DEPEND="${RDEPEND} |
26 |
DEPEND="${RDEPEND} |
25 |
>=sys-apps/sed-4 |
|
|
26 |
app-arch/unzip" |
27 |
app-arch/unzip" |
27 |
|
28 |
|
28 |
src_unpack() { |
29 |
src_unpack() { |
29 |
# we need the -a option, so we can not use 'unpack' |
30 |
# we need the -a option, so we can not use 'unpack' |
30 |
unzip -qoa "${DISTDIR}/cl${MY_PV}.zip" |
31 |
unzip -qoa "${DISTDIR}/cl${MY_PV}.zip" |
31 |
use doc && unpack "${DOC_PREFIX}-manual.pdf.bz2" |
32 |
use doc && unpack "${DOC_PREFIX}-manual.pdf.bz2" |
|
|
33 |
rm -fr zlib |
32 |
|
34 |
|
33 |
# we want our own CFLAGS) ;-) |
35 |
# we want our own CFLAGS ;-) |
34 |
sed -i -e "s:-m.*=pentium::g" -e "s:-fomit-frame-pointer::g" -e "s:-O2::g" \ |
36 |
sed -i -e "s:-m.*=pentium::g" -e "s:-fomit-frame-pointer::g" -e "s:-O2::g" \ |
35 |
-e "s:-O3::g" -e "s:-O4::g" makefile || die "sed makefile failed" |
37 |
-e "s:-O3::g" -e "s:-O4::g" makefile || die "sed makefile failed" |
|
|
38 |
sed -i -e "s/-march=[[:alnum:]\.=-]*//g" -e "s/-mcpu=[[:alnum:]\.=-]*//g" \ |
39 |
-e "s:-O2::g" -e "s:-O3::g" tools/ccopts.sh || die "sed tools/ccopts.sh failed" |
36 |
|
40 |
|
37 |
# change 'make' to '$(MAKE)' |
41 |
# change 'make' to '$(MAKE)' |
38 |
sed -i -e "s:@\?make:\$(MAKE):g" makefile || die "sed makefile failed" |
42 |
sed -i -e "s:@\?make:\$(MAKE):g" makefile || die "sed makefile failed" |
Lines 42-70
Link Here
|
42 |
# assembly parts are disabled. |
46 |
# assembly parts are disabled. |
43 |
sed -i -e 's:i\[3,4,5,6\]86:___:g' makefile || die "sed makefile failed" |
47 |
sed -i -e 's:i\[3,4,5,6\]86:___:g' makefile || die "sed makefile failed" |
44 |
|
48 |
|
45 |
# fix soname and strip issues |
49 |
# respect LDFLAGS and fix soname and strip issues |
46 |
epatch "${FILESDIR}/${DOC_PREFIX}-ld.patch" |
50 |
epatch "${FILESDIR}/${P}-ld.patch" |
|
|
51 |
|
52 |
# fix build |
53 |
epatch "${FILESDIR}/${P}-pthread_yield.patch" |
54 |
|
55 |
# use external zlib |
56 |
epatch "${FILESDIR}/${P}-external-zlib.patch" |
47 |
} |
57 |
} |
48 |
|
58 |
|
49 |
src_compile() { |
59 |
src_compile() { |
50 |
# we need at least -O2 |
60 |
# we need at least -O2 |
51 |
replace-flags -O -O2 |
61 |
replace-flags -O -O2 |
52 |
replace-flags -Os -O2 |
62 |
replace-flags -O0 -O2 |
53 |
replace-flags -O1 -O2 |
63 |
replace-flags -O1 -O2 |
|
|
64 |
replace-flags -Os -O2 |
65 |
is-flagq -O* || append-flags -O2 |
66 |
|
54 |
append-flags -c -D__UNIX__ -DNDEBUG -I. |
67 |
append-flags -c -D__UNIX__ -DNDEBUG -I. |
55 |
# QA issue for pthread_yield |
68 |
# QA issue for pthread_yield |
56 |
append-flags -D_GNU_SOURCE |
69 |
append-flags -D_GNU_SOURCE |
57 |
|
70 |
|
58 |
emake -j1 CFLAGS="${CFLAGS}" SCFLAGS="${CFLAGS} -fPIC" || \ |
71 |
emake -j1 CC="$(tc-getCC)" CFLAGS="${CFLAGS}" || die "emake static failed" |
59 |
die "emake static failed" |
|
|
60 |
|
72 |
|
61 |
emake -j1 shared CFLAGS="${CFLAGS}" SCFLAGS="${CFLAGS} -fPIC" || \ |
73 |
emake -j1 shared CC="$(tc-getCC)" CFLAGS="${CFLAGS}" || die "emake shared failed" |
62 |
die "emake shared failed" |
|
|
63 |
} |
74 |
} |
64 |
|
75 |
|
65 |
src_install() { |
76 |
src_install() { |
66 |
dolib.so "libcl.so.3.3.0" |
77 |
dolib.so "libcl.so.3.3.2" |
67 |
dosym "libcl.so.3.3.0" "/usr/$(get_libdir)/libcl.so" |
78 |
dosym "libcl.so.3.3.2" "/usr/$(get_libdir)/libcl.so" |
68 |
dolib.a "libcl.a" |
79 |
dolib.a "libcl.a" |
69 |
|
80 |
|
70 |
insinto /usr/include |
81 |
insinto /usr/include |