Contents of /trunk/extras/ruby/ruby-1.8.6_p287-r1.smage2
Parent Directory | Revision Log
Revision 2 -
(show annotations)
(download)
Fri Oct 10 13:29:42 2008 UTC (15 years, 8 months ago) by niro
File size: 1056 byte(s)
Fri Oct 10 13:29:42 2008 UTC (15 years, 8 months ago) by niro
File size: 1056 byte(s)
import repo
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.6_p287" |
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.6 |
15 | >= dev-lang/tcl-8.4 |
16 | >= dev-lang/tk-8.4" |
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 | src_prepare() |
33 | { |
34 | munpack ${SRCFILE} || die |
35 | cd ${SRCDIR} |
36 | |
37 | # fix hardcoded lib pathes |
38 | sed -i "s:\(RUBY_LIB_PREFIX=\"\${prefix}/\)lib:\1$(mlibdir):" configure.in || die |
39 | autoreconf --install --force || die |
40 | } |
41 | |
42 | src_compile() |
43 | { |
44 | cd ${SRCDIR} |
45 | |
46 | mconfigure \ |
47 | --with-sitedir=/usr/$(mlibdir)/ruby/site_ruby \ |
48 | --enable-shared \ |
49 | --enable-pthread \ |
50 | --disable-install-doc || die |
51 | |
52 | mmake || die |
53 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |