summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2014-12-31 23:53:50 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2014-12-31 23:53:50 +0000
commit97bc17a59d76a9ecff736fcbfad244b771ce2988 (patch)
treed9dfd6dfe8265467d89f796b9373c9919cb1b089 /games-strategy
parentFixed dependency on sg3_utils. Thanks to Jiří Moravec for reporting this in... (diff)
downloadgentoo-2-97bc17a59d76a9ecff736fcbfad244b771ce2988.tar.gz
gentoo-2-97bc17a59d76a9ecff736fcbfad244b771ce2988.tar.bz2
gentoo-2-97bc17a59d76a9ecff736fcbfad244b771ce2988.zip
convert to python-single-r1; EAPI=5
(Portage version: 2.2.14/cvs/Linux x86_64, unsigned Manifest commit)
Diffstat (limited to 'games-strategy')
-rw-r--r--games-strategy/lightyears/ChangeLog10
-rw-r--r--games-strategy/lightyears/lightyears-1.4-r1.ebuild53
2 files changed, 61 insertions, 2 deletions
diff --git a/games-strategy/lightyears/ChangeLog b/games-strategy/lightyears/ChangeLog
index a6794ce77d1f..df5da7d9c5f1 100644
--- a/games-strategy/lightyears/ChangeLog
+++ b/games-strategy/lightyears/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for games-strategy/lightyears
-# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-strategy/lightyears/ChangeLog,v 1.17 2013/01/22 18:06:20 mr_bones_ Exp $
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/lightyears/ChangeLog,v 1.18 2014/12/31 23:53:50 mr_bones_ Exp $
+
+*lightyears-1.4-r1 (31 Dec 2014)
+
+ 31 Dec 2014; Michael Sterrett <mr_bones_@gentoo.org>
+ +lightyears-1.4-r1.ebuild:
+ convert to python-single-r1; EAPI=5
22 Jan 2013; Michael Sterrett <mr_bones_@gentoo.org>
-files/lightyears-1.3a-gentoo.patch, -lightyears-1.3a.ebuild:
diff --git a/games-strategy/lightyears/lightyears-1.4-r1.ebuild b/games-strategy/lightyears/lightyears-1.4-r1.ebuild
new file mode 100644
index 000000000000..e37d747e7756
--- /dev/null
+++ b/games-strategy/lightyears/lightyears-1.4-r1.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/lightyears/lightyears-1.4-r1.ebuild,v 1.1 2014/12/31 23:53:50 mr_bones_ Exp $
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+inherit eutils python-single-r1 games
+
+DESCRIPTION="a single-player game with a science-fiction theme"
+HOMEPAGE="http://www.jwhitham.org.uk/20kly/"
+SRC_URI="http://www.jwhitham.org.uk/20kly/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-python/pygame[${PYTHON_USEDEP}]
+ ${PYTHON_DEPS}"
+RDEPEND=${DEPEND}
+REQUIRED_USE=${PYTHON_REQUIRED_USE}
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}"-gentoo.patch
+ sed -i \
+ -e "s:@GENTOO_LIBDIR@:$(games_get_libdir)/${PN}:" \
+ -e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}/${PN}:" \
+ ${PN} || die
+ python_fix_shebang .
+}
+
+src_install() {
+ dogamesbin ${PN}
+
+ insinto "$(games_get_libdir)/${PN}"
+ doins code/*.py
+
+ dodoc README.txt
+
+ insinto "${GAMES_DATADIR}/${PN}"
+ doins -r audio data manual
+
+ python_optimize "${D}$(games_get_libdir)/${PN}"
+
+ newicon data/32.png ${PN}.png
+ make_desktop_entry ${PN} "Light Years Into Space"
+ prepgamesdirs
+}
+
+pkg_setup() {
+ python-single-r1_pkg_setup
+ games_pkg_setup
+}