Makefile revision 5680
3998N/A#
3998N/A# CDDL HEADER START
3998N/A#
3998N/A# The contents of this file are subject to the terms of the
3998N/A# Common Development and Distribution License (the "License").
3998N/A# You may not use this file except in compliance with the License.
3998N/A#
3998N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
3998N/A# or http://www.opensolaris.org/os/licensing.
3998N/A# See the License for the specific language governing permissions
3998N/A# and limitations under the License.
3998N/A#
3998N/A# When distributing Covered Code, include this CDDL HEADER in each
3998N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
3998N/A# If applicable, add the following below this CDDL HEADER, with the
3998N/A# fields enclosed by brackets "[]" replaced with your own identifying
3998N/A# information: Portions Copyright [yyyy] [name of copyright owner]
3998N/A#
3998N/A# CDDL HEADER END
3998N/A#
3998N/A
3998N/A#
5403N/A# Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
3998N/A#
3998N/ABUILD_BITS= 64
3998N/Ainclude ../../make-rules/shared-macros.mk
3998N/A
3998N/ACOMPONENT_NAME= asciidoc
6798N/ACOMPONENT_VERSION= 8.6.8
3998N/ACOMPONENT_PROJECT_URL= http://www.methods.co.nz/asciidoc/
3998N/ACOMPONENT_ARCHIVE_HASH= \
3998N/A sha256:ffb67f59dccaf6f15db72fcd04fdf21a2f9b703d31f94fcd0c49a424a9fcfbc4
6798N/ACOMPONENT_ARCHIVE_URL= http://downloads.sourceforge.net/project/$(COMPONENT_NAME)/$(COMPONENT_NAME)/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
3998N/A
6798N/ATPNO= 14505
3998N/A
3998N/ASYSTEM_TEST_TARGET= configure $(SYSTEM_TEST_64)
6798N/Ainclude $(WS_MAKE_RULES)/common.mk
3998N/A
3998N/APATCH_LEVEL = 0
3998N/A
3998N/A# AsciiDoc configuration and data files belong in /usr/share, not /etc based
3998N/A# on discussion from ARC pre-review.
3998N/A#
3998N/ACONFIGURE_OPTIONS += --sysconfdir=$(USRSHAREDIR)
3998N/A
3998N/A# pkgdepend doesn't like the first line of a Python script to be:
3998N/A# '#!/usr/bin/env python' so turn it into '#!/usr/bin/python$(PYTHON_VERSION)'
3998N/A#
3998N/ACOMPONENT_POST_INSTALL_ACTION += \
6798N/A $(GSED) -i -e 's?env python?python$(PYTHON_VERSION)?' \
3998N/A $(PROTOUSRBINDIR)/asciidoc.py;
3998N/ACOMPONENT_POST_INSTALL_ACTION += \
4337N/A $(GSED) -i -e 's?env python?python$(PYTHON_VERSION)?' \
6798N/A $(PROTOUSRBINDIR)/a2x.py;
COMPONENT_PRE_CONFIGURE_ACTION = \
($(CLONEY) $(SOURCE_DIR) $(@D))
# common targets
# Tests require image/graphviz to be installed. Some tests also want to run
# programs which are not automatically available on Solaris (latex, abc2ly
# and lilypad), so these tests will output messages of the form:
# latex2png.py: failed command: latex ...
# music2png.py: failed command: abc2ly ...
# music2png.py: failed command: lilypond ...
COMPONENT_PRE_TEST_ACTION = \
(cd $(@D); ln -s asciidoc.py asciidoc)
COMPONENT_TEST_DIR = $(@D)/tests
COMPONENT_TEST_ENV_CMD =
COMPONENT_TEST_ENV = export PATH=$(@D):$$PATH;
COMPONENT_TEST_CMD = \
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
COMPONENT_TEST_TARGETS =
COMPONENT_POST_TEST_ACTION = \
(cd $(@D); rm asciidoc)
COMPONENT_TEST_TRANSFORMS += \
'-n ' \
'-e "/passed/p" ' \
'-e "/^[1-9]: /p" ' \
'-e "/^[1-9][0-9]: /p" ' \
'-e "/^SOURCE/p" ' \
'-e "/^PASSED/p" ' \
'-e "/^FAILED/p" ' \
'-e "/^TOTAL/p" '
COMPONENT_SYSTEM_TEST_DIR = $(@D)/tests
COMPONENT_SYSTEM_TEST_ENV_CMD =
COMPONENT_SYSTEM_TEST_CMD = \
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
COMPONENT_SYSTEM_TEST_TARGETS =
REQUIRED_PACKAGES += library/libxml2
REQUIRED_PACKAGES += library/libxslt
REQUIRED_PACKAGES += web/browser/lynx