summaryrefslogtreecommitdiff
path: root/games-arcade/bub-n-bros
diff options
context:
space:
mode:
Diffstat (limited to 'games-arcade/bub-n-bros')
-rw-r--r--games-arcade/bub-n-bros/Manifest6
-rw-r--r--games-arcade/bub-n-bros/bub-n-bros-1.6.2.ebuild69
-rw-r--r--games-arcade/bub-n-bros/files/bub-n-bros-1.6.2-home.patch51
-rw-r--r--games-arcade/bub-n-bros/metadata.xml11
4 files changed, 137 insertions, 0 deletions
diff --git a/games-arcade/bub-n-bros/Manifest b/games-arcade/bub-n-bros/Manifest
new file mode 100644
index 000000000000..4b2d27936f1c
--- /dev/null
+++ b/games-arcade/bub-n-bros/Manifest
@@ -0,0 +1,6 @@
+AUX bub-n-bros-1.6.2-home.patch 2035 SHA256 13bfced9b7b4bbb543ba32fa209bcf7d313a2f6c0dda979d71dba83dd717ff95 SHA512 77362d4b1daa02f59daa34bc31f6a68506a14eaa4633d04ee3f21f9c8244089e35568bff001a997659de07a4640af84d2ed14807242561e876634d7192f8ab34 WHIRLPOOL 4386739ee5bb2ae406daec9981da4ef3e56ecd9ee04ea30807b37cb796874827826031b50c2e38fbb37d3ddf3585575c8f9da104ccd099f8091ca023e090dc8d
+DIST bubbros-1.6.2.tar.gz 11568771 SHA256 0ad8a359c4632071a9c85c2684bae32aa0fa278632c49f092dc4078cfb9858c4 SHA512 a05fca8e31655e4bade60cd085f29796d789b349f005c715bf0e37e51f0bacb9d8b9650f3b10470917ee25421d32443e01132816a2f508e359302aa2c6d18ddb WHIRLPOOL 6ed0f68cab694399aef4c75ab0633c9c355cbc5328c72fffacd20612c6cf0cc67b06db65dc808307bd036caba19f1d7e35fedd6c756104e9c1c5ce1054b8a43f
+EBUILD bub-n-bros-1.6.2.ebuild 1450 SHA256 9eede40d29c2e43904a780cb88e45c92de3480b126af78a2b99172c86f4d3cd2 SHA512 81e6aaaa3ed81809e9d7d17680b25289ac3672d8d3b4a7fbbed54fb0eafa6431599c70fe85a67a9a6c745b6f010d9a91c934519c84f734b514625157932ef75a WHIRLPOOL aac17c2fb305e941d29e19ae33ec6cda11ccdad7ba29bcf99e1626f8ee444d947d2562b5e1f4faae3ad1c9012cfba7e5f070d88b1fe07e8f12d4c95b940cb4e1
+MISC ChangeLog 2476 SHA256 70242ae298910dc4f3e505664b12df1921832bee43c5e199491db3e92a3f80a8 SHA512 4d4f8e4753ec8e2a71e96688af6819d2768a8692358e981a3aef01b0b4d9758443f22962de042c94f60d06cdbaa4c197bf6ad56b0e694466f5afcca7d3c61f0d WHIRLPOOL 909f48ed9c71cc5ba3b5865d49a985f2234dbb9c7a06087d21e0732d0b2943fe3e9041f2ca0cb0a393271db2e4aca28ca738f06181318f9a9a4c2b40e77a0595
+MISC ChangeLog-2015 3171 SHA256 c7558d5fd42a140577a5861687e69289406f5e62677c45d28ae0f5cbec6478ff SHA512 0ca4fb0544fd64b9fc3c378a2f63af053213cf25c29bc577f5665c6992edce6c3b4a2f7ff7ca18eb02f895d9679166f916b15424db0ee14df7a3b22327b88af0 WHIRLPOOL 613dfd603d4a75853addab752a17ed325459fde706a7651b55590e2bcb20b9970e98b14b73a4f447f1e459463687a7c8694cd210a43dd9fcb1762392207721a8
+MISC metadata.xml 333 SHA256 d55643febf81877e45c0873c7ccb14aecba1c2056bd21d62f21013eb1626bbd2 SHA512 ff711e95f012d2e24741f74d91bcce9871303186b15daae6e254be786329b53d1b6acf3c4c403b85a1d83f22423f95b404cb20725042425d309d1fe06fd04edb WHIRLPOOL a8b56a06b60e2517452fdf2af2d612acd6fd057163b329f83392b18ebcadcc5148bfe9d1237e557760e4be525233468f6cabcf50c71255c4545a405845505aa7
diff --git a/games-arcade/bub-n-bros/bub-n-bros-1.6.2.ebuild b/games-arcade/bub-n-bros/bub-n-bros-1.6.2.ebuild
new file mode 100644
index 000000000000..158744ee2a95
--- /dev/null
+++ b/games-arcade/bub-n-bros/bub-n-bros-1.6.2.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+inherit eutils python-single-r1 games
+
+MY_P=${P/-n-}
+DESCRIPTION="A multiplayer clone of the famous Bubble Bobble game"
+HOMEPAGE="http://bub-n-bros.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+
+LICENSE="MIT Artistic-2"
+SLOT="0"
+KEYWORDS="~alpha amd64 x86 ~x86-fbsd"
+IUSE=""
+
+DEPEND="dev-python/pygame[${PYTHON_USEDEP}]
+ ${PYTHON_DEPS}"
+RDEPEND=${DEPEND}
+
+REQUIRED_USE=${PYTHON_REQUIRED_USE}
+
+S=${WORKDIR}/${MY_P}
+
+pkg_setup() {
+ python-single-r1_pkg_setup
+ games_pkg_setup
+}
+
+src_prepare() {
+ ecvs_clean
+ epatch "${FILESDIR}"/${P}-home.patch
+ python_fix_shebang .
+}
+
+src_compile() {
+ # Compile the "statesaver" extension module to enable the Clock bonus
+ cd "${S}"/bubbob
+ ${EPYTHON} setup.py build_ext -i || die
+
+ # Compile the extension module required for the X Window client
+ cd "${S}"/display
+ ${EPYTHON} setup.py build_ext -i || die
+
+ # Build images
+ cd "${S}"/bubbob/images
+ ${EPYTHON} buildcolors.py || die
+}
+
+src_install() {
+ local dir=$(games_get_libdir)/${PN}
+
+ exeinto "${dir}"
+ doexe *.py
+
+ insinto "${dir}"
+ doins -r bubbob common display java http2 metaserver
+
+ dodir "${GAMES_BINDIR}"
+ dosym "${dir}"/BubBob.py "${GAMES_BINDIR}"/bubnbros
+
+ python_optimize "${D}${dir}"
+
+ newicon http2/data/bob.png ${PN}.png
+ make_desktop_entry bubnbros Bub-n-Bros
+
+ prepgamesdirs
+}
diff --git a/games-arcade/bub-n-bros/files/bub-n-bros-1.6.2-home.patch b/games-arcade/bub-n-bros/files/bub-n-bros-1.6.2-home.patch
new file mode 100644
index 000000000000..4d2cc317aba3
--- /dev/null
+++ b/games-arcade/bub-n-bros/files/bub-n-bros-1.6.2-home.patch
@@ -0,0 +1,51 @@
+--- bubbob/images.py 2007-09-08 17:03:41.000000000 +0200
++++ bubbob/images.py 2007-09-08 17:57:45.000000000 +0200
+@@ -454,7 +454,6 @@
+ # check and maybe regenerate the colored image files
+ file = os.path.join('images', 'buildcolors.py')
+ g = {'__name__': '__auto__', '__file__': file}
+- execfile(file, g)
+ # replace the entries 'filename_%d.ppm' by a family of entries,
+ # one for each color
+ sprmap = {}
+--- display/pclient.py 2007-09-08 17:03:41.000000000 +0200
++++ display/pclient.py 2007-09-08 17:57:45.000000000 +0200
+@@ -162,8 +162,8 @@
+ if mode[-1].has_key('cfgfile'):
+ self.trackcfgfile = mode[-1]['cfgfile']
+ else:
+- self.trackcfgfile = os.path.join(DataChunk.SOURCEDIR,
+- 'http2', 'config.txt')
++ self.trackcfgfile = os.path.join(os.environ.get('HOME'),
++ '.bubnbros')
+ self.udpsock = None
+ self.udpsock_low = None
+ self.udpsock2 = None
+--- http2/httppages.py 2007-09-08 17:03:41.000000000 +0200
++++ http2/httppages.py 2007-09-08 17:57:45.000000000 +0200
+@@ -38,7 +38,7 @@
+
+
+ class PageServer:
+- CONFIGFILE = 'config.txt'
++ CONFIGFILE = '.bubnbros'
+ localservers = None
+
+ def __init__(self, Game):
+@@ -46,7 +46,7 @@
+ self.seed = hex(random.randrange(0x1000, 0x10000))
+ #self.unique_actions = {}
+ self.localhost = gamesrv.HOSTNAME
+- self.filename = os.path.join(LOCALDIR, self.CONFIGFILE)
++ self.filename = os.path.join(os.environ.get('HOME'), self.CONFIGFILE)
+ data = self.loadoptionfile()
+ self.globaloptions = Options(data.get('*', {}))
+ self.localoptions = Options(data.get(self.localhost, {}))
+@@ -333,7 +333,6 @@
+ 'buildcolors.py')
+ if os.path.exists(file):
+ g = {'__name__': '__auto__', '__file__': file}
+- execfile(file, g)
+
+ if port:
+ address = '%s:%s' % (host, port)
diff --git a/games-arcade/bub-n-bros/metadata.xml b/games-arcade/bub-n-bros/metadata.xml
new file mode 100644
index 000000000000..349a63e580ba
--- /dev/null
+++ b/games-arcade/bub-n-bros/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">bub-n-bros</remote-id>
+ </upstream>
+</pkgmetadata>