dev-libs/cryptlib: more EAPI6
authorAlon Bar-Lev <alonbl@gentoo.org>
Fri, 30 Dec 2016 20:44:42 +0000 (22:44 +0200)
committerAlon Bar-Lev <alonbl@gentoo.org>
Fri, 30 Dec 2016 20:45:00 +0000 (22:45 +0200)
Package-Manager: Portage-2.3.0, Repoman-2.3.1

dev-libs/cryptlib/cryptlib-3.4.3-r1.ebuild

index 8902c50027d323b6975d9daa4c335a6e9cf9e5a9..7c8d48ad9da41258c910b56e16a754b924bcb304 100644 (file)
@@ -31,6 +31,11 @@ RDEPEND="sys-libs/zlib
 DEPEND="${RDEPEND}
        app-arch/unzip"
 
+PATCHES=(
+       "${FILESDIR}/${P}-build.patch"
+       "${FILESDIR}/${P}-zlib.patch"
+)
+
 src_unpack() {
        # we need the -a option, so we can not use 'unpack'
        unzip -qoa "${DISTDIR}/cl${MY_PV}.zip" || die
@@ -66,12 +71,6 @@ src_prepare() {
        # Fix version number of shared library.
        sed -i -e 's/PLV="2"/PLV="3"/' tools/buildall.sh || die "sed tools/buildall.sh failed"
 
-       # Respect LDFLAGS and fix soname and strip issues.
-       epatch "${FILESDIR}/${P}-build.patch"
-
-       # Use external zlib.
-       epatch "${FILESDIR}/${P}-zlib.patch"
-
        wrap_python ${FUNCNAME}
 }