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