2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright 2016 Alexander Pyhalov
16 include ..
/..
/..
/make-rules
/shared-macros.mk
19 COMPONENT_VERSION
= 0.0.28
21 COMPONENT_SUMMARY
= xmlto is a shell-script tool for converting XML files to various formats
22 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
23 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.bz2
24 COMPONENT_ARCHIVE_HASH
= sha256
:1130df3a7957eb9f6f0d29e4aa1c75732a7dfb6d639be013859b5c7ec5421276
25 # Official hosting at Fedora has been retired
26 COMPONENT_ARCHIVE_URL
= http
://dlc.openindiana.org
/oi-userland
/source-archives
//$(COMPONENT_ARCHIVE
)
27 COMPONENT_PROJECT_URL
= https
://fedorahosted.org
/xmlto
/
28 COMPONENT_FMRI
= text
/$(COMPONENT_NAME
)
29 COMPONENT_CLASSIFICATION
= System
/Text Tools
30 COMPONENT_LICENSE
= GPLv2
31 COMPONENT_LICENSE_FILE
= COPYING
33 include $(WS_MAKE_RULES
)/common.mk
35 # Make sure that configure finds the GNU variants:
36 CONFIGURE_ENV
+= BASH
=/usr
/bin
/bash
37 CONFIGURE_ENV
+= CP
=/usr
/bin
/gcp
38 CONFIGURE_ENV
+= FIND
=/usr
/bin
/gfind
39 CONFIGURE_ENV
+= GETOPT
=/usr
/gnu
/bin
/getopt
40 CONFIGURE_ENV
+= GREP
=/usr
/bin
/ggrep
41 CONFIGURE_ENV
+= SED
=/usr
/bin
/gsed
43 # Strip compilation lines from test output
44 COMPONENT_TEST_TRANSFORMS
+= \
45 '-e "s|^.*$(CC).*$$|XXX_CC_XXX|g" ' \
46 '-e "s|^.*source=.*libtool=no.*$$|XXX_CC_XXX|g" ' \
47 '-e "s|^.*DEPDIR=.deps.*$$|XXX_CC_XXX|g" ' \
48 '-e "s|^.*xmlif.l.*$$|XXX_CC_XXX|g" ' \
49 '-e "s|^make.*: Leaving directory.*$$|XXX_CC_XXX|g" ' \
50 '-e "s|^make.*: Entering directory.*$$|XXX_CC_XXX|g" ' \
51 '-e "/^XXX_CC_XXX$$/d" '
53 # Auto-generated dependencies
54 REQUIRED_PACKAGES
+= file
/gnu-coreutils
55 REQUIRED_PACKAGES
+= file
/gnu-findutils
56 REQUIRED_PACKAGES
+= library
/libxml2
57 REQUIRED_PACKAGES
+= library
/libxslt
58 REQUIRED_PACKAGES
+= shell/bash
59 REQUIRED_PACKAGES
+= shell/gnu-getopt
60 REQUIRED_PACKAGES
+= system
/library
61 REQUIRED_PACKAGES
+= text
/gnu-grep
62 REQUIRED_PACKAGES
+= web
/browser
/lynx