diff options
author | agc <agc@pkgsrc.org> | 1998-02-13 12:19:43 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 1998-02-13 12:19:43 +0000 |
commit | 3e656b508bfac1df62d64239cb5ef28587ca6ee1 (patch) | |
tree | 9d938c67521f1f84f1213e23999d0af5d4c2e090 /graphics | |
parent | af265b888e3848d496e818f036e19abbbdd52e76 (diff) | |
download | pkgsrc-3e656b508bfac1df62d64239cb5ef28587ca6ee1.tar.gz |
Add a pre-install stage which ensures that there's a valid info dir file
in ${X11BASE}/info at installation time.
Modify PLIST to do the same if installing a binary package.
Pre-process the PLIST to expand LOCALBASE, so that the info dir file
source can be found in the correct directory.
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/gimp/Makefile | 10 | ||||
-rw-r--r-- | graphics/gimp/pkg/PLIST | 7 |
2 files changed, 13 insertions, 4 deletions
diff --git a/graphics/gimp/Makefile b/graphics/gimp/Makefile index 4f8937dee69..47c2ab08fc1 100644 --- a/graphics/gimp/Makefile +++ b/graphics/gimp/Makefile @@ -3,7 +3,7 @@ # Date created: 29 January 1998 # Whom: Bernd Sieker <bsieker@techfak.uni-bielefeld.de> # -# $NetBSD: Makefile,v 1.3 1998/02/05 14:20:53 tron Exp $ +# $NetBSD: Makefile,v 1.4 1998/02/13 12:19:43 agc Exp $ DISTNAME= gimp-0.99.18 CATEGORIES= graphics @@ -63,6 +63,14 @@ post-configure: ${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS} ) .endif +PLIST_SRC= ${WRKDIR:T}/.PLIST-src + +pre-install: + @if [ ! -f ${PREFIX}/info/dir ]; then \ + ${SED} -ne '1,/Menu:/p' ${LOCALBASE}/info/dir > ${PREFIX}/info/dir; \ + fi + @${SED} -e 's|\$${LOCALBASE}|'${LOCALBASE}'|g' < pkg/PLIST > ${PLIST_SRC} + post-install: install-info ${PREFIX}/info/pdb.info ${PREFIX}/info/dir @${ECHO_MSG} "--> now installing in ${GIMP_DATA_MIN}" diff --git a/graphics/gimp/pkg/PLIST b/graphics/gimp/pkg/PLIST index c666cbd616e..c7993fcacfc 100644 --- a/graphics/gimp/pkg/PLIST +++ b/graphics/gimp/pkg/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.1 1998/02/03 10:17:12 tron Exp $ +@comment $NetBSD: PLIST,v 1.2 1998/02/13 12:19:45 agc Exp $ bin/gimp include/libgimp/gimp.h include/libgimp/gimpenums.h @@ -14,11 +14,12 @@ include/gck/gcktypes.h include/gck/gckui.h include/gck/gcknotebook.h include/gck/gckvector.h -@unexec %D/bin/install-info --delete %D/info/pdb.info %D/info/dir +@unexec install-info --delete %D/info/pdb.info %D/info/dir info/pdb.info info/pdb.info-1 info/pdb.info-2 -@exec %D/bin/install-info %D/info/pdb.info %D/info/dir +@exec [ ! -f %D/info/dir ] && /usr/bin/sed -ne '1,/Menu:/p' ${LOCALBASE}/info/dir > %D/info/dir +@exec install-info %D/info/pdb.info %D/info/dir lib/libgimp.so.1.0 lib/libgimp.la lib/libgimp.a |