mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
games-arcade/lbreakout2: Call AM_PROG_AR
Closes: https://bugs.gentoo.org/724408 Package-Manager: Portage-2.3.103, Repoman-2.3.23 Signed-off-by: David Seifert <soap@gentoo.org>
This commit is contained in:
@@ -1,5 +1,51 @@
|
||||
--- lbreakout2-2.6.1.orig/Makefile.am
|
||||
+++ lbreakout2-2.6.1/Makefile.am
|
||||
--- 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>
|
||||
|
||||
/* 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
|
||||
|
||||
@@ -80,8 +81,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
|
||||
--- a/docs/Makefile.am
|
||||
+++ b/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 \
|
||||
--- a/Makefile.am
|
||||
+++ b/Makefile.am
|
||||
@@ -1,13 +1,8 @@
|
||||
SUBDIRS = intl m4 po common gui game server client docs
|
||||
|
||||
@@ -16,46 +62,8 @@
|
||||
|
||||
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
|
||||
--- a/po/Makefile.in.in
|
||||
+++ b/po/Makefile.in.in
|
||||
@@ -24,7 +24,7 @@
|
||||
exec_prefix = @exec_prefix@
|
||||
datadir = @datadir@
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user