Annotation of /smage/trunk/extras/ruby/ruby-2.2.2-r1.smage2
Parent Directory | Revision Log
Revision 6917 -
(hide annotations)
(download)
Mon Jul 27 14:14:15 2015 UTC (9 years, 2 months ago) by niro
File size: 1794 byte(s)
Mon Jul 27 14:14:15 2015 UTC (9 years, 2 months ago) by niro
File size: 1794 byte(s)
auto added: ver bump to 2.2.2-r1
1 | niro | 6916 | # $Id$ |
2 | |||
3 | PNAME="ruby" | ||
4 | PVER="2.2.2" | ||
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/ncurses-5.9 | ||
13 | >= dev-libs/libffi-3.2 | ||
14 | >= dev-libs/openssl-1.0.2 | ||
15 | >= dev-db/db-6.1 | ||
16 | >= sys-libs/zlib-1.2.8" | ||
17 | |||
18 | SDEPEND=">= sys-dev/autoconf-4 | ||
19 | >= sys-dev/automake-3 | ||
20 | >= virtual/sed" | ||
21 | |||
22 | SRCFILE="${PNAME}-${PVER/_/-}.tar.bz2" | ||
23 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER/_/-}" | ||
24 | |||
25 | sminclude mbuild mtools | ||
26 | msetfeature "!check" | ||
27 | |||
28 | SRC_URI=( | ||
29 | niro | 6917 | #ftp://ftp.ruby-lang.org/pub/${PNAME}/${PVER:0:3}/${SRCFILE} |
30 | niro | 6916 | mirror://${PNAME}/${SRCFILE} |
31 | ) | ||
32 | |||
33 | UP2DATE="updatecmd ${HOMEPAGE}/en/downloads/ | grep -i 'current stable:' | sed 's:.*uby\ \(.*\):\1:'" | ||
34 | |||
35 | #INTERNAL_RUBY_VERSION="${PVER%_*}" | ||
36 | # 1.9.2 still uses 1.9.1! | ||
37 | #INTERNAL_RUBY_VERSION="1.9.1" | ||
38 | |||
39 | src_prepare() | ||
40 | { | ||
41 | munpack ${SRCFILE} || die | ||
42 | cd ${SRCDIR} | ||
43 | |||
44 | # fix hardcoded lib pathes | ||
45 | sed -i "s:\(RUBY_LIB_PREFIX=\"\${prefix}/\)lib:\1$(mlibdir):" configure.in || die | ||
46 | mautoreconf || die | ||
47 | } | ||
48 | |||
49 | src_compile() | ||
50 | { | ||
51 | cd ${SRCDIR} | ||
52 | |||
53 | mconfigure \ | ||
54 | --with-sitedir=/usr/$(mlibdir)/ruby/site_ruby \ | ||
55 | --enable-shared \ | ||
56 | --enable-pthread \ | ||
57 | --disable-rpath \ | ||
58 | --disable-install-doc \ | ||
59 | || die | ||
60 | |||
61 | mmake || die | ||
62 | } | ||
63 | |||
64 | src_install() | ||
65 | { | ||
66 | cd ${SRCDIR} | ||
67 | mmake DESTDIR=${BINDIR} install || die | ||
68 | |||
69 | # # compat symlinks (amrok-1.4 needs them) | ||
70 | # mlink /usr/include/ruby-${INTERNAL_RUBY_VERSION}/ruby.h /usr/$(mlibdir)/ruby/${INTERNAL_RUBY_VERSION}/${ARCH}-linux/ || die | ||
71 | # mlink /usr/include/ruby-${INTERNAL_RUBY_VERSION}/ruby /usr/$(mlibdir)/ruby/${INTERNAL_RUBY_VERSION}/${ARCH}-linux/ || die | ||
72 | # mlink /usr/include/ruby-${INTERNAL_RUBY_VERSION}/${ARCH}-linux/ruby/config.h /usr/$(mlibdir)/ruby/${INTERNAL_RUBY_VERSION}/${ARCH}-linux/ruby/ || die | ||
73 | |||
74 | minstalldocs ChangeLog COPYING GPL LEGAL LGPL NEWS README README.EXT ToDo || die | ||
75 | } |