summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-libs/isl/isl-0.19.ebuild14
1 files changed, 13 insertions, 1 deletions
diff --git a/dev-libs/isl/isl-0.19.ebuild b/dev-libs/isl/isl-0.19.ebuild
index f0dde9963d8e..2aba05792855 100644
--- a/dev-libs/isl/isl-0.19.ebuild
+++ b/dev-libs/isl/isl-0.19.ebuild
@@ -3,7 +3,7 @@
EAPI="5"
-inherit eutils multilib-minimal
+inherit eutils multilib-minimal preserve-libs
DESCRIPTION="A library for manipulating integer points bounded by linear constraints"
HOMEPAGE="http://isl.gforge.inria.fr/"
@@ -37,3 +37,15 @@ multilib_src_install_all() {
einstalldocs
prune_libtool_files
}
+
+pkg_preinst() {
+ preserve_old_lib \
+ /usr/$(get_libdir)/libisl$(get_libname 14) \
+ /usr/$(get_libdir)/libisl$(get_libname 15)
+}
+
+pkg_postinst() {
+ preserve_old_lib_notify \
+ /usr/$(get_libdir)/libisl$(get_libname 14) \
+ /usr/$(get_libdir)/libisl$(get_libname 15)
+}