summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMamoru Komachi <usata@gentoo.org>2004-05-23 14:11:23 +0000
committerMamoru Komachi <usata@gentoo.org>2004-05-23 14:11:23 +0000
commit58520c589e1a3646977b2dbaee261d0c93c93ed4 (patch)
treec69411b2c299652418956644f95d6e5182233148 /dev-ruby/ruby-sdl
parentProduction ready on ppc (diff)
downloadgentoo-2-58520c589e1a3646977b2dbaee261d0c93c93ed4.tar.gz
gentoo-2-58520c589e1a3646977b2dbaee261d0c93c93ed4.tar.bz2
gentoo-2-58520c589e1a3646977b2dbaee261d0c93c93ed4.zip
Initial import. Ebuild submitted by John Croisant <jcroisan@insightbb.com>, closing bug #44641
Diffstat (limited to 'dev-ruby/ruby-sdl')
-rw-r--r--dev-ruby/ruby-sdl/ChangeLog10
-rw-r--r--dev-ruby/ruby-sdl/Manifest2
-rw-r--r--dev-ruby/ruby-sdl/files/digest-ruby-sdl-0.9.11
-rw-r--r--dev-ruby/ruby-sdl/metadata.xml5
-rw-r--r--dev-ruby/ruby-sdl/ruby-sdl-0.9.1.ebuild62
5 files changed, 80 insertions, 0 deletions
diff --git a/dev-ruby/ruby-sdl/ChangeLog b/dev-ruby/ruby-sdl/ChangeLog
new file mode 100644
index 000000000000..5c4203f1d67c
--- /dev/null
+++ b/dev-ruby/ruby-sdl/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for dev-ruby/ruby-sdl
+# Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-sdl/ChangeLog,v 1.1 2004/05/23 14:11:23 usata Exp $
+
+*ruby-sdl-0.9.1 (23 May 2004)
+
+ 23 May 2004; Mamoru KOMACHI <usata@gentoo.org> ruby-sdl-0.9.1.ebuild:
+ Initial import. Ebuild submitted by John Croisant <jcroisan@insightbb.com>,
+ closing bug #44641
+
diff --git a/dev-ruby/ruby-sdl/Manifest b/dev-ruby/ruby-sdl/Manifest
new file mode 100644
index 000000000000..bee153ec58dc
--- /dev/null
+++ b/dev-ruby/ruby-sdl/Manifest
@@ -0,0 +1,2 @@
+MD5 fe59ea8abee7ff390b4d64ac259f90e3 ruby-sdl-0.9.1.ebuild 2186
+MD5 0b52a2a9fbae810899355937f269d79a files/digest-ruby-sdl-0.9.1 64
diff --git a/dev-ruby/ruby-sdl/files/digest-ruby-sdl-0.9.1 b/dev-ruby/ruby-sdl/files/digest-ruby-sdl-0.9.1
new file mode 100644
index 000000000000..c6af2ffa31df
--- /dev/null
+++ b/dev-ruby/ruby-sdl/files/digest-ruby-sdl-0.9.1
@@ -0,0 +1 @@
+MD5 6c0d59dabf41ce545966fb0a905f9173 rubysdl-0.9.1.tar.gz 82054
diff --git a/dev-ruby/ruby-sdl/metadata.xml b/dev-ruby/ruby-sdl/metadata.xml
new file mode 100644
index 000000000000..852136183369
--- /dev/null
+++ b/dev-ruby/ruby-sdl/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>ruby</herd>
+</pkgmetadata>
diff --git a/dev-ruby/ruby-sdl/ruby-sdl-0.9.1.ebuild b/dev-ruby/ruby-sdl/ruby-sdl-0.9.1.ebuild
new file mode 100644
index 000000000000..e40fdc44bdd6
--- /dev/null
+++ b/dev-ruby/ruby-sdl/ruby-sdl-0.9.1.ebuild
@@ -0,0 +1,62 @@
+# 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-sdl/ruby-sdl-0.9.1.ebuild,v 1.1 2004/05/23 14:11:23 usata Exp $
+
+MY_P="${P/-/}"
+S="${WORKDIR}/${MY_P}"
+
+DESCRIPTION="Ruby/SDL: Ruby bindings for SDL"
+HOMEPAGE="http://www.kmc.gr.jp/~ohai/rubysdl.en.html"
+SRC_URI="http://www.kmc.gr.jp/~ohai/rubysdl/${MY_P}.tar.gz"
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~x86"
+
+# Optional libraries, not in Portage as of writing:
+# SGE -- ebuild submitted, not yet in portage CVS
+# SDLSKK -- http://www.kmc.gr.jp/~ohai/
+
+# local USE flags "image mixer sge"
+IUSE="image mixer truetype mpeg"
+
+RDEPEND="virtual/ruby
+ >=media-libs/libsdl-1.2.5
+ truetype? ( >=media-libs/sdl-ttf-2.0.6 )
+ image? ( >=media-libs/sdl-image-1.2.2 )
+ mixer? ( >=media-libs/sdl-mixer-1.2.4 )
+ mpeg? ( >=media-libs/smpeg-0.4.4-r1 )"
+# sge? ( >=media-libs/sge )
+
+src_compile() {
+ ruby extconf.rb || die "extconf.rb failed"
+ emake || die "emake failed"
+}
+src_install () {
+ einstall || die "einstall failed"
+
+ dodoc rubysdl_const_list.txt README.en
+ insinto /usr/share/doc/${P}
+ doins rubysdl_doc.en.rd
+ insinto /usr/share/doc/${P}/sample
+ doins sample/*
+}
+
+pkg_postinst () {
+ if ! use image || ! use mixer || ! use truetype || ! use mpeg ; then
+ echo ""
+ ewarn "If any of the following packages are not installed, Ruby/SDL"
+ ewarn "will be missing some functionality. This is ok, but may"
+ ewarn "cause errors in Ruby/SDL programs that need these libraries:"
+ ewarn ""
+ ewarn "\tmedia-libs/sdl-image\tImage loading (PNG, JPEG, etc.)"
+ ewarn "\tmedia-libs/sdl-mixer\tSound mixing"
+ ewarn "\tmedia-libs/sdl-ttf\tTrueType Fonts"
+ #ewarn "\tmedia-libs/sge\t\tVarious cool graphics extensions"
+ ewarn "\tmedia-libs/smpeg\tMPEG playback (including mp3)"
+ ewarn ""
+ ewarn "If you need the functionality offered by these libraries,"
+ ewarn "emerge the desired libraries, then re-emerge dev-ruby/rubysdl"
+ echo ""
+ fi
+}
+