Makefile revision 4337
18727N/A#
13271N/A# CDDL HEADER START
13271N/A#
13271N/A# The contents of this file are subject to the terms of the
13271N/A# Common Development and Distribution License (the "License").
13271N/A# You may not use this file except in compliance with the License.
13271N/A#
13271N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
13271N/A# or http://www.opensolaris.org/os/licensing.
13271N/A# See the License for the specific language governing permissions
13271N/A# and limitations under the License.
13271N/A#
13271N/A# When distributing Covered Code, include this CDDL HEADER in each
13271N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
13271N/A# If applicable, add the following below this CDDL HEADER, with the
13271N/A# fields enclosed by brackets "[]" replaced with your own identifying
13271N/A# information: Portions Copyright [yyyy] [name of copyright owner]
13271N/A#
13271N/A# CDDL HEADER END
17719N/A#
17719N/A
17719N/A#
17719N/A# Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
17719N/A#
17719N/A
13271N/Ainclude ../../make-rules/shared-macros.mk
13271N/A
13271N/ACOMPONENT_NAME= asciidoc
13271N/ACOMPONENT_VERSION= 8.6.8
13271N/ACOMPONENT_PROJECT_URL= http://www.methods.co.nz/asciidoc/
13271N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
13271N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
13271N/ACOMPONENT_ARCHIVE_HASH= \
13271N/A sha256:ffb67f59dccaf6f15db72fcd04fdf21a2f9b703d31f94fcd0c49a424a9fcfbc4
13271N/ACOMPONENT_ARCHIVE_URL= http://downloads.sourceforge.net/project/$(COMPONENT_NAME)/$(COMPONENT_NAME)/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
17719N/ACOMPONENT_BUGDB= utility/asciidoc
17719N/A
17719N/ATPNO= 14505
17719N/A
17719N/Ainclude $(WS_MAKE_RULES)/prep.mk
17719N/Ainclude $(WS_MAKE_RULES)/configure.mk
13271N/Ainclude $(WS_MAKE_RULES)/ips.mk
13271N/A
13271N/APATCH_LEVEL = 0
13271N/A
13271N/A# AsciiDoc configuration and data files belong in /usr/share, not /etc based
17719N/A# on discussion from ARC pre-review.
13271N/A#
13271N/ACONFIGURE_OPTIONS += --sysconfdir=/usr/share
13283N/A
13283N/A# pkgdepend doesn't like the first line of a Python script to be:
17719N/A# '#!/usr/bin/env python' so turn it into '#!/usr/bin/python$(PYTHON_VERSION)'
13283N/A#
13283N/ACOMPONENT_POST_INSTALL_ACTION += \
13283N/A $(GSED) -i -e 's?env python?python$(PYTHON_VERSION)?' \
13283N/A $(PROTOUSRBINDIR64)/asciidoc.py;
13283N/ACOMPONENT_POST_INSTALL_ACTION += \
13283N/A $(GSED) -i -e 's?env python?python$(PYTHON_VERSION)?' \
13283N/A $(PROTOUSRBINDIR64)/a2x.py;
13283N/A
13283N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
13283N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
13283N/A
13283N/AASLR_MODE = $(ASLR_ENABLE)
13283N/A
13283N/A# common targets
17719N/Aconfigure: $(CONFIGURE_64)
13283N/A
17719N/Abuild: $(BUILD_64)
13283N/A
17719N/Ainstall: $(INSTALL_64)
17719N/A
13283N/A# Tests require image/graphviz to be installed. Some tests also want to run
17719N/A# programs which are not automatically available on Solaris (latex, abc2ly
17719N/A# and lilypad), so these tests will output messages of the form:
17719N/A# latex2png.py: failed command: latex ...
17719N/A# music2png.py: failed command: abc2ly ...
17719N/A# music2png.py: failed command: lilypond ...
17719N/ACOMPONENT_PRE_TEST_ACTION = \
13283N/A (cd $(@D); ln -s asciidoc.py asciidoc)
17719N/A
17719N/ACOMPONENT_TEST_DIR = $(@D)/tests
13283N/ACOMPONENT_TEST_ENV_CMD =
13283N/ACOMPONENT_TEST_ENV = export PATH=$(@D):$$PATH;
13283N/ACOMPONENT_TEST_CMD = \
13283N/A python$(PYTHON_VERSION) ./asciidocapi.py; \
13283N/A if [ $$? -eq 0 ] ; \
13283N/A then print "asciidocapi test passed"; \
13283N/A else print "asciidocapi test failed"; \
13283N/A fi; \
13283N/A python$(PYTHON_VERSION) ./testasciidoc.py update; \
13283N/A python$(PYTHON_VERSION) ./testasciidoc.py run
13283N/ACOMPONENT_TEST_TARGETS =
13283N/ACOMPONENT_POST_TEST_ACTION = \
13283N/A (cd $(@D); rm asciidoc)
13283N/A
13283N/A# The additional asciidoc specific set of transforms to be applied to the
13283N/A# test results to try to normalize them.
13283N/ACOMPONENT_TEST_TRANSFORMS += \
17719N/A '-e "s|/tmp......|/tmpxxxxxx|g" '
13283N/A
17719N/Atest: $(TEST_64)
17719N/A
17719N/Asystem-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED)
17719N/A
13283N/A
17719N/AREQUIRED_PACKAGES += library/libxml2
17719N/AREQUIRED_PACKAGES += library/libxslt
17719N/AREQUIRED_PACKAGES += runtime/python-26
17719N/AREQUIRED_PACKAGES += web/browser/lynx
17719N/AREQUIRED_PACKAGES += web/browser/w3m
13283N/A