summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Bar-Lev <alonbl@gentoo.org>2016-10-08 10:59:41 +0300
committerAlon Bar-Lev <alonbl@gentoo.org>2016-10-08 11:10:12 +0300
commit57e5f28a918bb8c926d294a2eb2acb406382f186 (patch)
tree912b8501c3e67d9acd5605c8faa14fed1a7be56c /dev-libs/crypto++
parentdev-util/wsta: New package (diff)
downloadgentoo-57e5f28a918bb8c926d294a2eb2acb406382f186.tar.gz
gentoo-57e5f28a918bb8c926d294a2eb2acb406382f186.tar.bz2
gentoo-57e5f28a918bb8c926d294a2eb2acb406382f186.zip
dev-libs/crypto++: fix symlink/directory collision for update
Bug: 596500 Package-Manager: portage-2.3.0
Diffstat (limited to 'dev-libs/crypto++')
-rw-r--r--dev-libs/crypto++/crypto++-5.6.4-r2.ebuild (renamed from dev-libs/crypto++/crypto++-5.6.4-r1.ebuild)10
1 files changed, 9 insertions, 1 deletions
diff --git a/dev-libs/crypto++/crypto++-5.6.4-r1.ebuild b/dev-libs/crypto++/crypto++-5.6.4-r2.ebuild
index ef464877de44..b21a0040628f 100644
--- a/dev-libs/crypto++/crypto++-5.6.4-r1.ebuild
+++ b/dev-libs/crypto++/crypto++-5.6.4-r2.ebuild
@@ -30,6 +30,7 @@ pkg_setup() {
}
src_configure() {
+ default
cp config.recommend config.h || die
}
@@ -57,7 +58,7 @@ src_test() {
}
src_install() {
- emake DESTDIR="${ED}" install
+ default
# remove leftovers as build system sucks
rm -fr "${ED}"/usr/bin "${ED}"/usr/share/cryptopp
@@ -69,3 +70,10 @@ src_install() {
ln -s "$(basename "${f}")" "$(echo "${f}" | sed 's/cryptopp/crypto++/')" || die
done
}
+
+pkg_preinst() {
+ # we switched directory to symlink
+ # make sure portage digests that
+ rm -fr "${EROOT}/usr/include/crypto++"
+ rm -fr "${EROOT}/usr/include/cryptopp"
+}