Magellan Linux

Contents of /branches/branch-xorg18/core/ruby/ruby-1.9.1_p243-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5192 - (show annotations) (download)
Tue Apr 6 21:54:10 2010 UTC (14 years, 1 month ago) by niro
File size: 1074 byte(s)
created branch 'branch-xorg18'
1 # $Id$
2
3 PNAME="ruby"
4 PVER="1.9.1_p243"
5 PBUILD="r2"
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