2018-06-09 00:06:58 +02:00
|
|
|
|
# Tanım: Ruby2.3 yorumlayıcı
|
|
|
|
|
# URL: http://www.ruby-lang.org
|
2018-11-06 05:56:48 +01:00
|
|
|
|
# Paketçi: milisarge yakar
|
2018-06-09 00:06:58 +02:00
|
|
|
|
# Gerekler: libffi yaml
|
2018-07-30 13:40:57 +02:00
|
|
|
|
# Grup: geliştirme
|
2018-06-09 00:06:58 +02:00
|
|
|
|
|
|
|
|
|
isim=ruby23
|
2018-11-06 05:56:48 +01:00
|
|
|
|
surum=2.3.8
|
2018-06-09 00:06:58 +02:00
|
|
|
|
devir=1
|
2018-11-06 05:56:48 +01:00
|
|
|
|
kaynak=(https://cache.ruby-lang.org/pub/${isim:0:4}/${surum:0:3}/${isim:0:4}-$surum.tar.xz)
|
2018-06-09 00:06:58 +02:00
|
|
|
|
|
|
|
|
|
derle() {
|
2018-11-06 05:56:48 +01:00
|
|
|
|
cd ${isim:0:4}-$surum
|
2018-06-09 00:06:58 +02:00
|
|
|
|
|
|
|
|
|
PKG_CONFIG=/usr/bin/pkg-config ./configure \
|
2018-11-06 05:56:48 +01:00
|
|
|
|
--prefix=/opt/${isim:0:4}${surum:0:3} \
|
|
|
|
|
--program-suffix=-${surum:0:3} \
|
2018-06-09 00:06:58 +02:00
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
|
--localstatedir=/var \
|
|
|
|
|
--sharedstatedir=/var/lib \
|
2018-11-06 05:56:48 +01:00
|
|
|
|
--libexecdir=/usr/lib/${isim:0:4} \
|
2018-06-09 00:06:58 +02:00
|
|
|
|
--enable-shared \
|
|
|
|
|
--disable-rpath \
|
|
|
|
|
--with-dbm-type=gdbm_compat
|
|
|
|
|
|
|
|
|
|
make ruby
|
|
|
|
|
make test
|
|
|
|
|
make DESTDIR="${PKG}" install-nodoc
|
|
|
|
|
|
2018-11-06 05:56:48 +01:00
|
|
|
|
install -dm755 $PKG/usr/bin
|
|
|
|
|
install -dm755 $PKG/usr/lib
|
2018-06-09 00:06:58 +02:00
|
|
|
|
|
|
|
|
|
for i in erb irb rdoc ri ruby testrb rake gem; do
|
2018-11-06 05:56:48 +01:00
|
|
|
|
ln -s /opt/${isim:0:4}${surum:0:3}/bin/$i-${surum:0:3} $PKG/usr/bin/$i-${surum:0:3}
|
|
|
|
|
ln -s /opt/${isim:0:4}${surum:0:3}/bin/$i-${surum:0:3} $PKG/opt/${isim:0:4}${surum:0:3}/bin/$i
|
2018-06-09 00:06:58 +02:00
|
|
|
|
done
|
|
|
|
|
|
2018-11-06 05:56:48 +01:00
|
|
|
|
ln -s /opt/${isim:0:4}${surum%.*}/lib/libruby.so.${surum%.*} $PKG/usr/lib/libruby.so.${surum%.*}
|
2018-06-09 00:06:58 +02:00
|
|
|
|
|
2018-11-06 05:56:48 +01:00
|
|
|
|
install -D -m644 COPYING "${PKG}/usr/share/licenses/${isim:0:4}${surum%.*}/LICENSE"
|
|
|
|
|
install -D -m644 BSDL "${PKG}/usr/share/licenses/${isim:0:4}${surum%.*}/BSDL"
|
2018-06-09 00:06:58 +02:00
|
|
|
|
}
|