diff options
author | jlam <jlam@pkgsrc.org> | 2006-03-14 01:14:26 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2006-03-14 01:14:26 +0000 |
commit | daad0f3d6ce8b344ce91e35e98ea05abf8e03f2d (patch) | |
tree | 2d76c0a00d07e0939789aa971b834f332c4820c3 /textproc | |
parent | b1472309671a67b16cab03410ae83bb9d6007baa (diff) | |
download | pkgsrc-daad0f3d6ce8b344ce91e35e98ea05abf8e03f2d.tar.gz |
Modify the pkginstall framework so that it manages all aspects of
INSTALL/DEINSTALL script creation within pkgsrc.
If an INSTALL or DEINSTALL script is found in the package directory,
it is automatically used as a template for the pkginstall-generated
scripts. If instead, they should be used simply as the full scripts,
then the package Makefile should set INSTALL_SRC or DEINSTALL_SRC
explicitly, e.g.:
INSTALL_SRC= ${PKGDIR}/INSTALL
DEINSTALL_SRC= # emtpy
As part of the restructuring of the pkginstall framework internals,
we now *always* generate temporary INSTALL or DEINSTALL scripts. By
comparing these temporary scripts with minimal INSTALL/DEINSTALL
scripts formed from only the base templates, we determine whether or
not the INSTALL/DEINSTALL scripts are actually needed by the package
(see the generate-install-scripts target in bsd.pkginstall.mk).
In addition, more variables in the framework have been made private.
The *_EXTRA_TMPL variables have been renamed to *_TEMPLATE, which are
more sensible names given the very few exported variables in this
framework. The only public variables relating to the templates are:
INSTALL_SRC INSTALL_TEMPLATE
DEINSTALL_SRC DEINSTALL_TEMPLATE
HEADER_TEMPLATE
The packages in pkgsrc have been modified to reflect the changes in
the pkginstall framework.
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/scrollkeeper/Makefile | 5 | ||||
-rw-r--r-- | textproc/scrollkeeper/omf.mk | 6 | ||||
-rw-r--r-- | textproc/xmlcatmgr/catalogs.mk | 6 |
3 files changed, 8 insertions, 9 deletions
diff --git a/textproc/scrollkeeper/Makefile b/textproc/scrollkeeper/Makefile index ff69dff77fd..13ff3439340 100644 --- a/textproc/scrollkeeper/Makefile +++ b/textproc/scrollkeeper/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.35 2006/03/04 21:30:51 jlam Exp $ +# $NetBSD: Makefile,v 1.36 2006/03/14 01:14:34 jlam Exp $ # DISTNAME= scrollkeeper-0.3.14 @@ -35,8 +35,7 @@ CONFIGURE_ARGS+= --with-omfdirs=${PREFIX}/share/omf CONFIGURE_ARGS+= --with-omfdirs=${LOCALBASE}/share/omf:${X11PREFIX}/share/omf .endif -INSTALL_EXTRA_TMPL+= ${.CURDIR}/INSTALL -DEINSTALL_EXTRA_TMPL+= ${.CURDIR}/INSTALL +DEINSTALL_TEMPLATE+= ${PKGDIR}/INSTALL SCROLLKEEPER_DATADIR= ${PREFIX}/libdata/scrollkeeper SCROLLKEEPER_REBUILDDB= ${PREFIX}/bin/scrollkeeper-rebuilddb diff --git a/textproc/scrollkeeper/omf.mk b/textproc/scrollkeeper/omf.mk index f11025b353b..9bff7873dbf 100644 --- a/textproc/scrollkeeper/omf.mk +++ b/textproc/scrollkeeper/omf.mk @@ -1,4 +1,4 @@ -# $NetBSD: omf.mk,v 1.10 2005/12/29 06:22:20 jlam Exp $ +# $NetBSD: omf.mk,v 1.11 2006/03/14 01:14:34 jlam Exp $ # # This Makefile fragment is intended to be included by packages that install # OMF files. It takes care of registering them in scrollkeeper's global @@ -22,8 +22,8 @@ SCROLLKEEPER_DATADIR= ${BUILDLINK_PREFIX.scrollkeeper}/libdata/scrollkeeper SCROLLKEEPER_REBUILDDB= ${BUILDLINK_PREFIX.scrollkeeper}/bin/scrollkeeper-rebuilddb SCROLLKEEPER_UPDATEDB= ${BUILDLINK_PREFIX.scrollkeeper}/bin/scrollkeeper-update -INSTALL_EXTRA_TMPL+= ${.CURDIR}/../../textproc/scrollkeeper/files/install.tmpl -DEINSTALL_EXTRA_TMPL+= ${.CURDIR}/../../textproc/scrollkeeper/files/install.tmpl +INSTALL_TEMPLATE+= ${.CURDIR}/../../textproc/scrollkeeper/files/install.tmpl +DEINSTALL_TEMPLATE+= ${.CURDIR}/../../textproc/scrollkeeper/files/install.tmpl FILES_SUBST+= SCROLLKEEPER_DATADIR=${SCROLLKEEPER_DATADIR:Q} FILES_SUBST+= SCROLLKEEPER_REBUILDDB=${SCROLLKEEPER_REBUILDDB:Q} diff --git a/textproc/xmlcatmgr/catalogs.mk b/textproc/xmlcatmgr/catalogs.mk index ee9b5c7ae42..f6b72cb8ca6 100644 --- a/textproc/xmlcatmgr/catalogs.mk +++ b/textproc/xmlcatmgr/catalogs.mk @@ -1,4 +1,4 @@ -# $NetBSD: catalogs.mk,v 1.14 2005/12/29 06:22:20 jlam Exp $ +# $NetBSD: catalogs.mk,v 1.15 2006/03/14 01:14:34 jlam Exp $ # # This Makefile fragment is intended to be included by packages that install # catalog files or DTDs. It takes care of registering them into the right @@ -52,8 +52,8 @@ FILES_SUBST+= SGML_CATALOG="${XMLCATMGR_PREFIX}/share/sgml/catalog" FILES_SUBST+= XML_CATALOG="${XMLCATMGR_PREFIX}/share/xml/catalog" FILES_SUBST+= SGML_ENTRIES=${SGML_ENTRIES:Q} FILES_SUBST+= XML_ENTRIES=${XML_ENTRIES:Q} -INSTALL_EXTRA_TMPL+= ../../textproc/xmlcatmgr/files/install.tmpl -DEINSTALL_EXTRA_TMPL+= ../../textproc/xmlcatmgr/files/deinstall.tmpl +INSTALL_TEMPLATE+= ../../textproc/xmlcatmgr/files/install.tmpl +DEINSTALL_TEMPLATE+= ../../textproc/xmlcatmgr/files/deinstall.tmpl .endif # !empty(SGML_ENTRIES) || !empty(XML_ENTRIES) PRINT_PLIST_AWK+= /^share\/(sgml|xml)\/catalog$$/ \ |