Makefile revision 3588
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt# CDDL HEADER START
9210d8796eaf4125ac58c034f9b5ca167857a55aAutomatic Updater# The contents of this file are subject to the terms of the
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# Common Development and Distribution License (the "License").
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# You may not use this file except in compliance with the License.
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt# See the License for the specific language governing permissions
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt# and limitations under the License.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# When distributing Covered Code, include this CDDL HEADER in each
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox User# If applicable, add the following below this CDDL HEADER, with the
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt# fields enclosed by brackets "[]" replaced with your own identifying
e2e4d321999340802f77adaacd19c797d04b4b95Automatic Updater# information: Portions Copyright [yyyy] [name of copyright owner]
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt# CDDL HEADER END
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt# Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
76786c2904942b708d8a7a4659df74da5dc9446eEvan HuntCOMPONENT_PROJECT_URL= http://www.methods.co.nz/asciidoc/
76786c2904942b708d8a7a4659df74da5dc9446eEvan HuntCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt sha256:ffb67f59dccaf6f15db72fcd04fdf21a2f9b703d31f94fcd0c49a424a9fcfbc4
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserCOMPONENT_ARCHIVE_URL= http://downloads.sourceforge.net/project/$(COMPONENT_NAME)/$(COMPONENT_NAME)/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt# AsciiDoc configuration and data files belong in /usr/share, not /etc based
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# on discussion from ARC pre-review.
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt# pkgdepend doesn't like the first line of a Python script to be:
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# '#!/usr/bin/env python' so turn it into '#!/usr/bin/python$(PYTHON_VERSION)'
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User $(GSED) -i -e 's?env python?python$(PYTHON_VERSION)?' \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User $(GSED) -i -e 's?env python?python$(PYTHON_VERSION)?' \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# common targets
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# Tests require image/graphviz to be installed. Some tests also want to run
7e71f05d8643aca84914437c900cb716444507e4Tinderbox User# programs which are not automatically available on Solaris (latex, abc2ly
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# and lilypad), so these tests will output messages of the form:
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# latex2png.py: failed command: latex ...
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# music2png.py: failed command: abc2ly ...
f5ae3cca1d2832239cc821bdef77e90c1739e66dTinderbox User# music2png.py: failed command: lilypond ...
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserCOMPONENT_TEST_ENV = export PATH=$(@D):$$PATH;
ec899c963c91c16c393e067996400ae244921110Tinderbox User then print "asciidocapi test passed"; \
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt else print "asciidocapi test failed"; \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User python$(PYTHON_VERSION) ./testasciidoc.py update; \
ec899c963c91c16c393e067996400ae244921110Tinderbox User# The additional asciidoc specific set of transforms to be applied to the
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# test results to try to normalize them.
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt '-e "s|/tmp......|/tmpxxxxxx|g" '