PSARC 2013/212 xmlto s11-update
authorRich Burridge <rich.burridge@oracle.com>
Wed, 21 Jan 2015 17:31:38 -0800
branchs11-update
changeset 3665 e472522a0ae9
parent 3662 d2e09f75ea27
child 3666 f6b2b3066ff4
PSARC 2013/212 xmlto 15708340 SUNBT7035308 Ship xmlto
components/xmlto/Makefile
components/xmlto/patches/xmlto.in.patch
components/xmlto/resolve.deps
components/xmlto/xmlto.p5m
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/xmlto/Makefile	Wed Jan 21 17:31:38 2015 -0800
@@ -0,0 +1,65 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
+#
+
+include ../../make-rules/shared-macros.mk
+
+COMPONENT_NAME=		xmlto
+COMPONENT_VERSION=	0.0.25
+COMPONENT_PROJECT_URL=	https://fedorahosted.org/xmlto/
+COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
+COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
+COMPONENT_ARCHIVE_HASH= \
+    sha256:c52b56d929e8d20fc19cd3b7ec238f8d039730c56ee311cc352e843147e3e31a
+COMPONENT_ARCHIVE_URL=	 https://fedorahosted.org/releases/x/m/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
+COMPONENT_BUGDB=	utility/xmlto
+
+TPNO=			13394
+
+include ../../make-rules/prep.mk
+include ../../make-rules/configure.mk
+include ../../make-rules/ips.mk
+
+# These will be used by the xmlto script.
+CONFIGURE_ENV += FIND="/usr/gnu/bin/find"
+CONFIGURE_ENV += GETOPT="/usr/gnu/bin/getopt"
+CONFIGURE_ENV += GREP="/usr/gnu/bin/grep"
+CONFIGURE_ENV += TAIL="/usr/gnu/bin/tail"
+
+CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
+
+ASLR_MODE = $(ASLR_ENABLE)
+
+# common targets
+configure:	$(CONFIGURE_64)
+
+build:		$(BUILD_64)
+
+install:	$(INSTALL_64)
+
+test:		$(TEST_64)
+
+BUILD_PKG_DEPENDENCIES =        $(BUILD_TOOLS)
+
+include ../../make-rules/depend.mk
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/xmlto/patches/xmlto.in.patch	Wed Jan 21 17:31:38 2015 -0800
@@ -0,0 +1,19 @@
+Fixes a warning of:
+
+ /usr/bin/xmlto: line 325: local: can only be used in a function
+
+found by Alan Coopersmith during testing of xmlto with the X.org distribution.
+
+The change will be sent upstream.
+
+--- xmlto-0.0.25/xmlto.in.orig	2014-02-13 13:58:02.220260650 -0800
++++ xmlto-0.0.25/xmlto.in	2014-02-13 14:03:39.275042953 -0800
[email protected]@ -322,7 +322,7 @@
+ 	shift
+ 	;;
+   --searchpath)
+-	local oldIFS="${IFS}"
++	oldIFS="${IFS}"
+ 	IFS=":"
+ 	for asearchpath in "$2"; do
+ 	  # wrangle relative paths into absolute ones so that the user
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/xmlto/resolve.deps	Wed Jan 21 17:31:38 2015 -0800
@@ -0,0 +1,8 @@
+file/gnu-coreutils
+file/gnu-findutils
+library/libxml2
+library/libxslt
+shell/bash
+shell/gnu-getopt
+system/library
+text/gnu-grep
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/xmlto/xmlto.p5m	Wed Jan 21 17:31:38 2015 -0800
@@ -0,0 +1,91 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
+#
+<transform file path=usr.*/man/.+ -> default mangler.man.stability uncommitted>
+set name=pkg.fmri \
+    value=pkg:/developer/documentation-tool/[email protected]$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
+set name=pkg.summary value="XML documentation format conversion tool"
+set name=pkg.description \
+    value="xmlto(1) is a shell-script tool for converting XML files to various formats. It supports conversion from DocBook, XHTML 1.0 and XSL-FO formats to various output formats including AWT, XSL-FO, HTML Help, JavaHelp, MIF, PDF, SVG, XHTML, DVI, HTML, HTML (no chunks), UNIX man, PCL, PostScript, TXT, XHTML (no chunks), and EPUB."
+set name=com.oracle.info.description \
+    value="the xmlto developer documentation tool"
+set name=com.oracle.info.tpno value=$(TPNO)
+set name=info.classification \
+    value="org.opensolaris.category.2008:System/Text Tools"
+set name=info.source-url value=$(COMPONENT_ARCHIVE_URL)
+set name=info.upstream-url value=$(COMPONENT_PROJECT_URL)
+set name=org.opensolaris.arc-caseid value=PSARC/2013/212
+set name=org.opensolaris.consolidation value=$(CONSOLIDATION)
+file usr/bin/$(MACH64)/xmlif path=usr/bin/xmlif
+file usr/bin/$(MACH64)/xmlto path=usr/bin/xmlto
+file path=usr/share/man/man1/xmlif.1
+file path=usr/share/man/man1/xmlto.1
+file path=usr/share/xmlto/format/docbook/awt
+file path=usr/share/xmlto/format/docbook/dvi
+file path=usr/share/xmlto/format/docbook/epub
+file path=usr/share/xmlto/format/docbook/fo
+file path=usr/share/xmlto/format/docbook/html
+file path=usr/share/xmlto/format/docbook/html-nochunks
+file path=usr/share/xmlto/format/docbook/htmlhelp
+file path=usr/share/xmlto/format/docbook/javahelp
+file path=usr/share/xmlto/format/docbook/man mangler.bypass=true
+file path=usr/share/xmlto/format/docbook/mif
+file path=usr/share/xmlto/format/docbook/pcl
+file path=usr/share/xmlto/format/docbook/pdf
+file path=usr/share/xmlto/format/docbook/ps
+file path=usr/share/xmlto/format/docbook/svg
+file path=usr/share/xmlto/format/docbook/txt
+file path=usr/share/xmlto/format/docbook/xhtml
+file path=usr/share/xmlto/format/docbook/xhtml-nochunks
+file path=usr/share/xmlto/format/fo/awt
+file path=usr/share/xmlto/format/fo/dvi
+file path=usr/share/xmlto/format/fo/mif
+file path=usr/share/xmlto/format/fo/pcl
+file path=usr/share/xmlto/format/fo/pdf
+file path=usr/share/xmlto/format/fo/ps
+file path=usr/share/xmlto/format/fo/svg
+file path=usr/share/xmlto/format/fo/txt
+file path=usr/share/xmlto/format/xhtml1/awt
+file path=usr/share/xmlto/format/xhtml1/dvi
+file path=usr/share/xmlto/format/xhtml1/fo
+file path=usr/share/xmlto/format/xhtml1/mif
+file path=usr/share/xmlto/format/xhtml1/pcl
+file path=usr/share/xmlto/format/xhtml1/pdf
+file path=usr/share/xmlto/format/xhtml1/ps
+file path=usr/share/xmlto/format/xhtml1/svg
+file path=usr/share/xmlto/format/xhtml1/txt
+file path=usr/share/xmlto/xmlto.mak
+license COPYING license=GPLv2
+
+# xmlto script dependencies that aren't automatically found:
+depend type=require fmri=__TBD pkg.debug.depend.file=usr/bin/xmllint
+depend type=require fmri=__TBD pkg.debug.depend.file=usr/bin/xsltproc
+depend type=require fmri=__TBD pkg.debug.depend.file=usr/gnu/bin/find
+depend type=require fmri=__TBD pkg.debug.depend.file=usr/gnu/bin/getopt
+depend type=require fmri=__TBD pkg.debug.depend.file=usr/gnu/bin/grep
+depend type=require fmri=__TBD pkg.debug.depend.file=usr/gnu/bin/tail
+
+# The DocBook back-end needs the following data files:
+depend type=require fmri=data/docbook/docbook-dtds
+depend type=require fmri=data/docbook/docbook-style-xsl
+depend type=require fmri=data/sgml-common
+depend type=require fmri=data/xml-common