From owner-svn-ports-head@FreeBSD.ORG Mon Jun 3 16:02:17 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 482883B7; Mon, 3 Jun 2013 16:02:17 +0000 (UTC) (envelope-from gabor@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 3A009174D; Mon, 3 Jun 2013 16:02:17 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r53G2HR0057303; Mon, 3 Jun 2013 16:02:17 GMT (envelope-from gabor@svn.freebsd.org) Received: (from gabor@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r53G2GVj057296; Mon, 3 Jun 2013 16:02:16 GMT (envelope-from gabor@svn.freebsd.org) Message-Id: <201306031602.r53G2GVj057296@svn.freebsd.org> From: Gabor Kovesdan Date: Mon, 3 Jun 2013 16:02:16 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r319791 - in head/textproc/docbook-xsl-ns: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Jun 2013 16:02:17 -0000 Author: gabor Date: Mon Jun 3 16:02:16 2013 New Revision: 319791 URL: http://svnweb.freebsd.org/changeset/ports/319791 Log: - Add forgotten files directory - Bump PORTREVISION Added: head/textproc/docbook-xsl-ns/files/ head/textproc/docbook-xsl-ns/files/pkg-deinstall.in (contents, props changed) head/textproc/docbook-xsl-ns/files/pkg-install.in (contents, props changed) Modified: head/textproc/docbook-xsl-ns/Makefile Modified: head/textproc/docbook-xsl-ns/Makefile ============================================================================== --- head/textproc/docbook-xsl-ns/Makefile Mon Jun 3 15:35:22 2013 (r319790) +++ head/textproc/docbook-xsl-ns/Makefile Mon Jun 3 16:02:16 2013 (r319791) @@ -2,6 +2,7 @@ PORTNAME= docbook-xsl-ns PORTVERSION= 1.78.1 +PORTREVISION= 1 CATEGORIES= textproc MASTER_SITES= SF/docbook/${PORTNAME}/${PORTVERSION}:src \ SF/docbook/docbook-xsl-doc/${PORTVERSION}:doc Added: head/textproc/docbook-xsl-ns/files/pkg-deinstall.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/docbook-xsl-ns/files/pkg-deinstall.in Mon Jun 3 16:02:16 2013 (r319791) @@ -0,0 +1,12 @@ +#!/bin/sh +# $FreeBSD$ +# This script will remove the docbook-xsl entries added to xml catalog. +# -- Rui Lopes + +if [ "$2" != "POST-DEINSTALL" ]; then + exit 0 +fi + +%%XMLCATMGR%% -c %%CATALOG_PORTS%% remove \ + http://docbook.sourceforge.net/release/xsl/ +exit 0 Added: head/textproc/docbook-xsl-ns/files/pkg-install.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/docbook-xsl-ns/files/pkg-install.in Mon Jun 3 16:02:16 2013 (r319791) @@ -0,0 +1,43 @@ +#!/bin/sh +# $FreeBSD$ +# This script will create the docbook-xsl 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. +# +# Run the following command to generate a new VERSIONS string: +# perl -n -e '/Version ([\d.]+) rel/ && print "$1\n"' work/*/ChangeLog | +# sort -n | tr '\n' ' ' +# +# -- Rui Lopes + +XSL_DIR=${PKG_PREFIX}/%%INSTDIR%% +CATALOG_XSL=${XSL_DIR}/catalog + +if [ "$2" != "POST-INSTALL" ]; then + exit 0 +fi + +VERSIONS='1.36 1.37 1.38 1.39 1.40 1.41 1.42 1.43 1.44 1.45 1.46 1.47 1.48 1.49 1.50.0 1.51.0 1.51.1 1.52.0 1.52.1 1.52.2 1.53.0 1.54.0 1.54.1 1.55.0 1.56.0 1.56.1 1.57.0 1.58.0 1.58.1 1.59.0 1.59.1 1.59.2 1.60.0 1.60.1 1.61.0 1.61.1 1.61.2 1.61.3 1.62.0 1.62.1 1.62.2 1.62.3 1.62.4 1.63.0 1.64.0 1.64.1 1.65.0 1.65.1 1.66.0 1.66.1 1.67.0 1.67.2 1.68.0 1.68.1 1.69.0 1.69.1 1.70.0 1.70.1 1.71.0 1.71.1 1.78.1 current' + +if [ ! -f ${CATALOG_XSL} ]; then + %%XMLCATMGR%% -c "${CATALOG_XSL}" create +fi + +for version in ${VERSIONS} +do + %%XMLCATMGR%% -c "${CATALOG_XSL}" add rewriteSystem \ + http://docbook.sourceforge.net/release/xsl/$version \ + "file://${XSL_DIR}" + %%XMLCATMGR%% -c "${CATALOG_XSL}" add rewriteURI \ + http://docbook.sourceforge.net/release/xsl/$version \ + "file://${XSL_DIR}" +done + +%%XMLCATMGR%% -c %%CATALOG_PORTS%% add delegateSystem \ + http://docbook.sourceforge.net/release/xsl/ \ + "file://${CATALOG_XSL}" +%%XMLCATMGR%% -c %%CATALOG_PORTS%% add delegateURI \ + http://docbook.sourceforge.net/release/xsl/ \ + "file://${CATALOG_XSL}" +exit 0