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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Aug 16 03:57:44 2012 UTC (2 years ago) by flameeyes
Branch: MAIN
Changes since 1.1: +2 -2 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_pre20120214.ebuild,v 1.1 2012/02/15 07:34:39 sochotnicky Exp $
4
5 EAPI=4
6
7 USE_RUBY="ruby18 ree18"
8
9 inherit ruby-ng
10
11 MY_PV="${PV#0_pre}"
12
13 DESCRIPTION="fromcvs converts cvs to git, hg or sqlite database"
14 HOMEPAGE="http://gitorious.org/fromcvs"
15 # downloaded from gitorious hash, no proper tarballs available
16 SRC_URI="http://dev.gentoo.org/fromcvs-${MY_PV}.tar.gz"
17
18 RUBY_PATCHES="0001-Fix-379271-require-rubygems-before-other-deps.patch"
19
20 LICENSE="AGPL-3"
21 SLOT="0"
22 KEYWORDS="~amd64"
23 IUSE="+git mercurial sqlite"
24
25 RUBY_S="${PN}-${PN}"
26
27 RDEPEND="${RDEPEND}
28 git? ( dev-vcs/git )
29 mercurial? ( dev-vcs/mercurial )"
30
31 ruby_add_rdepend "dev-ruby/rcsparse
32 >=dev-ruby/rbtree-0.3.0-r2
33 sqlite? ( dev-ruby/sqlite3 )"
34
35 all_ruby_prepare() {
36 # prepare scripts that will go into bin
37 for script in togit.rb tohg.rb todb.rb;do
38 sed -i '1 i #!/usr/bin/ruby' ${script} || die
39 mv ${script} ${script%.rb} || die
40 done
41 }
42
43 each_ruby_install() {
44 insinto $(ruby_rbconfig_value 'sitedir')
45 doins *.rb || die "Installation of rb files failed"
46
47 use git && dobin togit
48 use mercurial && dobin tohg
49 use sqlite && dobin todb
50 }

  ViewVC Help
Powered by ViewVC 1.1.20