summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2009-08-30 09:14:33 +0000
committerHans de Graaff <graaff@gentoo.org>2009-08-30 09:14:33 +0000
commitab1a35b376b23673f82b3fd6257afc7efa52e7dd (patch)
treef0b9394d6093fd7a4b3c9715370748fafb0cc791 /dev-ruby
parentFix copy/pasto dep problem. Per bug #283067. (diff)
downloadgentoo-2-ab1a35b376b23673f82b3fd6257afc7efa52e7dd.tar.gz
gentoo-2-ab1a35b376b23673f82b3fd6257afc7efa52e7dd.tar.bz2
gentoo-2-ab1a35b376b23673f82b3fd6257afc7efa52e7dd.zip
Add fake gemspec.
(Portage version: 2.1.6.13/cvs/Linux x86_64)
Diffstat (limited to 'dev-ruby')
-rw-r--r--dev-ruby/ncurses-ruby/ChangeLog8
-rw-r--r--dev-ruby/ncurses-ruby/ncurses-ruby-1.2.3-r1.ebuild36
2 files changed, 43 insertions, 1 deletions
diff --git a/dev-ruby/ncurses-ruby/ChangeLog b/dev-ruby/ncurses-ruby/ChangeLog
index 8d281e58ffd1..a9714442cb52 100644
--- a/dev-ruby/ncurses-ruby/ChangeLog
+++ b/dev-ruby/ncurses-ruby/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-ruby/ncurses-ruby
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ncurses-ruby/ChangeLog,v 1.34 2009/07/14 18:23:38 graaff Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ncurses-ruby/ChangeLog,v 1.35 2009/08/30 09:14:33 graaff Exp $
+
+*ncurses-ruby-1.2.3-r1 (30 Aug 2009)
+
+ 30 Aug 2009; Hans de Graaff <graaff@gentoo.org>
+ +ncurses-ruby-1.2.3-r1.ebuild:
+ Add a fake gemspec file so that this package can be used by other gems.
14 Jul 2009; Hans de Graaff <graaff@gentoo.org> ncurses-ruby-1.2.3.ebuild:
Add back missing CVS header.
diff --git a/dev-ruby/ncurses-ruby/ncurses-ruby-1.2.3-r1.ebuild b/dev-ruby/ncurses-ruby/ncurses-ruby-1.2.3-r1.ebuild
new file mode 100644
index 000000000000..c5251c50f29a
--- /dev/null
+++ b/dev-ruby/ncurses-ruby/ncurses-ruby-1.2.3-r1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ncurses-ruby/ncurses-ruby-1.2.3-r1.ebuild,v 1.1 2009/08/30 09:14:33 graaff Exp $
+
+inherit ruby
+
+DESCRIPTION="Ruby wrappers of ncurses and PDCurses libs"
+HOMEPAGE="http://ncurses-ruby.berlios.de/"
+SRC_URI="mirror://berlios/${PN}/${P}.tar.bz2"
+LICENSE="LGPL-2.1"
+SLOT="0"
+USE_RUBY="ruby18 ruby19"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
+IUSE="examples"
+
+DEPEND=">=sys-libs/ncurses-5.3"
+RDEPEND="${DEPEND}"
+
+dofakegemspec() {
+ cat - > "${T}"/ncurses-${PV}.gemspec <<EOF
+Gem::Specification.new do |s|
+ s.name = "ncurses"
+ s.version = "${PV}"
+ s.summary = "${DESCRIPTION}"
+ s.homepage = "${HOMEPAGE}"
+end
+EOF
+
+ insinto $(${RUBY} -r rbconfig -e 'print Config::CONFIG["vendorlibdir"]' | sed -e 's:vendor_ruby:gems:')/specifications
+ doins "${T}"/ncurses-${PV}.gemspec || die "Unable to install fake gemspec"
+}
+
+src_install() {
+ ruby_src_install
+ dofakegemspec
+}