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