Magellan Linux

Annotation of /branches/R11-unstable/extras/ruby/ruby-2.1.3-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 22364 - (hide annotations) (download)
Tue Apr 1 06:18:37 2014 UTC (10 years, 2 months ago) by niro
Original Path: trunk/extras/ruby/ruby-2.1.3-r1.smage2
File size: 1836 byte(s)
auto added: ver bump to 2.1.3-r1
1 niro 22364 # $Id$
2    
3     PNAME="ruby"
4     PVER="2.1.3"
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-6.3
13     >= sys-libs/ncurses-5.9
14     >= dev-libs/libffi-3.1
15     >= dev-libs/openssl-1.0.1
16     >= dev-db/db-6.0
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/ | grep -i 'current stable:' | sed 's:.*uby\ \(.*\):\1:'"
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-install-doc || die
61    
62     mmake || die
63     }
64    
65     src_install()
66     {
67     cd ${SRCDIR}
68     mmake DESTDIR=${BINDIR} install || die
69    
70     # # compat symlinks (amrok-1.4 needs them)
71     # mlink /usr/include/ruby-${INTERNAL_RUBY_VERSION}/ruby.h /usr/$(mlibdir)/ruby/${INTERNAL_RUBY_VERSION}/${ARCH}-linux/ || die
72     # mlink /usr/include/ruby-${INTERNAL_RUBY_VERSION}/ruby /usr/$(mlibdir)/ruby/${INTERNAL_RUBY_VERSION}/${ARCH}-linux/ || die
73     # mlink /usr/include/ruby-${INTERNAL_RUBY_VERSION}/${ARCH}-linux/ruby/config.h /usr/$(mlibdir)/ruby/${INTERNAL_RUBY_VERSION}/${ARCH}-linux/ruby/ || die
74    
75     minstalldocs ChangeLog COPYING GPL LEGAL LGPL NEWS README README.EXT ToDo || die
76     }