summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStanislav Ochotnicky <sochotnicky@gentoo.org>2011-06-15 22:04:56 +0000
committerStanislav Ochotnicky <sochotnicky@gentoo.org>2011-06-15 22:04:56 +0000
commit2156ca097ab8464ecc69597bbd66a45d61c6960c (patch)
tree9513392ddb5afdaf2efc735fdda54802cd6b5082
parentThe Great KDE Slot Move: gentoo-x86 Edition (move all the kde-base/ packages ... (diff)
downloadgentoo-2-2156ca097ab8464ecc69597bbd66a45d61c6960c.tar.gz
gentoo-2-2156ca097ab8464ecc69597bbd66a45d61c6960c.tar.bz2
gentoo-2-2156ca097ab8464ecc69597bbd66a45d61c6960c.zip
New ebuild for fromcvs added to the tree. Fixes #173341
(Portage version: 2.1.9.42/cvs/Linux x86_64)
-rw-r--r--dev-ruby/fromcvs/ChangeLog10
-rw-r--r--dev-ruby/fromcvs/fromcvs-0_pre132.ebuild50
-rw-r--r--dev-ruby/fromcvs/metadata.xml10
3 files changed, 70 insertions, 0 deletions
diff --git a/dev-ruby/fromcvs/ChangeLog b/dev-ruby/fromcvs/ChangeLog
new file mode 100644
index 000000000000..cf49c3b15787
--- /dev/null
+++ b/dev-ruby/fromcvs/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for dev-ruby/fromcvs
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/fromcvs/ChangeLog,v 1.1 2011/06/15 22:04:56 sochotnicky Exp $
+
+*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-ruby/fromcvs/fromcvs-0_pre132.ebuild b/dev-ruby/fromcvs/fromcvs-0_pre132.ebuild
new file mode 100644
index 000000000000..1505eba42f53
--- /dev/null
+++ b/dev-ruby/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-ruby/fromcvs/fromcvs-0_pre132.ebuild,v 1.1 2011/06/15 22:04:56 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 failes"
+
+ 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-ruby/fromcvs/metadata.xml b/dev-ruby/fromcvs/metadata.xml
new file mode 100644
index 000000000000..7c1e9877610e
--- /dev/null
+++ b/dev-ruby/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>
+