mirror of
https://git.freebsd.org/ports.git
synced 2025-06-15 09:40:35 -04:00
Recently textproc/docbook-xsl, and textproc/docbook-xsl-ns and textproc/website were modified such that the xmlcatmgr catalog was created during the build (once) and packaged. Before it was accidently built and package and then created again during the package install script that it had. So the catalog creation was removed from pkg-install.in script. textproc/slides really was set up in the same way but it wasn't emitting errors because the pkg-plist was slightly different. However, in the interest of uniformity, textproc/slides was updated to match the others. The missing dependency on xmlcatmgr was added and the header trimmed as well. PR: ports/179730 Submitted by: marino
31 lines
1.1 KiB
Bash
31 lines
1.1 KiB
Bash
#!/bin/sh
|
|
|
|
# This script will create the slides catalog and will add entries to xml catalog.
|
|
# WARNING: If you change this script, be sure to check pkg-deinstall.in!
|
|
#
|
|
# Based on http://xmlsoft.org/buildDocBookCatalog file.
|
|
#
|
|
# in vi/vim grab VERSIONS string with command:
|
|
# :r!echo -n "VERSIONS='current ";fetch -qo - http://cvs.sf.net/cgi-bin/viewcvs.cgi/docbook/${PORTNAME}/VERSION|sed -nE 's/.*Version (.*) released./\1/gp'|sort|sed -e '1,3d'|paste -sd ' ' -|tr \\n \'
|
|
#
|
|
# -- Rui Lopes <rui@ruilopes.com>
|
|
|
|
XMLCATMGR=@XMLCATMGR@
|
|
CATALOG_PORTS_XML=@CATALOG_PORTS_XML@
|
|
PORTNAME=@PORTNAME@
|
|
XSL_DIR=${PKG_PREFIX}/@INSTDIR@
|
|
CATALOG_XSL=${XSL_DIR}/catalog
|
|
|
|
if [ "$2" != "POST-INSTALL" ]; then
|
|
exit 0
|
|
fi
|
|
|
|
${XMLCATMGR} -c "${CATALOG_PORTS_XML}" add delegateSystem \
|
|
http://docbook.sourceforge.net/release/${PORTNAME}/ \
|
|
"file://${CATALOG_XSL}"
|
|
${XMLCATMGR} -c "${CATALOG_PORTS_XML}" add delegateURI \
|
|
http://docbook.sourceforge.net/release/${PORTNAME}/ \
|
|
"file://${CATALOG_XSL}"
|
|
|
|
# echo $(w3m -dump http://cvs.sf.net/cgi-bin/viewcvs.cgi/docbook/slides/VERSION
|
|
# | grep released | cut -d' ' -f2)
|