diff options
author | Heinrich Wendel <lanius@gentoo.org> | 2005-03-10 14:26:52 +0000 |
---|---|---|
committer | Heinrich Wendel <lanius@gentoo.org> | 2005-03-10 14:26:52 +0000 |
commit | 73b05ca8a15c0fc57d8e660501ba5924e94f8b5e (patch) | |
tree | 0f14ad7bff44b493726fded3830e12e1545eb13e /x11-libs/lesstif | |
parent | added to portage (diff) | |
download | gentoo-2-73b05ca8a15c0fc57d8e660501ba5924e94f8b5e.tar.gz gentoo-2-73b05ca8a15c0fc57d8e660501ba5924e94f8b5e.tar.bz2 gentoo-2-73b05ca8a15c0fc57d8e660501ba5924e94f8b5e.zip |
don't remove motif-config profile on upgrade
(Portage version: 2.0.51.19)
Diffstat (limited to 'x11-libs/lesstif')
-rw-r--r-- | x11-libs/lesstif/ChangeLog | 8 | ||||
-rw-r--r-- | x11-libs/lesstif/lesstif-0.93.94-r2.ebuild | 15 | ||||
-rw-r--r-- | x11-libs/lesstif/lesstif-0.94.0-r5.ebuild | 15 |
3 files changed, 31 insertions, 7 deletions
diff --git a/x11-libs/lesstif/ChangeLog b/x11-libs/lesstif/ChangeLog index ba3a8acca492..5331918241ab 100644 --- a/x11-libs/lesstif/ChangeLog +++ b/x11-libs/lesstif/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for x11-libs/lesstif # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/x11-libs/lesstif/ChangeLog,v 1.56 2005/03/07 13:38:57 lanius Exp $ +# $Header: /var/cvsroot/gentoo-x86/x11-libs/lesstif/ChangeLog,v 1.57 2005/03/10 14:26:52 lanius Exp $ + +*lesstif-0.94.0-r5 (10 Mar 2005) + + 10 Mar 2005; Heinrich Wendel <lanius@gentoo.org> lesstif-0.93.94-r2.ebuild, + lesstif-0.94.0-r5.ebuild: + don't remove motif-config profile on upgrade 07 Mar 2005; Heinrich Wendel <lanius@gentoo.org> -lesstif-0.93.94-r1.ebuild, -lesstif-0.94.0-r4.ebuild: diff --git a/x11-libs/lesstif/lesstif-0.93.94-r2.ebuild b/x11-libs/lesstif/lesstif-0.93.94-r2.ebuild index 1c67ce4f0a98..fce1f8c1e477 100644 --- a/x11-libs/lesstif/lesstif-0.93.94-r2.ebuild +++ b/x11-libs/lesstif/lesstif-0.93.94-r2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/x11-libs/lesstif/lesstif-0.93.94-r2.ebuild,v 1.2 2005/03/07 19:48:39 lanius Exp $ +# $Header: /var/cvsroot/gentoo-x86/x11-libs/lesstif/lesstif-0.93.94-r2.ebuild,v 1.3 2005/03/10 14:26:52 lanius Exp $ inherit libtool flag-o-matic multilib @@ -94,6 +94,15 @@ pkg_postinst() { motif-config --install lesstif-1.2 } -pkg_prerm() { - motif-config --uninstall lesstif-1.2 +is_upgrade() { + vdb_path=`portageq vdb_path` + if [ "`grep -r SLOT $vdb_path/${CATEGORY}/${PN}* | grep $SLOT`" ]; then + return 0 + else + return 1 + fi +} + +pkg_postrm() { + is_upgrade || motif-config --uninstall lesstif-1.2 } diff --git a/x11-libs/lesstif/lesstif-0.94.0-r5.ebuild b/x11-libs/lesstif/lesstif-0.94.0-r5.ebuild index e18d3955cb73..26c03c62d65b 100644 --- a/x11-libs/lesstif/lesstif-0.94.0-r5.ebuild +++ b/x11-libs/lesstif/lesstif-0.94.0-r5.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/x11-libs/lesstif/lesstif-0.94.0-r5.ebuild,v 1.2 2005/03/07 19:48:39 lanius Exp $ +# $Header: /var/cvsroot/gentoo-x86/x11-libs/lesstif/lesstif-0.94.0-r5.ebuild,v 1.3 2005/03/10 14:26:52 lanius Exp $ inherit libtool flag-o-matic multilib @@ -90,6 +90,15 @@ pkg_postinst() { motif-config --install lesstif-2.1 } -pkg_prerm() { - motif-config --uninstall lesstif-2.1 +is_upgrade() { + vdb_path=`portageq vdb_path` + if [ "`grep -r SLOT $vdb_path/${CATEGORY}/${PN}* | grep $SLOT`" ]; then + return 0 + else + return 1 + fi +} + +pkg_postrm() { + is_upgrade || motif-config --uninstall lesstif-2.1 } |