app-crypt/codecrypt: compatible with with new crypto++
authorAmy Liffey <amynka@gentoo.org>
Tue, 31 Jul 2018 10:58:49 +0000 (11:58 +0100)
committerAmy Liffey <amynka@gentoo.org>
Tue, 31 Jul 2018 11:16:34 +0000 (12:16 +0100)
Closes: https://bugs.gentoo.org/655086
Submitted-by: Mirek Kratochvil <exa.exa@gmail.com>
Package-Manager: Portage-2.3.40, Repoman-2.3.9

app-crypt/codecrypt/codecrypt-1.8-r1.ebuild [moved from app-crypt/codecrypt/codecrypt-1.8.ebuild with 65% similarity]

similarity index 65%
rename from app-crypt/codecrypt/codecrypt-1.8.ebuild
rename to app-crypt/codecrypt/codecrypt-1.8-r1.ebuild
index f885b161e8915e404716bd77e8ce21bec80c62f1..effd4318252674acbe3e890f2ff3d96c54745424 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -15,14 +15,13 @@ KEYWORDS="~amd64 ~arm ~x86"
 IUSE="+cryptopp"
 
 DEPEND="dev-libs/gmp:=
-       cryptopp? ( dev-libs/crypto++ )
+       cryptopp? ( >=dev-libs/crypto++-7 )
        sci-libs/fftw:3.0"
 RDEPEND="${DEPEND}"
-
 src_prepare() {
        default
-       # workaround -- gentoo is missing crypto++ pkg-config file
-       sed -i -e 's/PKG_CHECK_MODULES(\[CRYPTOPP\],.*/LDFLAGS="$LDFLAGS -lcrypto++"/' configure.ac || die
+       # workaround -- the library renamed the pkg-config file
+       sed -i -e 's/PKG_CHECK_MODULES(\[CRYPTOPP\],.*/PKG_CHECK_MODULES([CRYPTOPP], [libcryptopp])/' configure.ac || die
        eautoreconf
 }