summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2010-07-11 08:58:19 +0000
committerHans de Graaff <graaff@gentoo.org>2010-07-11 08:58:19 +0000
commitadbc40aed74fb544209327fd53d7ed4cf44712d8 (patch)
tree6b955b2f83b72482207858be06baeb1c4269eaa1 /dev-ruby/ruby-svg
parentset apache herd in metadata.xml (diff)
downloadgentoo-2-adbc40aed74fb544209327fd53d7ed4cf44712d8.tar.gz
gentoo-2-adbc40aed74fb544209327fd53d7ed4cf44712d8.tar.bz2
gentoo-2-adbc40aed74fb544209327fd53d7ed4cf44712d8.zip
Convert to ruby-ng. Add USE=doc to make dev-ruby/rdtool dependency optional.
(Portage version: 2.1.8.3/cvs/Linux x86_64)
Diffstat (limited to 'dev-ruby/ruby-svg')
-rw-r--r--dev-ruby/ruby-svg/ChangeLog10
-rw-r--r--dev-ruby/ruby-svg/ruby-svg-1.0.3-r2.ebuild45
2 files changed, 53 insertions, 2 deletions
diff --git a/dev-ruby/ruby-svg/ChangeLog b/dev-ruby/ruby-svg/ChangeLog
index 2fca348fca0d..6717b9960ad8 100644
--- a/dev-ruby/ruby-svg/ChangeLog
+++ b/dev-ruby/ruby-svg/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-ruby/ruby-svg
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-svg/ChangeLog,v 1.17 2009/12/24 17:16:04 graaff Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-svg/ChangeLog,v 1.18 2010/07/11 08:58:19 graaff Exp $
+
+*ruby-svg-1.0.3-r2 (11 Jul 2010)
+
+ 11 Jul 2010; Hans de Graaff <graaff@gentoo.org> +ruby-svg-1.0.3-r2.ebuild:
+ Convert to ruby-ng. Add USE=doc to make dev-ruby/rdtool dependency
+ optional.
24 Dec 2009; Hans de Graaff <graaff@gentoo.org> ruby-svg-1.0.3-r1.ebuild:
Remove obsolete virtual/ruby dependency.
diff --git a/dev-ruby/ruby-svg/ruby-svg-1.0.3-r2.ebuild b/dev-ruby/ruby-svg/ruby-svg-1.0.3-r2.ebuild
new file mode 100644
index 000000000000..f75301ae4a6c
--- /dev/null
+++ b/dev-ruby/ruby-svg/ruby-svg-1.0.3-r2.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-svg/ruby-svg-1.0.3-r2.ebuild,v 1.1 2010/07/11 08:58:19 graaff Exp $
+
+EAPI=2
+USE_RUBY="ruby18"
+
+inherit ruby-ng
+
+DESCRIPTION="Ruby SVG Generator"
+HOMEPAGE="http://ruby-svg.sourceforge.jp/"
+SRC_URI="http://downloads.sourceforge.jp/ruby-svg/2288/${P}.tar.gz"
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~ia64 ~ppc ~x86"
+IUSE="doc examples"
+
+ruby_add_bdepend "doc? ( dev-ruby/rdtool )"
+
+each_ruby_configure() {
+ ${RUBY} install.rb config --prefix=/usr || die
+}
+
+each_ruby_compile() {
+ ${RUBY} install.rb setup || die
+}
+
+each_ruby_install() {
+ ${RUBY} install.rb config --prefix="${D}"/usr || die
+ ${RUBY} install.rb install || die
+}
+
+all_ruby_install() {
+ if use doc ; then
+ rd2 README.en.rd > README.en.html
+ rd2 README.ja.rd > README.ja.html
+
+ dohtml *.html || die
+ fi
+
+ if use examples ; then
+ insinto /usr/share/doc/${PF}/examples
+ doins sample/*
+ fi
+}