2073N/A#
2073N/A# CDDL HEADER START
2073N/A#
2073N/A# The contents of this file are subject to the terms of the
2073N/A# Common Development and Distribution License (the "License").
2073N/A# You may not use this file except in compliance with the License.
2073N/A#
2073N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2073N/A# or http://www.opensolaris.org/os/licensing.
2073N/A# See the License for the specific language governing permissions
2073N/A# and limitations under the License.
2073N/A#
2073N/A# When distributing Covered Code, include this CDDL HEADER in each
2073N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2073N/A# If applicable, add the following below this CDDL HEADER, with the
2073N/A# fields enclosed by brackets "[]" replaced with your own identifying
2073N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2073N/A#
2073N/A# CDDL HEADER END
2073N/A#
2073N/A
2073N/A#
5680N/A# Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
2073N/A#
5680N/ABUILD_BITS= 64
2073N/Ainclude ../../make-rules/shared-macros.mk
2073N/A
2073N/ACOMPONENT_NAME= asciidoc
6465N/ACOMPONENT_VERSION= 8.6.9
2073N/ACOMPONENT_PROJECT_URL= http://www.methods.co.nz/asciidoc/
2073N/ACOMPONENT_ARCHIVE_HASH= \
6465N/A sha256:78db9d0567c8ab6570a6eff7ffdf84eadd91f2dfc0a92a2d0105d323cab4e1f0
2073N/ACOMPONENT_ARCHIVE_URL= http://downloads.sourceforge.net/project/$(COMPONENT_NAME)/$(COMPONENT_NAME)/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
2073N/A
6465N/ATPNO= 30220
2899N/A
5680N/ASYSTEM_TEST_TARGET= configure $(SYSTEM_TEST_64)
5680N/Ainclude $(WS_MAKE_RULES)/common.mk
2073N/A
3414N/APATCH_LEVEL = 0
3414N/A
2073N/A# AsciiDoc configuration and data files belong in /usr/share, not /etc based
2073N/A# on discussion from ARC pre-review.
2073N/A#
5680N/ACONFIGURE_OPTIONS += --sysconfdir=$(USRSHAREDIR)
2073N/A
2073N/A# pkgdepend doesn't like the first line of a Python script to be:
2073N/A# '#!/usr/bin/env python' so turn it into '#!/usr/bin/python$(PYTHON_VERSION)'
2073N/A#
2073N/ACOMPONENT_POST_INSTALL_ACTION += \
2073N/A $(GSED) -i -e 's?env python?python$(PYTHON_VERSION)?' \
5680N/A $(PROTOUSRBINDIR)/asciidoc.py;
2073N/ACOMPONENT_POST_INSTALL_ACTION += \
2073N/A $(GSED) -i -e 's?env python?python$(PYTHON_VERSION)?' \
5680N/A $(PROTOUSRBINDIR)/a2x.py;
2073N/A
2073N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
2073N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
2073N/A
2073N/A# common targets
2073N/A# Tests require image/graphviz to be installed. Some tests also want to run
3414N/A# programs which are not automatically available on Solaris (latex, abc2ly
3414N/A# and lilypad), so these tests will output messages of the form:
3414N/A# latex2png.py: failed command: latex ...
3414N/A# music2png.py: failed command: abc2ly ...
3414N/A# music2png.py: failed command: lilypond ...
2073N/ACOMPONENT_PRE_TEST_ACTION = \
3414N/A (cd $(@D); ln -s asciidoc.py asciidoc)
3414N/A
3414N/ACOMPONENT_TEST_DIR = $(@D)/tests
3414N/ACOMPONENT_TEST_ENV_CMD =
3414N/ACOMPONENT_TEST_ENV = export PATH=$(@D):$$PATH;
3414N/ACOMPONENT_TEST_CMD = \
3414N/A python$(PYTHON_VERSION) ./asciidocapi.py; \
3414N/A if [ $$? -eq 0 ] ; \
3414N/A then print "asciidocapi test passed"; \
3414N/A else print "asciidocapi test failed"; \
3414N/A fi; \
3414N/A python$(PYTHON_VERSION) ./testasciidoc.py update; \
3414N/A python$(PYTHON_VERSION) ./testasciidoc.py run
3414N/ACOMPONENT_TEST_TARGETS =
3588N/ACOMPONENT_POST_TEST_ACTION = \
3588N/A (cd $(@D); rm asciidoc)
3588N/A
3588N/ACOMPONENT_TEST_TRANSFORMS += \
4766N/A '-n ' \
4766N/A '-e "/passed/p" ' \
4766N/A '-e "/^[1-9]: /p" ' \
4766N/A '-e "/^[1-9][0-9]: /p" ' \
4766N/A '-e "/^SOURCE/p" ' \
4766N/A '-e "/^PASSED/p" ' \
4766N/A '-e "/^FAILED/p" ' \
4766N/A '-e "/^TOTAL/p" '
4766N/A
4766N/ACOMPONENT_SYSTEM_TEST_DIR = $(@D)/tests
4766N/ACOMPONENT_SYSTEM_TEST_ENV_CMD =
4766N/ACOMPONENT_SYSTEM_TEST_CMD = \
4766N/A python$(PYTHON_VERSION) ./asciidocapi.py; \
4766N/A if [ $$? -eq 0 ] ; \
4766N/A then print "asciidocapi test passed"; \
4766N/A else print "asciidocapi test failed"; \
4766N/A fi; \
4766N/A python$(PYTHON_VERSION) ./testasciidoc.py update; \
4766N/A python$(PYTHON_VERSION) ./testasciidoc.py run
4766N/ACOMPONENT_SYSTEM_TEST_TARGETS =
2073N/A
3817N/AREQUIRED_PACKAGES += library/libxml2
3817N/AREQUIRED_PACKAGES += library/libxslt
3817N/AREQUIRED_PACKAGES += web/browser/lynx