summaryrefslogtreecommitdiff
path: root/games-arcade/lbreakout2
diff options
context:
space:
mode:
Diffstat (limited to 'games-arcade/lbreakout2')
-rw-r--r--games-arcade/lbreakout2/Manifest4
-rw-r--r--games-arcade/lbreakout2/files/lbreakout2-2.6.5-gentoo.patch64
-rw-r--r--games-arcade/lbreakout2/lbreakout2-2.6.5-r1.ebuild36
3 files changed, 57 insertions, 47 deletions
diff --git a/games-arcade/lbreakout2/Manifest b/games-arcade/lbreakout2/Manifest
index 1a68949fdc8e..b6edde2cba52 100644
--- a/games-arcade/lbreakout2/Manifest
+++ b/games-arcade/lbreakout2/Manifest
@@ -1,6 +1,6 @@
-AUX lbreakout2-2.6.5-gentoo.patch 2112 BLAKE2B ede968faa5aee77cf8325a176d5249ae29c87f2e1aaedaddbf9f24c7a763c2e711fd999c914b97f7cd468b4738df832538eb9a7528f01280e42fee6adc1d2587 SHA512 e3f4ce13d67b9c84ef813aa09957ac2615724986821846544839b92f616b66bdf2da1d3239c4a48c8eaf071d0e98fcaf9f2c2cab6a314ea91f5671ef75367b58
+AUX lbreakout2-2.6.5-gentoo.patch 2134 BLAKE2B ba98ce2153009499c8ab1f59674a2e762073b8e0a03a156d77b7a27f981cd1c39bf4dcbce22cc9f1d9c9c30865598b027032385a5efda7f0e0feadade9d9ada1 SHA512 39b28bcf666742d81292f45206d4ba444ee7133f52de31999d6e4a6f2be5791f1ae9da5adfd8b1c9e54c6e8a0ecf0c003851a52f195f1b5a1f0cb53465bddf30
DIST lbreakout2-2.6.5.tar.gz 3491519 BLAKE2B b382b391f3aa12f975ed52ec9f7de21f864c2171e0b6d1469ae1224b3cb240ff8a680ebae9ea37a85aa95c432c164058e8a9a0a1d094bbef572670bdbd17ca4e SHA512 45c54bc9401131c96eba5fdcc08ca1324904fb50d3967acf7f29034045cbcd4c1d0b65f38eb33d8aace4cfe35f2a2e7a6c2319e4a6d6a1b41274dbe293a1747b
DIST lbreakout2-levelsets-20141220.tar.gz 372221 BLAKE2B 16da9ee84e856734645a2ddf1665a8ebf8a52aa63be5d91e20f359bfb270d7bed16e7a4903c0847543141120d8d633bf84ceda867000354eedf201e389faf0db SHA512 482c1e95a37735f7bca510fa34d0f046e89b5aa9528b9af9dfff5bcb3fe656140285a95670caae2565cc9ebd30c3dc87a1fe77a6b75061ce9349ee7e36aa13d5
DIST lbreakout2-themes-20141220.tar.gz 34006503 BLAKE2B 5262e04368d1c77b2690f70ded0c3da17b7ce31175271f22142b0418dfabb840561f4dbd97d16a12da6addb9d15e22e5ca97f96c8380bd0e7983642ee55fd1e3 SHA512 6088ff4bd9dfbbeb91c74e4adb500593af88ea6796bdec577afb43fc4ea9819c4f2dae76b6b7a8ad1ce2ec32ef575e41a6fa924463107a5dcd211f50bb94a906
-EBUILD lbreakout2-2.6.5-r1.ebuild 1995 BLAKE2B 1631577a0beded19accb323268c5bc37a4828d7c82f5fbb9d0fabcb0673dc69212ac9a13b4779e9dbfad09d5a44bc788b9ff766823de65019d508435ce9c6207 SHA512 ad3879d5185d5703ac84c0d4932d8a2076d3add5befc5833bb6b906f3e01d36bd7248269a25aad9c7ec7a5dc7c2b505fc19f517d628e9553f4f27bd4ce8ee7e7
+EBUILD lbreakout2-2.6.5-r1.ebuild 2058 BLAKE2B 4eecffaf1454de018affe6816f49760c329596b086889687e8647108d72131a698141fe114d4878d6d2dfd61ecf40962bf52f818df385cae4f6df66f4661a769 SHA512 c6ba48f3c3f3946dbb6e5e18a88a3ab05a0611ed7b3efa414ad1f1cbd8c6406785fb48d9aa4f7c3ad154298f81d7169af67135d24b3947776ac84dbb1248527f
MISC metadata.xml 413 BLAKE2B 483149bf4aab9f2a8fea8fbaa6cdcf8ea0c029750acc79b8c4203f27f139a96bf80f5c73c972802ac9eea89f29e98c71214d7a723b82d81290a776fd49480ad7 SHA512 152c0d0d5ac6e3babb26c8eba16c31ed687e0a39ee7b6a86442a1a1efcb4f2d63ccd7f6062857df78047dca8466f548548d40c8baf8359cbaf1758ac03eb1661
diff --git a/games-arcade/lbreakout2/files/lbreakout2-2.6.5-gentoo.patch b/games-arcade/lbreakout2/files/lbreakout2-2.6.5-gentoo.patch
index 365274c581b9..3284426749af 100644
--- a/games-arcade/lbreakout2/files/lbreakout2-2.6.5-gentoo.patch
+++ b/games-arcade/lbreakout2/files/lbreakout2-2.6.5-gentoo.patch
@@ -1,34 +1,24 @@
---- 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
+--- a/common/gettext.h
++++ b/common/gettext.h
@@ -24,6 +24,7 @@
/* Get declarations of GNU message catalog functions. */
# include <libintl.h>
+# include <locale.h>
- #else
+ /* We need locale.h too, otherwise setlocale() bails out; cf. #643471 */
+ #if HAVE_LOCALE_H
+--- a/configure.in
++++ b/configure.in
+@@ -12,6 +12,7 @@
+ dnl Checks for programs.
+ AM_GNU_GETTEXT
+ AC_PROG_CC
++AM_PROG_AR
+ AC_PROG_RANLIB
+ AC_EXEEXT
---- lbreakout2-2.6.1.orig/configure.in
-+++ lbreakout2-2.6.1/configure.in
-@@ -80,8 +80,6 @@
+@@ -80,8 +81,6 @@
[ --enable-netdebug Enable net packet debugging.], netdebug_flag="-DNET_DEBUG_MSG" )
AC_SUBST(netdebug_flag)
@@ -37,8 +27,8 @@
locdir_flag="-DLOCALEDIR=\\\"$localedir\\\""
dnl installation&highscore path
---- lbreakout2-2.6.1.orig/docs/Makefile.am
-+++ lbreakout2-2.6.1/docs/Makefile.am
+--- a/docs/Makefile.am
++++ b/docs/Makefile.am
@@ -7,11 +7,11 @@
warp.jpg screen.jpg
@@ -54,8 +44,26 @@
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
+--- a/Makefile.am
++++ b/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
+--- a/po/Makefile.in.in
++++ b/po/Makefile.in.in
@@ -24,7 +24,7 @@
exec_prefix = @exec_prefix@
datadir = @datadir@
diff --git a/games-arcade/lbreakout2/lbreakout2-2.6.5-r1.ebuild b/games-arcade/lbreakout2/lbreakout2-2.6.5-r1.ebuild
index 5be797a596df..129ed748d93f 100644
--- a/games-arcade/lbreakout2/lbreakout2-2.6.5-r1.ebuild
+++ b/games-arcade/lbreakout2/lbreakout2-2.6.5-r1.ebuild
@@ -1,7 +1,8 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
+EAPI=7
+
inherit autotools desktop flag-o-matic gnome2-utils
levels_V=20141220
@@ -24,36 +25,38 @@ RDEPEND="
media-libs/libsdl[sound,joystick,video]
media-libs/sdl-net
media-libs/sdl-mixer
- nls? ( virtual/libintl )
-"
-DEPEND="${RDEPEND}
- nls? ( sys-devel/gettext )
-"
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}"
+BDEPEND="nls? ( sys-devel/gettext )"
+
+PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
src_unpack() {
unpack ${P}.tar.gz
- cd "${S}/client/levels"
+ cd "${S}/client/levels" || die
unpack ${PN}-levelsets-${levels_V}.tar.gz
- if use themes ; then
- mkdir "${WORKDIR}/themes"
- cd "${WORKDIR}/themes"
+ if use themes; then
+ mkdir "${WORKDIR}"/themes || die
+ cd "${WORKDIR}"/themes || die
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
+ rm -f absoluteB.zip oz.zip moiree.zip || die
+ local f
for f in *.zip; do
- unzip -q "$f" && rm -f "$f" || die
+ unzip -q "${f}" || die
+ rm -f "${f}" || die
done
fi
}
src_prepare() {
default
- eapply "${FILESDIR}"/${P}-gentoo.patch
+ mv configure.{in,ac} || die
eautoreconf
}
@@ -61,17 +64,16 @@ src_configure() {
filter-flags -O?
econf \
--enable-sdl-net \
- --localedir=/usr/share/locale \
- --with-docdir="/usr/share/doc/${PF}/html" \
+ --with-docdir="${EPREFIX}/usr/share/doc/${PF}/html" \
$(use_enable nls)
}
src_install() {
default
- if use themes ; then
+ if use themes; then
insinto /usr/share/lbreakout2/gfx
- doins -r "${WORKDIR}/themes/"*
+ doins -r "${WORKDIR}"/themes/.
fi
newicon client/gfx/win_icon.png ${PN}.png