From a95b420922e74bb728e482c22f9e6acd076ab696 Mon Sep 17 00:00:00 2001 From: Bernard Cafarelli Date: Wed, 20 Apr 2011 18:58:05 +0000 Subject: Add postinst warning message if old layout is detected (Portage version: 2.2.0_alpha30/cvs/Linux x86_64) --- gnustep-base/gnustep-make/ChangeLog | 6 +++++- gnustep-base/gnustep-make/gnustep-make-2.6.0.ebuild | 12 +++++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/gnustep-base/gnustep-make/ChangeLog b/gnustep-base/gnustep-make/ChangeLog index 0f8bc282f290..927b3b294c28 100644 --- a/gnustep-base/gnustep-make/ChangeLog +++ b/gnustep-base/gnustep-make/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for gnustep-base/gnustep-make # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/gnustep-base/gnustep-make/ChangeLog,v 1.96 2011/04/20 17:42:10 voyageur Exp $ +# $Header: /var/cvsroot/gentoo-x86/gnustep-base/gnustep-make/ChangeLog,v 1.97 2011/04/20 18:58:05 voyageur Exp $ + + 20 Apr 2011; Bernard Cafarelli + gnustep-make-2.6.0.ebuild: + Add postinst warning message if old layout is detected *gnustep-make-2.6.0 (20 Apr 2011) diff --git a/gnustep-base/gnustep-make/gnustep-make-2.6.0.ebuild b/gnustep-base/gnustep-make/gnustep-make-2.6.0.ebuild index c17bec05c31f..db8659b544d5 100644 --- a/gnustep-base/gnustep-make/gnustep-make-2.6.0.ebuild +++ b/gnustep-base/gnustep-make/gnustep-make-2.6.0.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/gnustep-base/gnustep-make/gnustep-make-2.6.0.ebuild,v 1.1 2011/04/20 17:42:10 voyageur Exp $ +# $Header: /var/cvsroot/gentoo-x86/gnustep-base/gnustep-make/gnustep-make-2.6.0.ebuild,v 1.2 2011/04/20 18:58:05 voyageur Exp $ EAPI="3" @@ -71,3 +71,13 @@ src_install() { doexe "${T}"/gnustep-4.sh doexe "${T}"/gnustep-4.csh } + +pkg_postinst() { + # Warn about new layout if old GNUstep directory is still here + if [ -e /usr/GNUstep/System ]; then + ewarn "Old layout directory detected (/usr/GNUstep/System)" + ewarn "Gentoo has switched to FHS layout for GNUstep packages" + ewarn "Please remerge all packages still installed with the old layout" + ewarn "You can use gnustep-base/gnustep-updater for this task" + fi +} -- cgit v1.2.3-65-gdbad