Magellan Linux

Contents of /trunk/extras/ruby/ruby-2.6.1-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 32007 - (show annotations) (download)
Tue Feb 12 13:38:52 2019 UTC (5 years, 2 months ago) by niro
File size: 938 byte(s)
auto added: ver bump to 2.6.1-r1
1 # $Id$
2
3 PNAME="ruby"
4 PVER="2.6.1"
5 PBUILD="r1"
6
7 PCAT="dev-lang"
8
9 DESCRIPTION="Ruby is an object-oriented scripting language."
10 HOMEPAGE="http://www.ruby-lang.org/"
11
12 DEPEND=">= sys-libs/readline-8.0
13 >= sys-libs/ncurses-6.1
14 >= dev-libs/libffi-3.2
15 >= dev-libs/openssl-1.1
16 >= dev-db/db-6.2
17 >= dev-lang/tcl-8.6
18 >= dev-lang/tk-8.6
19 >= sys-libs/zlib-1.2.8"
20
21 SDEPEND=">= sys-dev/autoconf-4
22 >= sys-dev/automake-3
23 >= virtual/sed"
24
25 SRCFILE="${PNAME}-${PVER/_/-}.tar.bz2"
26 SRCDIR="${BUILDDIR}/${PNAME}-${PVER/_/-}"
27
28 sminclude mbuild mtools
29 msetfeature "!check"
30
31 SRC_URI=(
32 https://cache.ruby-lang.org/pub/${PNAME}/${PVER:0:3}/${SRCFILE}
33 mirror://${PNAME}/${SRCFILE}
34 )
35
36 UP2DATE="updatecmd ${HOMEPAGE}/en/downloads/ | highesttarball gz"
37
38 src_compile()
39 {
40 cd ${SRCDIR}
41
42 mconfigure \
43 --with-sitedir=/usr/$(mlibdir)/ruby/site_ruby \
44 --enable-shared \
45 --enable-pthread \
46 --disable-rpath \
47 --disable-install-doc \
48 || die
49
50 mmake || die
51 }