diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-06-14 17:49:57 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-06-14 17:49:57 +0000 |
commit | fe850ebf225a02c6814449f7c87bce4f51737e5a (patch) | |
tree | 209def58f16edc2538b5999d9c25f3463bc15d51 /media-libs/pdflib | |
parent | Stable on ppc wrt bug 221063 (diff) | |
download | gentoo-2-fe850ebf225a02c6814449f7c87bce4f51737e5a.tar.gz gentoo-2-fe850ebf225a02c6814449f7c87bce4f51737e5a.tar.bz2 gentoo-2-fe850ebf225a02c6814449f7c87bce4f51737e5a.zip |
Bug #226505 - For compatibility with phase execution order in
>=portage-2.1.5, call has_version inside pkg_preinst instead of
pkg_postinst.
(Portage version: 2.2_pre10652/cvs/Linux 2.6.25-0518-x86-64 i686)
Diffstat (limited to 'media-libs/pdflib')
-rw-r--r-- | media-libs/pdflib/ChangeLog | 8 | ||||
-rw-r--r-- | media-libs/pdflib/pdflib-7.0.2.ebuild | 12 | ||||
-rw-r--r-- | media-libs/pdflib/pdflib-7.0.2_p8.ebuild | 10 |
3 files changed, 24 insertions, 6 deletions
diff --git a/media-libs/pdflib/ChangeLog b/media-libs/pdflib/ChangeLog index d334cd971139..3acdc9b65516 100644 --- a/media-libs/pdflib/ChangeLog +++ b/media-libs/pdflib/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for media-libs/pdflib # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/pdflib/ChangeLog,v 1.99 2008/03/06 23:48:44 dirtyepic Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-libs/pdflib/ChangeLog,v 1.100 2008/06/14 17:49:57 zmedico Exp $ + + 14 Jun 2008; Zac Medico <zmedico@gentoo.org> pdflib-7.0.2.ebuild, + pdflib-7.0.2_p8.ebuild: + Bug #226505 - For compatibility with phase execution order in + >=portage-2.1.5, call has_version inside pkg_preinst instead of + pkg_postinst. 06 Mar 2008; Ryan Hill <dirtyepic@gentoo.org> +files/pdflib-7.0.2_p8-gcc-4.3.patch, pdflib-7.0.2_p8.ebuild: diff --git a/media-libs/pdflib/pdflib-7.0.2.ebuild b/media-libs/pdflib/pdflib-7.0.2.ebuild index 382488cf27fc..f27ec75e5add 100644 --- a/media-libs/pdflib/pdflib-7.0.2.ebuild +++ b/media-libs/pdflib/pdflib-7.0.2.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2007 Gentoo Foundation +# 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.ebuild,v 1.10 2007/12/11 23:53:39 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-libs/pdflib/pdflib-7.0.2.ebuild,v 1.11 2008/06/14 17:49:57 zmedico Exp $ inherit java-pkg-opt-2 flag-o-matic libtool python perl-module multilib @@ -114,8 +114,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." 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." |