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 2014 Alexander Pyhalov. All rights reserved.
14 # Copyright 2017 Aurelien Larcher. All rights reserved.
17 include ..
/..
/..
/make-rules
/shared-macros.mk
19 COMPONENT_NAME
= patchutils
20 COMPONENT_VERSION
= 0.3.4
21 COMPONENT_REVISION
= 1
22 COMPONENT_FMRI
= text
/patchutils
23 COMPONENT_SUMMARY
= patchutils
- Tools for manipulating patch files
24 COMPONENT_PROJECT_URL
= http
://cyberelk.net
/tim
/software
/patchutils
/
25 COMPONENT_CLASSIFICATION
= System
/Text Tools
26 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
27 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.xz
28 COMPONENT_ARCHIVE_HASH
= \
29 sha256
:cf55d4db83ead41188f5b6be16f60f6b76a87d5db1c42f5459d596e81dabe876
30 COMPONENT_ARCHIVE_URL
= \
31 http
://cyberelk.net
/tim
/data
/patchutils
/stable
/$(COMPONENT_ARCHIVE
)
32 COMPONENT_LICENSE
= GPLv2
34 USE_DEFAULT_TEST_TRANSFORMS
= yes
36 include $(WS_MAKE_RULES
)/common.mk
38 CONFIGURE_OPTIONS
+= --with-patch
=gpatch
39 CONFIGURE_OPTIONS
+= --with-diff
=gdiff
41 COMPONENT_PRE_TEST_ACTION
= \
42 ($(GSED
) -i
-e
'1 s;/bin/sh;/bin/bash;' $(SOURCE_DIR
)/tests
/*/run-test
; \
43 chmod a
+x
$(@D
)/scripts
/*diff
)
45 COMPONENT_TEST_ENV
+= LANG
=C
46 COMPONENT_TEST_ENV
+= PATH
=$(PROTOUSRBINDIR
):$(PATH
)
50 # Auto-generated dependencies
51 REQUIRED_PACKAGES
+= runtime
/perl
52 REQUIRED_PACKAGES
+= shell/bash
53 REQUIRED_PACKAGES
+= shell/ksh93
54 REQUIRED_PACKAGES
+= system
/library