aboutsummaryrefslogtreecommitdiff
path: root/textproc/website/Makefile
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2016-05-24 22:32:49 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2016-05-24 22:32:49 +0000
commit963854440c8d5cb49ac23779c965d0f6fb408744 (patch)
tree097b956f7e23b0db264fe1d3cdeee8eafc050cd9 /textproc/website/Makefile
parentddf8b3e6be1c5e8bd6c6415891ec22c20f432245 (diff)
downloadports-963854440c8d5cb49ac23779c965d0f6fb408744.tar.gz
ports-963854440c8d5cb49ac23779c965d0f6fb408744.zip
Add a new keywork xmlcatmgr
It simplifies the handling of the XML and SMGL catalog It brings a big of consistency by always specifying the catalog path absolute instead of mixing absolute and relative path. The keyword is also written a PKG_ROOTDIR friendly to simplify cross installing Reviewed by: hrs Differential Revision: https://reviews.freebsd.org/D6539
Notes
Notes: svn path=/head/; revision=415814
Diffstat (limited to 'textproc/website/Makefile')
-rw-r--r--textproc/website/Makefile14
1 files changed, 2 insertions, 12 deletions
diff --git a/textproc/website/Makefile b/textproc/website/Makefile
index 57e524a2a085..c1f06e9a8e1b 100644
--- a/textproc/website/Makefile
+++ b/textproc/website/Makefile
@@ -20,26 +20,16 @@ NO_BUILD= yes
USES= tar:bzip2
-SUB_FILES= pkg-deinstall pkg-install
-SUB_LIST= XMLCATMGR="${XMLCATMGR}" \
- CATALOG_PORTS_XML="${CATALOG_PORTS}" \
- INSTDIR="${INSTDIR}"
-
OPTIONS_DEFINE= EXAMPLES
-XMLDIR= ${LOCALBASE}/share/xml
INSTDIR= share/xsl/website
PINSTDIR= ${PREFIX}/${INSTDIR}
COPYDIRS= extensions schema xsl
-XMLCATMGR= ${LOCALBASE}/bin/xmlcatmgr
-CATALOG_PORTS= ${XMLDIR}/catalog.ports
-
do-install:
@${MKDIR} ${STAGEDIR}${PINSTDIR}
-.for i in VERSION catalog
- (cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${STAGEDIR}${PINSTDIR})
-.endfor
+ ${INSTALL_DATA} ${WRKSRC}/VERSION ${STAGEDIR}/${PINSTDIR}
+ ${INSTALL_DATA} ${WRKSRC}/catalog ${STAGEDIR}/${PINSTDIR}/catalog.xml
.for i in ${COPYDIRS}
@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${i} ${STAGEDIR}${PINSTDIR})
.endfor