Marcel Telka
2024-03-30 f9ba3aac090e918abb602b2ce28e58b7dd0f59fa
commit | author | age
64311d 1 #
MT 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
5 # 1.0 of the CDDL.
6 #
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.
10 #
11
12 #
13 # Copyright 2022 Marcel Telka
14 #
15
16 %hook-no-license%
17 (
18     cat "$SOURCE_DIR/README.txt" \
19         | grep -v "^--------" \
20         | gsed -e '0,/^Copyright & License:/d' -e '/^Installation:/,$d'
21     printf "--- Artistic.txt ----------------------------------------------------------\n"
22     cat "$SOURCE_DIR/license/Artistic.txt"
23     printf "\n\n--- GNU_GPL.txt -----------------------------------------------------------\n\n"
24     cat "$SOURCE_DIR/license/GNU_GPL.txt"
25     printf "\n\n--- GNU_LGPL.txt ----------------------------------------------------------\n\n"
26     cat "$SOURCE_DIR/license/GNU_LGPL.txt"
27 ) > "$DISTRIBUTION.license"
28 USE_DEFAULT_PERL_LICENSE=0
08f44f 29
MT 30 %include-3%
31 #
32 # There is circular runtime dependency:
33 #
34 #    Date-Calc recommends Date-Calc-XS
35 #    Date-Calc-XS requires Date-Calc
36 #
37 # To bootstrap both components we need to build Date-Calc first and remove any
38 # unresolved runtime dependency on Date-Calc-XS.
39 #
40 MANGLE_DEPEND_RUNTIME += | \
41     $(GNU_GREP) -v '^depend type=require fmri=__TBD pkg\.debug\.depend\.file=Date/Calc/XS\.pm'