PSARC 2013/268 AsciiDoc
authorRich Burridge <rich.burridge@oracle.com>
Tue, 15 Oct 2013 10:11:39 -0700
changeset 1510 2a70db54adec
parent 1509 9b41420b4385
child 1511 4d3b0b480760
PSARC 2013/268 AsciiDoc 15787433 SUNBT7163783 asciidoc should be packaged for Solaris
components/asciidoc/Makefile
components/asciidoc/asciidoc.p5m
components/asciidoc/resolve.deps
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/asciidoc/Makefile	Tue Oct 15 10:11:39 2013 -0700
@@ -0,0 +1,87 @@
+#
+# 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) 2013, Oracle and/or its affiliates. All rights reserved.
+#
+
+include ../../make-rules/shared-macros.mk
+
+COMPONENT_NAME=		asciidoc
+COMPONENT_VERSION=	8.6.8
+COMPONENT_PROJECT_URL=	http://www.methods.co.nz/asciidoc/
+COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
+COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
+COMPONENT_ARCHIVE_HASH= \
+    sha256:ffb67f59dccaf6f15db72fcd04fdf21a2f9b703d31f94fcd0c49a424a9fcfbc4
+COMPONENT_ARCHIVE_URL=	 http://downloads.sourceforge.net/project/$(COMPONENT_NAME)/$(COMPONENT_NAME)/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
+COMPONENT_BUGDB=	utility/asciidoc
+
+include ../../make-rules/prep.mk
+include ../../make-rules/configure.mk
+include ../../make-rules/ips.mk
+
+# AsciiDoc configuration and data files belong in /usr/share, not /etc based
+# on discussion from ARC pre-review.
+#
+CONFIGURE_OPTIONS +=    --sysconfdir=/usr/share
+
+# pkgdepend doesn't like the first line of a Python script to be:
+# '#!/usr/bin/env python' so turn it into '#!/usr/bin/python$(PYTHON_VERSION)'
+#
+COMPONENT_POST_INSTALL_ACTION += \
+        $(GSED) -i -e 's?env python?python$(PYTHON_VERSION)?' \
+                $(PROTOUSRBINDIR64)/asciidoc.py;
+COMPONENT_POST_INSTALL_ACTION += \
+        $(GSED) -i -e 's?env python?python$(PYTHON_VERSION)?' \
+                $(PROTOUSRBINDIR64)/a2x.py;
+
+COMPONENT_PRE_CONFIGURE_ACTION = \
+        ($(CLONEY) $(SOURCE_DIR) $(@D))
+
+ASLR_MODE = $(ASLR_ENABLE)
+
+# common targets
+build:		$(BUILD_64)
+
+install:	$(INSTALL_64)
+
+# Tests require image/graphviz to be installed.  Some tests also want to run
+# programs named latex, lilypad, abc2ly and source-highlight which are not
+# available on Solaris, so these tests fail.
+#
+COMPONENT_PRE_TEST_ACTION = \
+    (cd $(@D); \
+     ln -s asciidoc.py asciidoc; \
+     export PATH=$(@D):$$PATH; \
+     cd tests; \
+     python$(PYTHON_VERSION) ./asciidocapi.py; \
+     if [ $$? -eq 0 ] ; \
+       then print "asciidocapi test passed"; else print "asciidocapi test failed"; \
+     fi; \
+     python$(PYTHON_VERSION) ./testasciidoc.py update; \
+     python$(PYTHON_VERSION) ./testasciidoc.py run; )
+
+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/asciidoc/asciidoc.p5m	Tue Oct 15 10:11:39 2013 -0700
@@ -0,0 +1,129 @@
+#
+# 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) 2013, 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="AsciiDoc text based document generation tool"
+set name=pkg.description \
+    value="AsciiDoc is a text document format for writing notes, documentation, articles, books, ebooks, slideshows, web pages, man pages and blogs.  AsciiDoc files can be translated to many formats including HTML, PDF, EPUB, and man pages. AsciiDoc is highly configurable: both the AsciiDoc source file syntax and the backend output markups (which can be almost any type of SGML/XML markup) can be customized and extended by the user."
+set name=com.oracle.info.description value="the AsciiDoc developer tool"
+set name=com.oracle.info.tpno value=14505
+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/268
+set name=org.opensolaris.consolidation value=$(CONSOLIDATION)
+file usr/bin/$(MACH64)/a2x.py path=usr/bin/a2x
+file usr/bin/$(MACH64)/asciidoc.py path=usr/bin/asciidoc
+file path=usr/share/asciidoc/asciidoc.conf
+file path=usr/share/asciidoc/dblatex/asciidoc-dblatex.sty
+file path=usr/share/asciidoc/dblatex/asciidoc-dblatex.xsl
+file path=usr/share/asciidoc/docbook-xsl/chunked.xsl
+file path=usr/share/asciidoc/docbook-xsl/common.xsl
+file path=usr/share/asciidoc/docbook-xsl/epub.xsl
+file path=usr/share/asciidoc/docbook-xsl/fo.xsl
+file path=usr/share/asciidoc/docbook-xsl/htmlhelp.xsl
+file path=usr/share/asciidoc/docbook-xsl/manpage.xsl
+file path=usr/share/asciidoc/docbook-xsl/text.xsl
+file path=usr/share/asciidoc/docbook-xsl/xhtml.xsl
+file path=usr/share/asciidoc/docbook45.conf
+file path=usr/share/asciidoc/filters/code/code-filter.conf
+file path=usr/share/asciidoc/filters/code/code-filter.py pkg.tmp.autopyc=false
+file path=usr/share/asciidoc/filters/graphviz/graphviz-filter.conf
+file path=usr/share/asciidoc/filters/graphviz/graphviz2png.py \
+    pkg.tmp.autopyc=false
+file path=usr/share/asciidoc/filters/latex/latex-filter.conf
+file path=usr/share/asciidoc/filters/latex/latex2png.py pkg.tmp.autopyc=false
+file path=usr/share/asciidoc/filters/music/music-filter.conf
+file path=usr/share/asciidoc/filters/music/music2png.py pkg.tmp.autopyc=false
+file path=usr/share/asciidoc/filters/source/source-highlight-filter.conf
+file path=usr/share/asciidoc/help.conf
+file path=usr/share/asciidoc/html4.conf
+file path=usr/share/asciidoc/html5.conf
+file path=usr/share/asciidoc/images/icons/README
+file path=usr/share/asciidoc/images/icons/callouts/1.png
+file path=usr/share/asciidoc/images/icons/callouts/10.png
+file path=usr/share/asciidoc/images/icons/callouts/11.png
+file path=usr/share/asciidoc/images/icons/callouts/12.png
+file path=usr/share/asciidoc/images/icons/callouts/13.png
+file path=usr/share/asciidoc/images/icons/callouts/14.png
+file path=usr/share/asciidoc/images/icons/callouts/15.png
+file path=usr/share/asciidoc/images/icons/callouts/2.png
+file path=usr/share/asciidoc/images/icons/callouts/3.png
+file path=usr/share/asciidoc/images/icons/callouts/4.png
+file path=usr/share/asciidoc/images/icons/callouts/5.png
+file path=usr/share/asciidoc/images/icons/callouts/6.png
+file path=usr/share/asciidoc/images/icons/callouts/7.png
+file path=usr/share/asciidoc/images/icons/callouts/8.png
+file path=usr/share/asciidoc/images/icons/callouts/9.png
+file path=usr/share/asciidoc/images/icons/caution.png
+file path=usr/share/asciidoc/images/icons/example.png
+file path=usr/share/asciidoc/images/icons/home.png
+file path=usr/share/asciidoc/images/icons/important.png
+file path=usr/share/asciidoc/images/icons/next.png
+file path=usr/share/asciidoc/images/icons/note.png
+file path=usr/share/asciidoc/images/icons/prev.png
+file path=usr/share/asciidoc/images/icons/tip.png
+file path=usr/share/asciidoc/images/icons/up.png
+file path=usr/share/asciidoc/images/icons/warning.png
+file path=usr/share/asciidoc/javascripts/ASCIIMathML.js
+file path=usr/share/asciidoc/javascripts/LaTeXMathML.js
+file path=usr/share/asciidoc/javascripts/asciidoc.js
+file path=usr/share/asciidoc/javascripts/slidy.js
+file path=usr/share/asciidoc/javascripts/toc.js
+file path=usr/share/asciidoc/lang-de.conf
+file path=usr/share/asciidoc/lang-el.conf
+file path=usr/share/asciidoc/lang-en.conf
+file path=usr/share/asciidoc/lang-es.conf
+file path=usr/share/asciidoc/lang-fr.conf
+file path=usr/share/asciidoc/lang-hu.conf
+file path=usr/share/asciidoc/lang-it.conf
+file path=usr/share/asciidoc/lang-nl.conf
+file path=usr/share/asciidoc/lang-pt-BR.conf
+file path=usr/share/asciidoc/lang-ru.conf
+file path=usr/share/asciidoc/lang-uk.conf
+file path=usr/share/asciidoc/latex.conf
+file path=usr/share/asciidoc/slidy.conf
+file path=usr/share/asciidoc/stylesheets/asciidoc.css
+file path=usr/share/asciidoc/stylesheets/docbook-xsl.css
+file path=usr/share/asciidoc/stylesheets/pygments.css
+file path=usr/share/asciidoc/stylesheets/slidy.css
+file path=usr/share/asciidoc/stylesheets/toc2.css
+file path=usr/share/asciidoc/stylesheets/xhtml11-quirks.css
+file path=usr/share/asciidoc/text.conf
+file path=usr/share/asciidoc/themes/flask/flask.css
+file path=usr/share/asciidoc/themes/volnitsky/volnitsky.css
+file path=usr/share/asciidoc/wordpress.conf
+file path=usr/share/asciidoc/xhtml11-quirks.conf
+file path=usr/share/asciidoc/xhtml11.conf
+file path=usr/share/man/man1/a2x.1
+file path=usr/share/man/man1/asciidoc.1
+license COPYING license=GPLv2
+
+# Add dependencies for the applications that can be potentially exec'ed by a2x.
+depend type=require fmri=__TBD pkg.debug.depend.file=usr/bin/lynx
+depend type=require fmri=__TBD pkg.debug.depend.file=usr/bin/w3m
+depend type=require fmri=__TBD pkg.debug.depend.file=usr/bin/xmllint
+depend type=require fmri=__TBD pkg.debug.depend.file=usr/bin/xsltproc
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/asciidoc/resolve.deps	Tue Oct 15 10:11:39 2013 -0700
@@ -0,0 +1,5 @@
+library/libxml2
+library/libxslt
+runtime/python-26
+web/browser/lynx
+web/browser/w3m