/[gentoo-x86]/dev-vcs/fromcvs/fromcvs-0_pre132-r1.ebuild
Gentoo

Contents of /dev-vcs/fromcvs/fromcvs-0_pre132-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Thu Aug 16 03:57:44 2012 UTC (22 months, 4 weeks ago) by flameeyes
Branch: MAIN
Changes since 1.2: +3 -3 lines
Update after Ruby packages move.

(Portage version: 2.2.0_alpha120/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-vcs/fromcvs/fromcvs-0_pre132-r1.ebuild,v 1.2 2011/06/18 10:08:55 sochotnicky Exp $
4
5 EAPI=4
6
7 USE_RUBY="ruby18 ree18"
8
9 #mercurial after ruby!
10 inherit ruby-ng mercurial
11
12 MY_PV="${PV#0_pre}"
13
14 DESCRIPTION="fromcvs converts cvs to git, hg or sqlite database"
15 HOMEPAGE="http://ww2.fs.ei.tum.de/~corecode/hg/fromcvs"
16 SRC_URI=""
17 EHG_REPO_URI="http://ww2.fs.ei.tum.de/~corecode/hg/fromcvs"
18 EHG_REVISION="${MY_PV}"
19
20 LICENSE="BSD-4"
21 SLOT="0"
22 KEYWORDS="~amd64"
23 IUSE="+git mercurial sqlite"
24
25 RUBY_S="${P}"
26 # return S to default after ruby-ng has modified it
27 S="${WORKDIR}/${RUBY_S}"
28
29 RDEPEND="${RDEPEND}
30 git? ( dev-vcs/git )
31 mercurial? ( dev-vcs/mercurial )"
32
33 ruby_add_rdepend "dev-ruby/rcsparse
34 >=dev-ruby/rbtree-0.3.0-r2
35 sqlite? ( dev-ruby/sqlite3 )"
36
37 src_prepare() {
38 # prepare scripts that will go into bin
39 for script in togit.rb tohg.rb todb.rb;do
40 sed -i '1 i #!/usr/bin/ruby' ${script} || die
41 mv ${script} ${script%.rb} || die
42 done
43
44 # this is a workaround because combination of ruby-ng and mercurial is
45 # not working correctly for unpacking
46 for rubyv in ${USE_RUBY} all;do
47 mkdir "${WORKDIR}/${rubyv}" || die
48 cp -prl "${S}" "${WORKDIR}/${rubyv}/${RUBY_S}" || die
49 done
50 }
51
52 each_ruby_install() {
53 insinto $(ruby_rbconfig_value 'sitedir')
54 doins *.rb || die "Installation of rb files failed"
55
56 use git && dobin togit
57 use mercurial && dobin tohg
58 use sqlite && dobin todb
59 }

  ViewVC Help
Powered by ViewVC 1.1.20