Magellan Linux

Contents of /trunk/core/ruby/ruby-1.8.7_p72-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 854 - (show annotations) (download)
Fri Dec 26 12:10:03 2008 UTC (15 years, 4 months ago) by niro
File size: 1165 byte(s)
-ver bump to 1.8.7_p72-r1
1 # $Header: /magellan-cvs/smage/ruby/ruby-1.8.6_p287-r1.smage2,v 1.1 2008/08/15 08:57:26 niro Exp $
2
3 PNAME="ruby"
4 PVER="1.8.7_p72"
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-5.2
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