Annotation of /trunk/core/ruby/ruby-1.9.1_p243-r3.smage2
Parent Directory | Revision Log
Revision 5264 -
(hide annotations)
(download)
Mon Apr 19 19:21:20 2010 UTC (14 years, 2 months ago) by niro
File size: 1595 byte(s)
Mon Apr 19 19:21:20 2010 UTC (14 years, 2 months ago) by niro
File size: 1595 byte(s)
-fixed missing include
1 | niro | 5263 | # $Id$ |
2 | |||
3 | PNAME="ruby" | ||
4 | PVER="1.9.1_p243" | ||
5 | PBUILD="r3" | ||
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 | niro | 5264 | sminclude mbuild mtools |
26 | niro | 5263 | |
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 | } | ||
56 | |||
57 | src_install() | ||
58 | { | ||
59 | cd ${SRCDIR} | ||
60 | mmake DESTDIR=${BINDIR} install || die | ||
61 | |||
62 | # compat symlinks (amrok-1.4 needs them) | ||
63 | mlink /usr/include/ruby-${PVER%_*}/ruby.h /usr/$(mlibdir)/ruby/${PVER%_*}/${ARCH}-linux/ || die | ||
64 | mlink /usr/include/ruby-${PVER%_*}/ruby /usr/$(mlibdir)/ruby/${PVER%_*}/${ARCH}-linux/ || die | ||
65 | mlink /usr/include/ruby-${PVER%_*}/${ARCH}-linux/ruby/config.h /usr/$(mlibdir)/ruby/${PVER%_*}/${ARCH}-linux/ruby/ || die | ||
66 | |||
67 | minstalldocs ChangeLog COPYING GPL LEGAL LGPL NEWS README README.EXT ToDo || die | ||
68 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |