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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Thu Jun 16 18:58:34 2011 UTC (3 years, 3 months ago) by sochotnicky
Branch: MAIN
Moving fromcvs from dev-ruby to dev-vcs

(Portage version: 2.1.9.42/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/fromcvs/fromcvs-0_pre132.ebuild,v 1.2 2011/06/15 22:08:01 sochotnicky Exp $
4
5 EAPI=2
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 and hg"
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="test"
24
25 RUBY_S="${PN}-${PV}"
26
27 RDEPEND="dev-ruby/rcsparse >=dev-ruby/rbtree-0.3.0-r2 dev-vcs/git"
28
29 # this is a workaround because combination of ruby-ng and mercurial is
30 # not working correctly for unpacking
31 src_prepare() {
32 for rubyv in ${USE_RUBY};do
33 mkdir "${WORKDIR}/${rubyv}"
34 cp -prl "${S}" "${WORKDIR}/${rubyv}/${RUBY_S}"
35 done
36 }
37
38 each_ruby_install() {
39 siteruby=$(${RUBY} -r rbconfig -e 'print Config::CONFIG["sitedir"]')
40 insinto ${siteruby}
41 doins *.rb || die "Installation of rb files failed"
42
43 make_script togit
44 make_script tohg
45 }
46
47 make_script() {
48 echo "ruby /usr/$(get_libdir)/ruby/site_ruby/$1.rb \$@" > $1
49 dobin $1
50 }

  ViewVC Help
Powered by ViewVC 1.1.20