summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNaohiro Aota <nao@gentoo.org>2010-02-03 06:17:17 +0000
committerNaohiro Aota <nao@gentoo.org>2010-02-03 06:17:17 +0000
commit9a1e9bd821fdc379b97ebde2286ef7fb7579bb7a (patch)
tree4a5086c807a95ce27246e880a15ec8c27ff1bf8d /dev-games
parentx11-misc/redshift: New Ebuild for bug 303173 thanks to scarabeus for review a... (diff)
downloadsunrise-9a1e9bd821fdc379b97ebde2286ef7fb7579bb7a.tar.gz
sunrise-9a1e9bd821fdc379b97ebde2286ef7fb7579bb7a.tar.bz2
sunrise-9a1e9bd821fdc379b97ebde2286ef7fb7579bb7a.zip
dev-games/renpy: New ebuild for bug 301324
svn path=/sunrise/; revision=9974
Diffstat (limited to 'dev-games')
-rw-r--r--dev-games/renpy/ChangeLog8
-rw-r--r--dev-games/renpy/Manifest5
-rw-r--r--dev-games/renpy/files/renpy-jedit-path.patch11
-rw-r--r--dev-games/renpy/metadata.xml14
-rw-r--r--dev-games/renpy/renpy-6.10.2.ebuild95
5 files changed, 133 insertions, 0 deletions
diff --git a/dev-games/renpy/ChangeLog b/dev-games/renpy/ChangeLog
new file mode 100644
index 000000000..956a16488
--- /dev/null
+++ b/dev-games/renpy/ChangeLog
@@ -0,0 +1,8 @@
+# ChangeLog for dev-games/renpy
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 03 Feb 2010; Nao Nakashima (nao) <nao.nakashima@gmail.com>
+ +renpy-6.10.2.ebuild, +files/renpy-jedit-path.patch, +metadata.xml:
+ New ebuild for bug 301324
+
diff --git a/dev-games/renpy/Manifest b/dev-games/renpy/Manifest
new file mode 100644
index 000000000..3fc5191a0
--- /dev/null
+++ b/dev-games/renpy/Manifest
@@ -0,0 +1,5 @@
+AUX renpy-jedit-path.patch 362 RMD160 fd7a17f48b4911ddda89414f8eccc3da0d4ccbe6 SHA1 f592f721646354220b671d042730ef54b336d2b3 SHA256 a957962ed4d848b9c94330df809764107926e659f43c4f4f2d545767e1591253
+DIST renpy-6.10.2-source.tar.bz2 8860957 RMD160 5571738ca5db8b6e24da17a26913b4477760629f SHA1 747b01131756ce019b32e34ae70ae8ea803cf1d1 SHA256 80d590a0605e16d99bbfcb5bdb96957cd423f35e29ddceefa623e8d322d30de4
+EBUILD renpy-6.10.2.ebuild 2367 RMD160 1329c7ee89932f081a842703f76bf6012f0fb9d6 SHA1 33ffc93515267d7460a173b80e662b4312677818 SHA256 b503afdee49d756b0acc5d80c4bb7b5c4f41ce886bb90f59c6c7d439cca08b34
+MISC ChangeLog 276 RMD160 b5db14108b0c69243000e3eb6b98354db8aa4ce4 SHA1 30ff5109102bd76f903a61ade376951597d8359f SHA256 69346948d17afa8e9c722723c32c011135befbda8f122f4abe59154fe41a97d5
+MISC metadata.xml 623 RMD160 99d72100bd758065dafbf8e1718d8a6541aba44d SHA1 f2e12a28320607354bab1ea3c734ecb537d6bac5 SHA256 389506cdeaf353cb0e1a7c5efca675d5d086907cf1481c973677b1ffe743f678
diff --git a/dev-games/renpy/files/renpy-jedit-path.patch b/dev-games/renpy/files/renpy-jedit-path.patch
new file mode 100644
index 000000000..e45c88526
--- /dev/null
+++ b/dev-games/renpy/files/renpy-jedit-path.patch
@@ -0,0 +1,11 @@
+--- a/launcher/jEdit.editor.py 2009-07-05 23:42:37.000000000 +0600
++++ b/launcher/jEdit.editor.py 2010-01-18 21:46:37.453619044 +0500
+@@ -6,7 +6,7 @@
+ import os.path
+ import sys
+
+-editor = os.path.normpath(base + "/../jedit/jedit.jar")
++editor = os.path.normpath("/usr/share/jedit/jedit.jar")
+ editor = renpy.shell_escape(editor)
+
+ if sys.platform == 'win32':
diff --git a/dev-games/renpy/metadata.xml b/dev-games/renpy/metadata.xml
new file mode 100644
index 000000000..6f7603a01
--- /dev/null
+++ b/dev-games/renpy/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>maintainer-wanted</herd>
+ <longdescription>
+ Ren'Py is a free and cross-platform visual novel engine that helps you use words,
+ pictures, and sounds to tell stories with the computer.
+ It`s easy and efficient script language makes it possible for non-programmers to make visual novels,
+ while its Python support allows for complex simulation games.
+ </longdescription>
+ <use>
+ <flag name='development'>Install IDE for game developers and an empty game template</flag>
+ </use>
+</pkgmetadata>
diff --git a/dev-games/renpy/renpy-6.10.2.ebuild b/dev-games/renpy/renpy-6.10.2.ebuild
new file mode 100644
index 000000000..5f6309044
--- /dev/null
+++ b/dev-games/renpy/renpy-6.10.2.ebuild
@@ -0,0 +1,95 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+
+inherit confutils distutils eutils games
+
+DESCRIPTION="Visual novel engine written in python"
+HOMEPAGE="http://www.renpy.org"
+SRC_URI="http://www.renpy.org/dl/${PV}/${P}-source.tar.bz2"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="development doc examples"
+
+DEPEND=">=dev-lang/python-2.5
+ <dev-lang/python-3
+ media-libs/libpng
+ media-libs/libsdl
+ media-libs/freetype:2
+ media-video/ffmpeg
+ dev-libs/fribidi
+ dev-python/pygame[X]"
+RDEPEND="${DEPEND}"
+
+pkg_setup() {
+ confutils_use_depend_any examples development
+}
+
+src_prepare() {
+ # Fix path to app-editors/jedit
+ epatch "${FILESDIR}"/${PN}-jedit-path.patch
+
+ find renpy -iname '*.pyo' -delete
+ distutils_src_prepare
+}
+
+src_compile() {
+ cd module || die "Cannot cd to 'module' directory"
+ # RENPY_DEPS_INSTALL is a double-colon separated list of directories that
+ # contains all core renpy dependencies. This is usually /usr.
+ RENPY_DEPS_INSTALL="${ROOT}"/usr distutils_src_compile
+}
+
+src_install() {
+ insinto "${GAMES_DATADIR}"/${PN}
+ exeinto "${GAMES_DATADIR}"/${PN}
+
+ doexe renpy.py || die "doexe failed"
+
+ dodir "${GAMES_BINDIR}" || die "dodir failed"
+ cat <<-EOF > "${D}"/"${GAMES_BINDIR}"/${PN} || die "Failed to create ${PN}"
+ #!/bin/sh
+ RENPY_BASE="${GAMES_DATADIR}"/${PN} "${GAMES_DATADIR}"/${PN}/renpy.py "\${@}"
+ EOF
+
+ doins -r common renpy || die "doins failed"
+
+ if use development; then
+ doins -r launcher template || die "doins failed"
+
+ newicon launcher/logo32.png renpy.png || die "newicon failed"
+ make_desktop_entry renpy "Ren'Py" renpy Game /usr/share/games/${PN} || die "make_desktop_entry failed"
+ fi
+
+ if use examples; then
+ doins -r the_question || die "doins failed"
+ doins -r tutorial || die "doins failed"
+ fi
+
+ dodoc CHANGELOG.txt || die "dodoc failed"
+
+ if use doc; then
+ dohtml -r doc || die "dohtml failed"
+ fi
+
+ cd module || die "Cannot cd to 'module' directory"
+ RENPY_DEPS_INSTALL="${ROOT}"/usr distutils_src_install
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ python_mod_optimize "${ROOT}"/usr/share/games/${PN}
+ distutils_pkg_postinst
+ if use development; then
+ elog "You need to emerge app-editors/jedit to easily use renpy development interface."
+ fi
+}
+
+pkg_postrm() {
+ python_mod_cleanup "${ROOT}"/usr/share/games/${PN}
+ distutils_pkg_postrm
+}