perl/perl/perl.sh

Fri, 15 Nov 2019 20:05:00 +0100

author
David Demelier <markand@malikania.fr>
date
Fri, 15 Nov 2019 20:05:00 +0100
changeset 1207
c9592a9a949b
parent 1115
297b5eef115e
child 1216
6710613b88b9
permissions
-rw-r--r--

python/python2: add DEPRECATED tag

1115
297b5eef115e vanilla: change shebangs to /bin/sh
David Demelier <markand@malikania.fr>
parents: 1107
diff changeset
1 #!/bin/sh
38
4c7b0a8e34f4 perl/perl: initial import, closes #1107
David Demelier <markand@malikania.fr>
parents:
diff changeset
2 #
4c7b0a8e34f4 perl/perl: initial import, closes #1107
David Demelier <markand@malikania.fr>
parents:
diff changeset
3 # Copyright (c) 2019 David Demelier <markand@malikania.fr>
4c7b0a8e34f4 perl/perl: initial import, closes #1107
David Demelier <markand@malikania.fr>
parents:
diff changeset
4 #
4c7b0a8e34f4 perl/perl: initial import, closes #1107
David Demelier <markand@malikania.fr>
parents:
diff changeset
5 # Permission to use, copy, modify, and/or distribute this software for any
4c7b0a8e34f4 perl/perl: initial import, closes #1107
David Demelier <markand@malikania.fr>
parents:
diff changeset
6 # purpose with or without fee is hereby granted, provided that the above
4c7b0a8e34f4 perl/perl: initial import, closes #1107
David Demelier <markand@malikania.fr>
parents:
diff changeset
7 # copyright notice and this permission notice appear in all copies.
4c7b0a8e34f4 perl/perl: initial import, closes #1107
David Demelier <markand@malikania.fr>
parents:
diff changeset
8 #
4c7b0a8e34f4 perl/perl: initial import, closes #1107
David Demelier <markand@malikania.fr>
parents:
diff changeset
9 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
4c7b0a8e34f4 perl/perl: initial import, closes #1107
David Demelier <markand@malikania.fr>
parents:
diff changeset
10 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
4c7b0a8e34f4 perl/perl: initial import, closes #1107
David Demelier <markand@malikania.fr>
parents:
diff changeset
11 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
4c7b0a8e34f4 perl/perl: initial import, closes #1107
David Demelier <markand@malikania.fr>
parents:
diff changeset
12 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
4c7b0a8e34f4 perl/perl: initial import, closes #1107
David Demelier <markand@malikania.fr>
parents:
diff changeset
13 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
4c7b0a8e34f4 perl/perl: initial import, closes #1107
David Demelier <markand@malikania.fr>
parents:
diff changeset
14 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
4c7b0a8e34f4 perl/perl: initial import, closes #1107
David Demelier <markand@malikania.fr>
parents:
diff changeset
15 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
4c7b0a8e34f4 perl/perl: initial import, closes #1107
David Demelier <markand@malikania.fr>
parents:
diff changeset
16 #
4c7b0a8e34f4 perl/perl: initial import, closes #1107
David Demelier <markand@malikania.fr>
parents:
diff changeset
17
142
c3e9685afe86 perl: merge .sh and .info
David Demelier <markand@malikania.fr>
parents: 38
diff changeset
18 PKGNAME=perl
c3e9685afe86 perl: merge .sh and .info
David Demelier <markand@malikania.fr>
parents: 38
diff changeset
19 PKGVERSION=5.28.1
c3e9685afe86 perl: merge .sh and .info
David Demelier <markand@malikania.fr>
parents: 38
diff changeset
20 PKGREVISION=1
1107
7791d3dbfecf vanilla: consolidate licenses and many options
David Demelier <markand@malikania.fr>
parents: 1094
diff changeset
21 PKGLICENSE="GPLv10 CUSTOM"
142
c3e9685afe86 perl: merge .sh and .info
David Demelier <markand@malikania.fr>
parents: 38
diff changeset
22 PKGSUMMARY="perl programming language"
c3e9685afe86 perl: merge .sh and .info
David Demelier <markand@malikania.fr>
parents: 38
diff changeset
23 PKGDOWNLOAD="https://www.cpan.org/src/5.0/$PKGNAME-$PKGVERSION.tar.xz"
1094
3dece1f7570b vanilla: add many ghost dependencies
David Demelier <markand@malikania.fr>
parents: 1019
diff changeset
24 PKGDEPENDS="bzip2 db gdbm zlib"
155
7e885b73d8b1 perl/perl: make sure zlib/bzip2 are not built
David Demelier <markand@malikania.fr>
parents: 142
diff changeset
25
7e885b73d8b1 perl/perl: make sure zlib/bzip2 are not built
David Demelier <markand@malikania.fr>
parents: 142
diff changeset
26 : ${CHOST:=$(uname -m)-linux-musl}
7e885b73d8b1 perl/perl: make sure zlib/bzip2 are not built
David Demelier <markand@malikania.fr>
parents: 142
diff changeset
27 : ${CBUILD:=$(uname -m)-linux-musl}
506
e81cc338d937 perl: convert packages to clang
David Demelier <markand@malikania.fr>
parents: 155
diff changeset
28 : ${CC:=clang}
155
7e885b73d8b1 perl/perl: make sure zlib/bzip2 are not built
David Demelier <markand@malikania.fr>
parents: 142
diff changeset
29 : ${CFLAGS:=-O2}
7e885b73d8b1 perl/perl: make sure zlib/bzip2 are not built
David Demelier <markand@malikania.fr>
parents: 142
diff changeset
30 : ${LDFLAGS:=}
7e885b73d8b1 perl/perl: make sure zlib/bzip2 are not built
David Demelier <markand@malikania.fr>
parents: 142
diff changeset
31 : ${LIBS:=}
38
4c7b0a8e34f4 perl/perl: initial import, closes #1107
David Demelier <markand@malikania.fr>
parents:
diff changeset
32
142
c3e9685afe86 perl: merge .sh and .info
David Demelier <markand@malikania.fr>
parents: 38
diff changeset
33 build()
c3e9685afe86 perl: merge .sh and .info
David Demelier <markand@malikania.fr>
parents: 38
diff changeset
34 {
c3e9685afe86 perl: merge .sh and .info
David Demelier <markand@malikania.fr>
parents: 38
diff changeset
35 rm -rf $PKGNAME-$PKGVERSION
606
25cecc6dca48 vanilla: use POSIX shell and busybox tar
David Demelier <markand@malikania.fr>
parents: 577
diff changeset
36 tar xvf $PKGNAME-$PKGVERSION.tar.xz
25cecc6dca48 vanilla: use POSIX shell and busybox tar
David Demelier <markand@malikania.fr>
parents: 577
diff changeset
37 cd $PKGNAME-$PKGVERSION
38
4c7b0a8e34f4 perl/perl: initial import, closes #1107
David Demelier <markand@malikania.fr>
parents:
diff changeset
38
155
7e885b73d8b1 perl/perl: make sure zlib/bzip2 are not built
David Demelier <markand@malikania.fr>
parents: 142
diff changeset
39 BUILD_ZLIB=0 \
7e885b73d8b1 perl/perl: make sure zlib/bzip2 are not built
David Demelier <markand@malikania.fr>
parents: 142
diff changeset
40 BUILD_BZIP2=0 \
7e885b73d8b1 perl/perl: make sure zlib/bzip2 are not built
David Demelier <markand@malikania.fr>
parents: 142
diff changeset
41 ./Configure -des \
7e885b73d8b1 perl/perl: make sure zlib/bzip2 are not built
David Demelier <markand@malikania.fr>
parents: 142
diff changeset
42 -Dcc="$CC" \
7e885b73d8b1 perl/perl: make sure zlib/bzip2 are not built
David Demelier <markand@malikania.fr>
parents: 142
diff changeset
43 -Doptimize="$CFLAGS" \
534
1214c226dfa0 perl: use new FHS
David Demelier <markand@malikania.fr>
parents: 506
diff changeset
44 -Dprefix=/ \
1214c226dfa0 perl: use new FHS
David Demelier <markand@malikania.fr>
parents: 506
diff changeset
45 -Dprivlib=/share/perl5/core_perl \
1214c226dfa0 perl: use new FHS
David Demelier <markand@malikania.fr>
parents: 506
diff changeset
46 -Darchlib=/lib/perl5/core_perl \
1214c226dfa0 perl: use new FHS
David Demelier <markand@malikania.fr>
parents: 506
diff changeset
47 -Dvendorprefix=/ \
1214c226dfa0 perl: use new FHS
David Demelier <markand@malikania.fr>
parents: 506
diff changeset
48 -Dvendorlib=/share/perl5/vendor_perl \
1214c226dfa0 perl: use new FHS
David Demelier <markand@malikania.fr>
parents: 506
diff changeset
49 -Dvendorarch=/lib/perl5/vendor_perl \
1214c226dfa0 perl: use new FHS
David Demelier <markand@malikania.fr>
parents: 506
diff changeset
50 -Dsiteprefix=/local \
1214c226dfa0 perl: use new FHS
David Demelier <markand@malikania.fr>
parents: 506
diff changeset
51 -Dsitelib=/local/share/perl5/site_perl \
1214c226dfa0 perl: use new FHS
David Demelier <markand@malikania.fr>
parents: 506
diff changeset
52 -Dsitearch=/local/lib/perl5/site_perl \
155
7e885b73d8b1 perl/perl: make sure zlib/bzip2 are not built
David Demelier <markand@malikania.fr>
parents: 142
diff changeset
53 -Dlocincpth=' ' \
7e885b73d8b1 perl/perl: make sure zlib/bzip2 are not built
David Demelier <markand@malikania.fr>
parents: 142
diff changeset
54 -Duselargefiles \
7e885b73d8b1 perl/perl: make sure zlib/bzip2 are not built
David Demelier <markand@malikania.fr>
parents: 142
diff changeset
55 -Dusethreads \
7e885b73d8b1 perl/perl: make sure zlib/bzip2 are not built
David Demelier <markand@malikania.fr>
parents: 142
diff changeset
56 -Duseshrplib \
7e885b73d8b1 perl/perl: make sure zlib/bzip2 are not built
David Demelier <markand@malikania.fr>
parents: 142
diff changeset
57 -Dd_semctl_semun \
534
1214c226dfa0 perl: use new FHS
David Demelier <markand@malikania.fr>
parents: 506
diff changeset
58 -Dman1dir=/share/man/man1 \
1214c226dfa0 perl: use new FHS
David Demelier <markand@malikania.fr>
parents: 506
diff changeset
59 -Dman3dir=/share/man/man3 \
1214c226dfa0 perl: use new FHS
David Demelier <markand@malikania.fr>
parents: 506
diff changeset
60 -Dinstallman1dir=/share/man/man1 \
1214c226dfa0 perl: use new FHS
David Demelier <markand@malikania.fr>
parents: 506
diff changeset
61 -Dinstallman3dir=/share/man/man3 \
155
7e885b73d8b1 perl/perl: make sure zlib/bzip2 are not built
David Demelier <markand@malikania.fr>
parents: 142
diff changeset
62 -Dman1ext='1pm' \
7e885b73d8b1 perl/perl: make sure zlib/bzip2 are not built
David Demelier <markand@malikania.fr>
parents: 142
diff changeset
63 -Dman3ext='3pm' \
7e885b73d8b1 perl/perl: make sure zlib/bzip2 are not built
David Demelier <markand@malikania.fr>
parents: 142
diff changeset
64 -Dcf_by='Vanilla' \
7e885b73d8b1 perl/perl: make sure zlib/bzip2 are not built
David Demelier <markand@malikania.fr>
parents: 142
diff changeset
65 -Ud_csh \
7e885b73d8b1 perl/perl: make sure zlib/bzip2 are not built
David Demelier <markand@malikania.fr>
parents: 142
diff changeset
66 -Dusenm \
7e885b73d8b1 perl/perl: make sure zlib/bzip2 are not built
David Demelier <markand@malikania.fr>
parents: 142
diff changeset
67
142
c3e9685afe86 perl: merge .sh and .info
David Demelier <markand@malikania.fr>
parents: 38
diff changeset
68 make
c3e9685afe86 perl: merge .sh and .info
David Demelier <markand@malikania.fr>
parents: 38
diff changeset
69 make install DESTDIR=$DESTDIR
38
4c7b0a8e34f4 perl/perl: initial import, closes #1107
David Demelier <markand@malikania.fr>
parents:
diff changeset
70
606
25cecc6dca48 vanilla: use POSIX shell and busybox tar
David Demelier <markand@malikania.fr>
parents: 577
diff changeset
71 cd ..
142
c3e9685afe86 perl: merge .sh and .info
David Demelier <markand@malikania.fr>
parents: 38
diff changeset
72 rm -rf $PKGNAME-$PKGVERSION
c3e9685afe86 perl: merge .sh and .info
David Demelier <markand@malikania.fr>
parents: 38
diff changeset
73 }

mercurial