Gentoo Archives: gentoo-commits

From: "Hans de Graaff (graaff)" <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-lang/rubinius: ChangeLog rubinius-2.2.7-r1.ebuild
Date: Sat, 07 Jun 2014 08:05:32
Message-Id: 20140607080528.A33E02004E@flycatcher.gentoo.org
1 graaff 14/06/07 08:05:28
2
3 Modified: ChangeLog
4 Added: rubinius-2.2.7-r1.ebuild
5 Log:
6 Backport upstream patch to support "emake V=1" for C extensions.
7
8 (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 0x8883FA56A308A8D7!)
9
10 Revision Changes Path
11 1.14 dev-lang/rubinius/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/rubinius/ChangeLog?rev=1.14&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/rubinius/ChangeLog?rev=1.14&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/rubinius/ChangeLog?r1=1.13&r2=1.14
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-lang/rubinius/ChangeLog,v
20 retrieving revision 1.13
21 retrieving revision 1.14
22 diff -u -r1.13 -r1.14
23 --- ChangeLog 1 Jun 2014 21:20:44 -0000 1.13
24 +++ ChangeLog 7 Jun 2014 08:05:28 -0000 1.14
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-lang/rubinius
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/rubinius/ChangeLog,v 1.13 2014/06/01 21:20:44 graaff Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/rubinius/ChangeLog,v 1.14 2014/06/07 08:05:28 graaff Exp $
30 +
31 +*rubinius-2.2.7-r1 (07 Jun 2014)
32 +
33 + 07 Jun 2014; Hans de Graaff <graaff@g.o> +rubinius-2.2.7-r1.ebuild,
34 + +files/rubinius-2.2.7-emake-v.patch:
35 + Backport upstream patch to support "emake V=1" for C extensions.
36
37 *rubinius-2.2.7 (01 Jun 2014)
38
39
40
41
42 1.1 dev-lang/rubinius/rubinius-2.2.7-r1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/rubinius/rubinius-2.2.7-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/rubinius/rubinius-2.2.7-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: rubinius-2.2.7-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2014 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-lang/rubinius/rubinius-2.2.7-r1.ebuild,v 1.1 2014/06/07 08:05:28 graaff Exp $
52
53 EAPI=5
54 inherit eutils flag-o-matic multilib versionator
55
56 DESCRIPTION="A re-implementation of the Ruby VM designed for speed"
57 HOMEPAGE="http://rubini.us"
58 SRC_URI="http://releases.rubini.us/${P}.tar.bz2"
59
60 LICENSE="BSD"
61 KEYWORDS="~amd64"
62 SLOT="0"
63 IUSE="+llvm"
64
65 RDEPEND="
66 llvm? ( >=sys-devel/llvm-3.2 )
67 dev-libs/openssl
68 sys-libs/ncurses
69 sys-libs/readline
70 dev-libs/libyaml
71 virtual/libffi
72 sys-libs/zlib
73 "
74
75 DEPEND="${RDEPEND}
76 =dev-ruby/rake-10*
77 dev-ruby/bundler
78 "
79
80 pkg_setup() {
81 unset RUBYOPT
82 }
83
84 src_prepare() {
85 epatch "${FILESDIR}/${P}-emake-v.patch"
86
87 # src_test will wait until all processes are reaped, so tune down
88 # the long sleep process a bit.
89 sed -i -e 's/sleep 1000/sleep 300/' spec/ruby/core/io/popen_spec.rb || die
90
91 # Drop error CFLAGS per Gentoo policy.
92 sed -i -e '/Werror/ s:^:#:' rakelib/blueprint.rb || die
93
94 bundle --local || die
95 }
96
97 src_configure() {
98 #Rubinius uses a non-autoconf ./configure script which balks at econf
99 INSTALL="${EPREFIX}/usr/bin/install -c" ./configure --skip-prebuilt \
100 --prefix /usr/$(get_libdir) \
101 --mandir /usr/share/man \
102 --without-rpath \
103 --with-vendor-zlib \
104 $(use_enable llvm) \
105 || die "Configure failed"
106 }
107
108 src_compile() {
109 rake build || die "Compilation failed"
110 }
111
112 src_test() {
113 rake spec || die "Tests failed"
114 einfo "Waiting for forked processes to die"
115 }
116
117 src_install() {
118 # The install phase tries to determine if there are relevant
119 addpredict /usr/local/lib64/ruby
120
121 local minor_version=$(get_version_component_range 1-2)
122 local librbx="usr/$(get_libdir)/rubinius"
123
124 DESTDIR="${D}" rake install || die "Installation failed"
125
126 dosym /${librbx}/${minor_version}/bin/rbx /usr/bin/rbx || die "Couldn't make rbx symlink"
127
128 insinto /${librbx}/${minor_version}/site
129 doins "${FILESDIR}/auto_gem.rb" || die "Couldn't install rbx auto_gem.rb"
130 RBX_RUNTIME="${S}/runtime" RBX_LIB="${S}/lib" bin/rbx compile "${D}/${librbx}/${minor_version}/site/auto_gem.rb" || die "Couldn't bytecompile auto_gem.rb"
131 }