Magellan Linux

Annotation of /branches/magellan-next/core/ruby/ruby-1.9.2_p0-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7187 - (hide annotations) (download)
Thu Sep 30 14:11:59 2010 UTC (13 years, 8 months ago) by niro
File size: 1914 byte(s)
-create a sometimes missing directory
1 niro 7185 # $Id: ruby-1.9.1_p243-r3.smage2 5264 2010-04-19 19:21:20Z niro $
2    
3     PNAME="ruby"
4     PVER="1.9.2_p0"
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.1
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 mtools
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 niro 7186 #INTERNAL_RUBY_VERSION="${PVER%_*}"
35     # 1.9.2 still uses 1.9.1!
36     INTERNAL_RUBY_VERSION="1.9.1"
37    
38 niro 7185 src_prepare()
39     {
40     munpack ${SRCFILE} || die
41     cd ${SRCDIR}
42    
43     # fix hardcoded lib pathes
44     sed -i "s:\(RUBY_LIB_PREFIX=\"\${prefix}/\)lib:\1$(mlibdir):" configure.in || die
45     autoreconf --install --force || die
46     }
47    
48     src_compile()
49     {
50     cd ${SRCDIR}
51    
52     mconfigure \
53     --with-sitedir=/usr/$(mlibdir)/ruby/site_ruby \
54     --enable-shared \
55     --enable-pthread \
56     --disable-install-doc || die
57    
58     mmake || die
59     }
60    
61     src_install()
62     {
63     cd ${SRCDIR}
64     mmake DESTDIR=${BINDIR} install || die
65    
66     # compat symlinks (amrok-1.4 needs them)
67 niro 7187 minstalldir /usr/$(mlibdir)/ruby/${INTERNAL_RUBY_VERSION}/${ARCH}-linux/ruby || die
68 niro 7186 mlink /usr/include/ruby-${INTERNAL_RUBY_VERSION}/ruby.h /usr/$(mlibdir)/ruby/${INTERNAL_RUBY_VERSION}/${ARCH}-linux/ || die
69     mlink /usr/include/ruby-${INTERNAL_RUBY_VERSION}/ruby /usr/$(mlibdir)/ruby/${INTERNAL_RUBY_VERSION}/${ARCH}-linux/ || die
70     mlink /usr/include/ruby-${INTERNAL_RUBY_VERSION}/${ARCH}-linux/ruby/config.h /usr/$(mlibdir)/ruby/${INTERNAL_RUBY_VERSION}/${ARCH}-linux/ruby/ || die
71 niro 7185
72     minstalldocs ChangeLog COPYING GPL LEGAL LGPL NEWS README README.EXT ToDo || die
73     }