summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs/pdflib/pdflib-7.0.2_p8.ebuild')
-rw-r--r--media-libs/pdflib/pdflib-7.0.2_p8.ebuild10
1 files changed, 8 insertions, 2 deletions
diff --git a/media-libs/pdflib/pdflib-7.0.2_p8.ebuild b/media-libs/pdflib/pdflib-7.0.2_p8.ebuild
index 640041398214..67ab0fb9d044 100644
--- a/media-libs/pdflib/pdflib-7.0.2_p8.ebuild
+++ b/media-libs/pdflib/pdflib-7.0.2_p8.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/pdflib/pdflib-7.0.2_p8.ebuild,v 1.8 2008/03/06 23:48:44 dirtyepic Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/pdflib/pdflib-7.0.2_p8.ebuild,v 1.9 2008/06/14 17:49:57 zmedico Exp $
EAPI="1"
@@ -137,8 +137,14 @@ src_install() {
fi
}
+pkg_preinst () {
+ perl-module_pkg_preinst
+ has_version "<${CATEGORY}/${PN}-7.0.1"
+ previous_less_than_7_0_1=$?
+}
+
pkg_postinst() {
- if has_version "<media-libs/pdflib-7.0.1" ; then
+ if [[ $previous_less_than_7_0_1 = 0 ]] ; then
ewarn "Please run revdep-rebuild now! All packages that linked with"
ewarn "previous versions of PDFLib will no longer work unless you"
ewarn "run it."