summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMamoru Komachi <usata@gentoo.org>2004-05-01 12:19:04 +0000
committerMamoru Komachi <usata@gentoo.org>2004-05-01 12:19:04 +0000
commit1ea1835fb8da68d3ebe5448cc52ee38a341d6b1d (patch)
tree934e84f5c9b0798c5703c3a3aefde62db9ce0508 /dev-ruby/ruby-gd/ruby-gd-0.7.4.ebuild
parentVersion bump. (Manifest recommit) (diff)
downloadgentoo-2-1ea1835fb8da68d3ebe5448cc52ee38a341d6b1d.tar.gz
gentoo-2-1ea1835fb8da68d3ebe5448cc52ee38a341d6b1d.tar.bz2
gentoo-2-1ea1835fb8da68d3ebe5448cc52ee38a341d6b1d.zip
Initial import. Ebuild submitted by a5hr <a5hr@cibicc.org> at GentooJP ebuild Project.
Diffstat (limited to 'dev-ruby/ruby-gd/ruby-gd-0.7.4.ebuild')
-rw-r--r--dev-ruby/ruby-gd/ruby-gd-0.7.4.ebuild49
1 files changed, 49 insertions, 0 deletions
diff --git a/dev-ruby/ruby-gd/ruby-gd-0.7.4.ebuild b/dev-ruby/ruby-gd/ruby-gd-0.7.4.ebuild
new file mode 100644
index 000000000000..206e2bec48c8
--- /dev/null
+++ b/dev-ruby/ruby-gd/ruby-gd-0.7.4.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-gd/ruby-gd-0.7.4.ebuild,v 1.1 2004/05/01 12:19:04 usata Exp $
+
+inherit ruby
+USE_RUBY="ruby16 ruby18 ruby19"
+
+MY_P="${P/gd/GD}"
+S="${WORKDIR}/${MY_P}"
+
+DESCRIPTION="ruby-gd: an interface to Boutell GD library"
+HOMEPAGE="http://tam.0xfa.com/ruby-gd/"
+SRC_URI="http://tam.0xfa.com/ruby-gd/${MY_P}-1.tar.gz"
+LICENSE="Ruby"
+SLOT="0"
+KEYWORDS="~x86"
+
+IUSE="jpeg truetype"
+
+DEPEND="virtual/ruby
+ virtual/x11
+ >=media-libs/libgd-2.0
+ jpeg? ( media-libs/jpeg )
+ truetype? ( media-libs/freetype )"
+
+src_compile() {
+ local myconf=""
+ myconf="${myconf} --enable-gd2_0 --with-xpm"
+
+ if use jpeg; then
+ myconf="${myconf} --with-jpeg"
+ fi
+
+ if use truetype; then
+ myconf="${myconf} --with-ttf --with-freetype"
+ fi
+
+ ruby extconf.rb ${myconf} || die
+ emake || die
+}
+
+src_install() {
+ einstall || die
+
+ dodoc Changes TODO readme.* doc/manual.rd doc/INSTALL.*
+ dohtml doc/manual.html doc/manual_index.html
+ insinto /usr/share/doc/${PF}/sample
+ doins sample/*
+}