summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /games-arcade/lbreakout2
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'games-arcade/lbreakout2')
-rw-r--r--games-arcade/lbreakout2/Manifest3
-rw-r--r--games-arcade/lbreakout2/files/lbreakout2-2.6.4-gentoo.patch67
-rw-r--r--games-arcade/lbreakout2/lbreakout2-2.6.4.ebuild93
-rw-r--r--games-arcade/lbreakout2/metadata.xml11
4 files changed, 174 insertions, 0 deletions
diff --git a/games-arcade/lbreakout2/Manifest b/games-arcade/lbreakout2/Manifest
new file mode 100644
index 000000000000..88ee91e5f211
--- /dev/null
+++ b/games-arcade/lbreakout2/Manifest
@@ -0,0 +1,3 @@
+DIST lbreakout2-2.6.4.tar.gz 3470380 SHA256 0b90716d52e67c27ff41ab7aa5c09dad4f5f19a78076cc57dd4b4d7ed2c1dbd9 SHA512 fe1787900c4379bdb8330ac8ff31138cbdb180449e5addb1c511a9778ab69f0b09a85e91659bb83663868a399d2644e6e084365702c23eac93da579e80fd68bc WHIRLPOOL 6e39c2ad44e0eb970228fcc34726ba7845498a7f07500136974fd554540bdd84fd19b88edfbadbdf3e8986dc8fa2b9673d41feab9cb34bb3e6acbaaf61c1f52c
+DIST lbreakout2-levelsets-20120815.tar.gz 336355 SHA256 9245fb2b0c52364b88619f11b79f68878f1522ada8fcddb0d2da74ec2027cb34 SHA512 f9427c1716c6e9ab5d97c45849bb8d224da4c6f55c252b33d1bc3be8ff96470bc203c5a4dea5036138f6f2b07efe27f1f60763bf5460febebd0a4e0db8028bcc WHIRLPOOL 08a68780fb232309219fe1867af813b7299f270c81cc86a86887a6fcfa3194d137a34ff8ce6c083a43047a2467f08a86357e1fcaff2c8fc93981ddd90e057560
+DIST lbreakout2-themes-20111026.tar.gz 27462927 SHA256 2da570b139b4eaaadb5e598328c90983a3da22fc41e45b8563fa732ab122028a SHA512 a38856665eb3e9c0eaa0ff29817f7283237841368daa977b632df51842812e662da4343b5aa00265ed0765d4e4de1b4f11b7bf6c2650a9b9b1a8e0b440b8cf63 WHIRLPOOL 9c01ad4efac109c273a31ed5501cdc105affa6cc37e89831999e47120899018100ce902390efee8e6e6f414dbb996e1ceb08db5ac4eef478a361802a37cfd414
diff --git a/games-arcade/lbreakout2/files/lbreakout2-2.6.4-gentoo.patch b/games-arcade/lbreakout2/files/lbreakout2-2.6.4-gentoo.patch
new file mode 100644
index 000000000000..365274c581b9
--- /dev/null
+++ b/games-arcade/lbreakout2/files/lbreakout2-2.6.4-gentoo.patch
@@ -0,0 +1,67 @@
+--- lbreakout2-2.6.1.orig/Makefile.am
++++ lbreakout2-2.6.1/Makefile.am
+@@ -1,13 +1,8 @@
+ SUBDIRS = intl m4 po common gui game server client docs
+
+ EXTRA_DIST = config.rpath AUTHORS COPYING ChangeLog INSTALL README \
+-README-SDL.txt TODO lbreakout2.spec touchall lbreakout32.gif \
+-lbreakout48.gif lbreakout2.desktop.in win32_mancomp win32_preparchive
+-
+-desktopdir = $(datadir)/applications
+-desktop_DATA = lbreakout2.desktop
+-icondir = $(datadir)/icons
+-icon_DATA = lbreakout48.gif
++README-SDL.txt TODO lbreakout2.spec touchall \
++win32_mancomp win32_preparchive
+
+ WIN32_TEXT = AUTHORS COPYING ChangeLog INSTALL README README-SDL.txt \
+ TODO lbreakout2.spec ABOUT-NLS
+--- lbreakout2-2.6.1.orig/common/gettext.h
++++ lbreakout2-2.6.1/common/gettext.h
+@@ -24,6 +24,7 @@
+
+ /* Get declarations of GNU message catalog functions. */
+ # include <libintl.h>
++# include <locale.h>
+
+ #else
+
+--- lbreakout2-2.6.1.orig/configure.in
++++ lbreakout2-2.6.1/configure.in
+@@ -80,8 +80,6 @@
+ [ --enable-netdebug Enable net packet debugging.], netdebug_flag="-DNET_DEBUG_MSG" )
+ AC_SUBST(netdebug_flag)
+
+-dnl set localedir
+-localedir=$datadir/locale
+ locdir_flag="-DLOCALEDIR=\\\"$localedir\\\""
+
+ dnl installation&highscore path
+--- lbreakout2-2.6.1.orig/docs/Makefile.am
++++ lbreakout2-2.6.1/docs/Makefile.am
+@@ -7,11 +7,11 @@
+ warp.jpg screen.jpg
+
+ install-data-local:
+- $(mkinstalldirs) $(DESTDIR)$(doc_dir)/lbreakout2
++ $(mkinstalldirs) $(DESTDIR)$(doc_dir)
+ @for file in *.jpg; do\
+- $(INSTALL_DATA) $$file $(DESTDIR)$(doc_dir)/lbreakout2/$$file;\
++ $(INSTALL_DATA) $$file $(DESTDIR)$(doc_dir)/$$file;\
+ done
+- $(INSTALL_DATA) index.html $(DESTDIR)$(doc_dir)/lbreakout2/index.html
++ $(INSTALL_DATA) index.html $(DESTDIR)$(doc_dir)/index.html
+
+ win32-install-script:
+ @for file in $(EXTRA_DIST); do \
+--- lbreakout2-2.6.1.orig/po/Makefile.in.in
++++ lbreakout2-2.6.1/po/Makefile.in.in
+@@ -24,7 +24,7 @@
+ exec_prefix = @exec_prefix@
+ datadir = @datadir@
+ datarootdir = @datarootdir@
+-localedir = $(datadir)/locale
++localedir = @localedir@
+ gettextsrcdir = $(datadir)/gettext/po
+
+ INSTALL = @INSTALL@
diff --git a/games-arcade/lbreakout2/lbreakout2-2.6.4.ebuild b/games-arcade/lbreakout2/lbreakout2-2.6.4.ebuild
new file mode 100644
index 000000000000..77ec4e5c43ab
--- /dev/null
+++ b/games-arcade/lbreakout2/lbreakout2-2.6.4.ebuild
@@ -0,0 +1,93 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit autotools eutils flag-o-matic gnome2-utils games
+
+levels_V=20120815
+themes_V=20111026
+
+DESCRIPTION="Breakout clone written with the SDL library"
+HOMEPAGE="http://lgames.sourceforge.net/index.php?project=LBreakout2"
+SRC_URI=" mirror://sourceforge/lgames/${P}.tar.gz
+ mirror://sourceforge/lgames/${PN}-levelsets-${levels_V}.tar.gz
+ themes? ( mirror://sourceforge/lgames/${PN}-themes-${themes_V}.tar.gz )"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86 ~x86-fbsd"
+IUSE="nls themes"
+
+RDEPEND="media-libs/libpng:0
+ sys-libs/zlib
+ media-libs/libsdl[sound,joystick,video]
+ media-libs/sdl-net
+ media-libs/sdl-mixer
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ nls? ( sys-devel/gettext )"
+
+src_unpack() {
+ unpack ${P}.tar.gz
+
+ cd "${S}/client/levels"
+ unpack ${PN}-levelsets-${levels_V}.tar.gz
+
+ if use themes ; then
+ mkdir "${WORKDIR}/themes"
+ cd "${WORKDIR}/themes"
+ unpack ${PN}-themes-${themes_V}.tar.gz
+
+ # Delete a few duplicate themes (already shipped with lbreakout2
+ # tarball). Some of them have different case than built-in themes, so it
+ # is harder to just compare if the filename is the same.
+ rm -f absoluteB.zip oz.zip moiree.zip
+ for f in *.zip; do
+ unzip -q "$f" && rm -f "$f" || die
+ done
+ fi
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-gentoo.patch
+ eautoreconf
+}
+
+src_configure() {
+ filter-flags -O?
+ egamesconf \
+ --enable-sdl-net \
+ --localedir=/usr/share/locale \
+ --with-docdir="/usr/share/doc/${PF}/html" \
+ $(use_enable nls)
+}
+
+src_install() {
+ default
+
+ if use themes ; then
+ insinto "${GAMES_DATADIR}/lbreakout2/gfx"
+ doins -r "${WORKDIR}/themes/"*
+ fi
+
+ newicon client/gfx/win_icon.png ${PN}.png
+ newicon -s 32 client/gfx/win_icon.png ${PN}.png
+ make_desktop_entry lbreakout2 LBreakout2
+
+ prepgamesdirs
+}
+
+pkg_preinst() {
+ games_pkg_preinst
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/games-arcade/lbreakout2/metadata.xml b/games-arcade/lbreakout2/metadata.xml
new file mode 100644
index 000000000000..a218c5e37eda
--- /dev/null
+++ b/games-arcade/lbreakout2/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>games</herd>
+ <use>
+ <flag name="themes">Install additional themes</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">lgames</remote-id>
+ </upstream>
+</pkgmetadata>