summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStanislav Ochotnicky <sochotnicky@gentoo.org>2011-06-16 18:58:34 +0000
committerStanislav Ochotnicky <sochotnicky@gentoo.org>2011-06-16 18:58:34 +0000
commit3ab0efb85af432fc13ca04a75e26e0c3cdf9fefb (patch)
treee0226fe5efa13110442aac8ecf6b6f925a433cf4 /dev-vcs
parentMake the init script POSIX conform again, bug 366431. (diff)
downloadgentoo-2-3ab0efb85af432fc13ca04a75e26e0c3cdf9fefb.tar.gz
gentoo-2-3ab0efb85af432fc13ca04a75e26e0c3cdf9fefb.tar.bz2
gentoo-2-3ab0efb85af432fc13ca04a75e26e0c3cdf9fefb.zip
Moving fromcvs from dev-ruby to dev-vcs
(Portage version: 2.1.9.42/cvs/Linux x86_64)
Diffstat (limited to 'dev-vcs')
-rw-r--r--dev-vcs/fromcvs/ChangeLog14
-rw-r--r--dev-vcs/fromcvs/fromcvs-0_pre132.ebuild50
-rw-r--r--dev-vcs/fromcvs/metadata.xml10
3 files changed, 74 insertions, 0 deletions
diff --git a/dev-vcs/fromcvs/ChangeLog b/dev-vcs/fromcvs/ChangeLog
new file mode 100644
index 000000000000..fb315a031705
--- /dev/null
+++ b/dev-vcs/fromcvs/ChangeLog
@@ -0,0 +1,14 @@
+# ChangeLog for dev-vcs/fromcvs
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-vcs/fromcvs/ChangeLog,v 1.1 2011/06/16 18:58:34 sochotnicky Exp $
+
+ 16 Jun 2011; Stanislav Ochotnicky <sochotnicky@gentoo.org>
+ +fromcvs-0_pre132.ebuild, +metadata.xml:
+ Moved from dev-ruby to dev-vcs
+
+*fromcvs-0_pre132 (15 Jun 2011)
+
+ 15 Jun 2011; Stanislav Ochotnicky <sochotnicky@gentoo.org>
+ +fromcvs-0_pre132.ebuild, +metadata.xml:
+ New ebuild for fromcvs added to the tree. Fixes #173341
+
diff --git a/dev-vcs/fromcvs/fromcvs-0_pre132.ebuild b/dev-vcs/fromcvs/fromcvs-0_pre132.ebuild
new file mode 100644
index 000000000000..3ed8fda775ba
--- /dev/null
+++ b/dev-vcs/fromcvs/fromcvs-0_pre132.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-vcs/fromcvs/fromcvs-0_pre132.ebuild,v 1.1 2011/06/16 18:58:34 sochotnicky Exp $
+
+EAPI=2
+
+USE_RUBY="ruby18 ree18"
+
+#mercurial after ruby!
+inherit ruby-ng mercurial
+
+MY_PV="${PV#0_pre}"
+
+DESCRIPTION="fromcvs converts cvs to git and hg"
+HOMEPAGE="http://ww2.fs.ei.tum.de/~corecode/hg/fromcvs"
+SRC_URI=""
+EHG_REPO_URI="http://ww2.fs.ei.tum.de/~corecode/hg/fromcvs"
+EHG_REVISION="${MY_PV}"
+
+LICENSE="BSD-4"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="test"
+
+RUBY_S="${PN}-${PV}"
+
+RDEPEND="dev-ruby/rcsparse >=dev-ruby/rbtree-0.3.0-r2 dev-vcs/git"
+
+# this is a workaround because combination of ruby-ng and mercurial is
+# not working correctly for unpacking
+src_prepare() {
+ for rubyv in ${USE_RUBY};do
+ mkdir "${WORKDIR}/${rubyv}"
+ cp -prl "${S}" "${WORKDIR}/${rubyv}/${RUBY_S}"
+ done
+}
+
+each_ruby_install() {
+ siteruby=$(${RUBY} -r rbconfig -e 'print Config::CONFIG["sitedir"]')
+ insinto ${siteruby}
+ doins *.rb || die "Installation of rb files failed"
+
+ make_script togit
+ make_script tohg
+}
+
+make_script() {
+ echo "ruby /usr/$(get_libdir)/ruby/site_ruby/$1.rb \$@" > $1
+ dobin $1
+}
diff --git a/dev-vcs/fromcvs/metadata.xml b/dev-vcs/fromcvs/metadata.xml
new file mode 100644
index 000000000000..7c1e9877610e
--- /dev/null
+++ b/dev-vcs/fromcvs/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>no-herd</herd>
+ <maintainer>
+ <email>sochotnicky@gentoo.org</email>
+ <name>Stanislav Ochotnicky</name>
+ </maintainer>
+</pkgmetadata>
+