ruby/ruby/ruby.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: 1101
diff changeset
1 #!/bin/sh
695
3eaeab150bc4 ruby/ruby: initial import, closes #1096
David Demelier <markand@malikania.fr>
parents:
diff changeset
2 #
3eaeab150bc4 ruby/ruby: initial import, closes #1096
David Demelier <markand@malikania.fr>
parents:
diff changeset
3 # Copyright (c) 2019 David Demelier <markand@malikania.fr>
3eaeab150bc4 ruby/ruby: initial import, closes #1096
David Demelier <markand@malikania.fr>
parents:
diff changeset
4 #
3eaeab150bc4 ruby/ruby: initial import, closes #1096
David Demelier <markand@malikania.fr>
parents:
diff changeset
5 # Permission to use, copy, modify, and/or distribute this software for any
3eaeab150bc4 ruby/ruby: initial import, closes #1096
David Demelier <markand@malikania.fr>
parents:
diff changeset
6 # purpose with or without fee is hereby granted, provided that the above
3eaeab150bc4 ruby/ruby: initial import, closes #1096
David Demelier <markand@malikania.fr>
parents:
diff changeset
7 # copyright notice and this permission notice appear in all copies.
3eaeab150bc4 ruby/ruby: initial import, closes #1096
David Demelier <markand@malikania.fr>
parents:
diff changeset
8 #
3eaeab150bc4 ruby/ruby: initial import, closes #1096
David Demelier <markand@malikania.fr>
parents:
diff changeset
9 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
3eaeab150bc4 ruby/ruby: initial import, closes #1096
David Demelier <markand@malikania.fr>
parents:
diff changeset
10 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
3eaeab150bc4 ruby/ruby: initial import, closes #1096
David Demelier <markand@malikania.fr>
parents:
diff changeset
11 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
3eaeab150bc4 ruby/ruby: initial import, closes #1096
David Demelier <markand@malikania.fr>
parents:
diff changeset
12 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
3eaeab150bc4 ruby/ruby: initial import, closes #1096
David Demelier <markand@malikania.fr>
parents:
diff changeset
13 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
3eaeab150bc4 ruby/ruby: initial import, closes #1096
David Demelier <markand@malikania.fr>
parents:
diff changeset
14 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
3eaeab150bc4 ruby/ruby: initial import, closes #1096
David Demelier <markand@malikania.fr>
parents:
diff changeset
15 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
3eaeab150bc4 ruby/ruby: initial import, closes #1096
David Demelier <markand@malikania.fr>
parents:
diff changeset
16 #
3eaeab150bc4 ruby/ruby: initial import, closes #1096
David Demelier <markand@malikania.fr>
parents:
diff changeset
17
3eaeab150bc4 ruby/ruby: initial import, closes #1096
David Demelier <markand@malikania.fr>
parents:
diff changeset
18 PKGNAME=ruby
3eaeab150bc4 ruby/ruby: initial import, closes #1096
David Demelier <markand@malikania.fr>
parents:
diff changeset
19 PKGVERSION=2.6.3
3eaeab150bc4 ruby/ruby: initial import, closes #1096
David Demelier <markand@malikania.fr>
parents:
diff changeset
20 PKGREVISION=1
3eaeab150bc4 ruby/ruby: initial import, closes #1096
David Demelier <markand@malikania.fr>
parents:
diff changeset
21 PKGLICENSE="BSD2CLAUSE"
3eaeab150bc4 ruby/ruby: initial import, closes #1096
David Demelier <markand@malikania.fr>
parents:
diff changeset
22 PKGSUMMARY="object oriented language"
3eaeab150bc4 ruby/ruby: initial import, closes #1096
David Demelier <markand@malikania.fr>
parents:
diff changeset
23 PKGDOWNLOAD="https://cache.ruby-lang.org/pub/$PKGNAME/${PKGVERSION%.*}/$PKGNAME-$PKGVERSION.tar.gz"
902
a133976e0783 vanilla: remove all origins, closes #2203
David Demelier <markand@malikania.fr>
parents: 745
diff changeset
24 PKGDEPENDS="zlib libressl gmp libffi"
695
3eaeab150bc4 ruby/ruby: initial import, closes #1096
David Demelier <markand@malikania.fr>
parents:
diff changeset
25
3eaeab150bc4 ruby/ruby: initial import, closes #1096
David Demelier <markand@malikania.fr>
parents:
diff changeset
26 : ${CHOST:=$(uname -m)-linux-musl}
3eaeab150bc4 ruby/ruby: initial import, closes #1096
David Demelier <markand@malikania.fr>
parents:
diff changeset
27 : ${CBUILD:=$(uname -m)-linux-musl}
3eaeab150bc4 ruby/ruby: initial import, closes #1096
David Demelier <markand@malikania.fr>
parents:
diff changeset
28 : ${CC:=clang}
3eaeab150bc4 ruby/ruby: initial import, closes #1096
David Demelier <markand@malikania.fr>
parents:
diff changeset
29 : ${CFLAGS:=-O2}
3eaeab150bc4 ruby/ruby: initial import, closes #1096
David Demelier <markand@malikania.fr>
parents:
diff changeset
30 : ${CXX:=clang++}
3eaeab150bc4 ruby/ruby: initial import, closes #1096
David Demelier <markand@malikania.fr>
parents:
diff changeset
31 : ${CXXFLAGS:=-O2}
3eaeab150bc4 ruby/ruby: initial import, closes #1096
David Demelier <markand@malikania.fr>
parents:
diff changeset
32 : ${LDFLAGS:=}
3eaeab150bc4 ruby/ruby: initial import, closes #1096
David Demelier <markand@malikania.fr>
parents:
diff changeset
33 : ${LIBS:=}
3eaeab150bc4 ruby/ruby: initial import, closes #1096
David Demelier <markand@malikania.fr>
parents:
diff changeset
34
3eaeab150bc4 ruby/ruby: initial import, closes #1096
David Demelier <markand@malikania.fr>
parents:
diff changeset
35 build()
3eaeab150bc4 ruby/ruby: initial import, closes #1096
David Demelier <markand@malikania.fr>
parents:
diff changeset
36 {
3eaeab150bc4 ruby/ruby: initial import, closes #1096
David Demelier <markand@malikania.fr>
parents:
diff changeset
37 rm -rf $PKGNAME-$PKGVERSION
3eaeab150bc4 ruby/ruby: initial import, closes #1096
David Demelier <markand@malikania.fr>
parents:
diff changeset
38 tar xvf $PKGNAME-$PKGVERSION.tar.gz
3eaeab150bc4 ruby/ruby: initial import, closes #1096
David Demelier <markand@malikania.fr>
parents:
diff changeset
39 cd $PKGNAME-$PKGVERSION
3eaeab150bc4 ruby/ruby: initial import, closes #1096
David Demelier <markand@malikania.fr>
parents:
diff changeset
40
1101
9e8ac37514e6 vanilla: fix many packages
David Demelier <markand@malikania.fr>
parents: 1019
diff changeset
41 patch -p0 < ../patch-clang.patch
695
3eaeab150bc4 ruby/ruby: initial import, closes #1096
David Demelier <markand@malikania.fr>
parents:
diff changeset
42 CC="$CC" \
3eaeab150bc4 ruby/ruby: initial import, closes #1096
David Demelier <markand@malikania.fr>
parents:
diff changeset
43 CFLAGS="$CFLAGS" \
3eaeab150bc4 ruby/ruby: initial import, closes #1096
David Demelier <markand@malikania.fr>
parents:
diff changeset
44 CXX="$CXX" \
3eaeab150bc4 ruby/ruby: initial import, closes #1096
David Demelier <markand@malikania.fr>
parents:
diff changeset
45 CXXFLAGS="$CXXFLAGS" \
3eaeab150bc4 ruby/ruby: initial import, closes #1096
David Demelier <markand@malikania.fr>
parents:
diff changeset
46 LDFLAGS="$LDFLAGS" \
3eaeab150bc4 ruby/ruby: initial import, closes #1096
David Demelier <markand@malikania.fr>
parents:
diff changeset
47 LIBS="$LIBS" \
3eaeab150bc4 ruby/ruby: initial import, closes #1096
David Demelier <markand@malikania.fr>
parents:
diff changeset
48 ./configure \
3eaeab150bc4 ruby/ruby: initial import, closes #1096
David Demelier <markand@malikania.fr>
parents:
diff changeset
49 --build=$CBUILD \
3eaeab150bc4 ruby/ruby: initial import, closes #1096
David Demelier <markand@malikania.fr>
parents:
diff changeset
50 --host=$CHOST \
3eaeab150bc4 ruby/ruby: initial import, closes #1096
David Demelier <markand@malikania.fr>
parents:
diff changeset
51 --prefix= \
3eaeab150bc4 ruby/ruby: initial import, closes #1096
David Demelier <markand@malikania.fr>
parents:
diff changeset
52 --enable-shared \
3eaeab150bc4 ruby/ruby: initial import, closes #1096
David Demelier <markand@malikania.fr>
parents:
diff changeset
53 --without-git
3eaeab150bc4 ruby/ruby: initial import, closes #1096
David Demelier <markand@malikania.fr>
parents:
diff changeset
54 make
3eaeab150bc4 ruby/ruby: initial import, closes #1096
David Demelier <markand@malikania.fr>
parents:
diff changeset
55 make install DESTDIR=$DESTDIR
3eaeab150bc4 ruby/ruby: initial import, closes #1096
David Demelier <markand@malikania.fr>
parents:
diff changeset
56
3eaeab150bc4 ruby/ruby: initial import, closes #1096
David Demelier <markand@malikania.fr>
parents:
diff changeset
57 cd ..
3eaeab150bc4 ruby/ruby: initial import, closes #1096
David Demelier <markand@malikania.fr>
parents:
diff changeset
58 rm -rf $PKGNAME-$PKGVERSION
3eaeab150bc4 ruby/ruby: initial import, closes #1096
David Demelier <markand@malikania.fr>
parents:
diff changeset
59 }

mercurial