Magellan Linux

Annotation of /trunk/core/ruby/ruby-1.9.1_p243-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3427 - (hide annotations) (download)
Wed Oct 21 19:10:20 2009 UTC (14 years, 7 months ago) by niro
File size: 1074 byte(s)
auto added: ver bump to 1.9.1_p243-r1
1 niro 3427 # $Id$
2    
3     PNAME="ruby"
4     PVER="1.9.1_p243"
5     PBUILD="r1"
6    
7     PCATEGORIE="dev-lang"
8     STATE="unstable"
9    
10     DESCRIPTION="Ruby is an object-oriented scripting language."
11     HOMEPAGE="http://www.ruby-lang.org/"
12    
13     DEPEND=">= sys-libs/readline-6.0
14     >= sys-libs/ncurses-5.7
15     >= dev-lang/tcl-8.5
16     >= dev-lang/tk-8.5"
17    
18     SDEPEND=">= sys-dev/autoconf-4
19     >= sys-dev/automake-3
20     >= sys-apps/sed-4"
21    
22     SRCFILE="${PNAME}-${PVER/_/-}.tar.bz2"
23     SRCDIR="${BUILDDIR}/${PNAME}-${PVER/_/-}"
24    
25     sminclude mbuild
26    
27     SRC_URI=(
28     ftp://ftp.ruby-lang.org/pub/${PNAME}/${PVER:0:3}/${SRCFILE}
29     mirror://${PNAME}/${SRCFILE}
30     )
31    
32     UP2DATE="updatecmd ${HOMEPAGE}/en/downloads/ | grep 'Ruby.*Stable' | sed 's/.* \([0-9].*\)\ (.*/\1/;s/-/_/'"
33    
34     src_prepare()
35     {
36     munpack ${SRCFILE} || die
37     cd ${SRCDIR}
38    
39     # fix hardcoded lib pathes
40     sed -i "s:\(RUBY_LIB_PREFIX=\"\${prefix}/\)lib:\1$(mlibdir):" configure.in || die
41     autoreconf --install --force || die
42     }
43    
44     src_compile()
45     {
46     cd ${SRCDIR}
47    
48     mconfigure \
49     --with-sitedir=/usr/$(mlibdir)/ruby/site_ruby \
50     --enable-shared \
51     --enable-pthread \
52     --disable-install-doc || die
53    
54     mmake || die
55     }

Properties

Name Value
svn:keywords Id