Gentoo Archives: gentoo-dev

From: Hans de Graaff <graaff@g.o>
To: gentoo-dev@l.g.o, sochotnicky@g.o
Subject: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in dev-ruby/rcsparse: rcsparse-0_pre45.ebuild metadata.xml ChangeLog
Date: Sat, 18 Jun 2011 06:21:47
Message-Id: 1308378075.11052.20.camel@graaff.xs4all.nl
1 Another ruby ebuild review. Some of the issues that were present in
2 fromcvs are also in this ebuild, I won't repeat them.
3
4 On Wed, 2011-06-15 at 22:01 +0000, Stanislav Ochotnicky (sochotnicky)
5 wrote:
6 > sochotnicky 11/06/15 22:01:26
7 >
8 > Added: rcsparse-0_pre45.ebuild metadata.xml ChangeLog
9 > Log:
10 > New ebuild for rcsparse, a dependency of fromcvs
11 >
12 > (Portage version: 2.1.9.42/cvs/Linux x86_64)
13 >
14 > Revision Changes Path
15 > 1.1 dev-ruby/rcsparse/rcsparse-0_pre45.ebuild
16 >
17 > file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rcsparse/rcsparse-0_pre45.ebuild?rev=1.1&view=markup
18 > plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rcsparse/rcsparse-0_pre45.ebuild?rev=1.1&content-type=text/plain
19 >
20 > Index: rcsparse-0_pre45.ebuild
21 > ===================================================================
22 > # Copyright 1999-2011 Gentoo Foundation
23 > # Distributed under the terms of the GNU General Public License v2
24 > # $Header: /var/cvsroot/gentoo-x86/dev-ruby/rcsparse/rcsparse-0_pre45.ebuild,v 1.1 2011/06/15 22:01:26 sochotnicky Exp $
25 >
26 > EAPI=2
27 >
28 > USE_RUBY="ruby18 ree18"
29 >
30 > #mercurial after ruby!
31 > inherit ruby-ng mercurial
32 >
33 > MY_PV="${PV#0_pre}"
34 >
35 > DESCRIPTION="rcsparse ruby module"
36 > HOMEPAGE="http://ww2.fs.ei.tum.de/~corecode/hg/rcsparse"
37 > SRC_URI=""
38 > EHG_REPO_URI="http://ww2.fs.ei.tum.de/~corecode/hg/rcsparse"
39 > EHG_REVISION="${MY_PV}"
40 >
41 > LICENSE="BSD-4"
42 > SLOT="0"
43 > KEYWORDS="~amd64"
44 > IUSE="test"
45 >
46 > RUBY_S="${PN}-${PV}"
47 >
48 > # this is a workaround because combination of ruby-ng and mercurial is
49 > # not working correctly for unpacking
50 > src_prepare() {
51 > for rubyv in ${USE_RUBY}; do
52 > mkdir "${WORKDIR}/$rubyv"
53 > cp -prl "${S}" "${WORKDIR}/$rubyv/${RUBY_S}"
54 > done
55 > }
56 >
57 > each_ruby_configure() {
58 > ${RUBY} extconf.rb || die
59 > }
60 >
61 > each_ruby_compile() {
62 > emake || die
63 > }
64 >
65 > each_ruby_test() {
66 > ${RUBY} test.rb || die
67
68 Don't test the already installed version:
69
70 ${RUBY} -I. test.rb || die
71
72 Also, depend on the test framework:
73
74 ruby_add_bdepend "test? ( virtual/ruby-test-unit )"
75
76 > }
77 >
78 > each_ruby_install() {
79 > emake DESTDIR="${D}" install || die
80 > }

Attachments

File name MIME type
signature.asc application/pgp-signature