Contents of /trunk/extras/ruby/ruby-2.5.1-r1.smage2
Parent Directory | Revision Log
Revision 30855 -
(show annotations)
(download)
Thu Apr 26 09:48:14 2018 UTC (6 years, 5 months ago) by niro
File size: 1822 byte(s)
Thu Apr 26 09:48:14 2018 UTC (6 years, 5 months ago) by niro
File size: 1822 byte(s)
auto added: ver bump to 2.5.1-r1
1 | # $Id$ |
2 | |
3 | PNAME="ruby" |
4 | PVER="2.5.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-7.0 |
13 | >= sys-libs/ncurses-6.0 |
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 | ftp://ftp.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 | #INTERNAL_RUBY_VERSION="${PVER%_*}" |
39 | # 1.9.2 still uses 1.9.1! |
40 | #INTERNAL_RUBY_VERSION="1.9.1" |
41 | |
42 | src_prepare() |
43 | { |
44 | munpack ${SRCFILE} || die |
45 | cd ${SRCDIR} |
46 | |
47 | # fix hardcoded lib pathes |
48 | sed -i "s:\(RUBY_LIB_PREFIX=\"\${prefix}/\)lib:\1$(mlibdir):" configure.in || die |
49 | mautoreconf || die |
50 | } |
51 | |
52 | src_compile() |
53 | { |
54 | cd ${SRCDIR} |
55 | |
56 | mconfigure \ |
57 | --with-sitedir=/usr/$(mlibdir)/ruby/site_ruby \ |
58 | --enable-shared \ |
59 | --enable-pthread \ |
60 | --disable-rpath \ |
61 | --disable-install-doc \ |
62 | || die |
63 | |
64 | mmake || die |
65 | } |
66 | |
67 | src_install() |
68 | { |
69 | cd ${SRCDIR} |
70 | mmake DESTDIR=${BINDIR} install || die |
71 | |
72 | # # compat symlinks (amrok-1.4 needs them) |
73 | # mlink /usr/include/ruby-${INTERNAL_RUBY_VERSION}/ruby.h /usr/$(mlibdir)/ruby/${INTERNAL_RUBY_VERSION}/${ARCH}-linux/ || die |
74 | # mlink /usr/include/ruby-${INTERNAL_RUBY_VERSION}/ruby /usr/$(mlibdir)/ruby/${INTERNAL_RUBY_VERSION}/${ARCH}-linux/ || die |
75 | # mlink /usr/include/ruby-${INTERNAL_RUBY_VERSION}/${ARCH}-linux/ruby/config.h /usr/$(mlibdir)/ruby/${INTERNAL_RUBY_VERSION}/${ARCH}-linux/ruby/ || die |
76 | |
77 | minstalldocs ChangeLog COPYING GPL LEGAL LGPL NEWS README README.EXT ToDo || die |
78 | } |