summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2021-04-11 17:49:16 +0200
committerDavid Seifert <soap@gentoo.org>2021-04-11 17:49:16 +0200
commitb2a9d180b52ee4b2c0e02f4370d0f2a755af4d44 (patch)
treed7a6519446cd83e56095e3de15eaa18d9f25ee8b /games-puzzle/enigma
parentnet-fs/nfs-utils: Rebase patches (diff)
downloadgentoo-b2a9d180b52ee4b2c0e02f4370d0f2a755af4d44.tar.gz
gentoo-b2a9d180b52ee4b2c0e02f4370d0f2a755af4d44.tar.bz2
gentoo-b2a9d180b52ee4b2c0e02f4370d0f2a755af4d44.zip
games-puzzle/enigma: Run AM_PROG_AR
* Also port to EAPI 7 Closes: https://bugs.gentoo.org/779862 Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'games-puzzle/enigma')
-rw-r--r--games-puzzle/enigma/enigma-1.21-r3.ebuild61
-rw-r--r--games-puzzle/enigma/files/enigma-1.21-build.patch108
2 files changed, 86 insertions, 83 deletions
diff --git a/games-puzzle/enigma/enigma-1.21-r3.ebuild b/games-puzzle/enigma/enigma-1.21-r3.ebuild
index bdecef930251..a073345f7235 100644
--- a/games-puzzle/enigma/enigma-1.21-r3.ebuild
+++ b/games-puzzle/enigma/enigma-1.21-r3.ebuild
@@ -1,8 +1,9 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
-inherit autotools gnome2-utils
+EAPI=7
+
+inherit autotools xdg
DESCRIPTION="Puzzle game similar to Oxyd"
HOMEPAGE="http://www.nongnu.org/enigma/"
@@ -13,7 +14,8 @@ SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="nls"
-COMMON_DEPS="
+RDEPEND="
+ media-fonts/dejavu
media-libs/sdl-ttf
media-libs/libsdl[video]
media-libs/sdl-mixer
@@ -23,25 +25,22 @@ COMMON_DEPS="
net-misc/curl
|| ( >=dev-libs/xerces-c-3[icu] >=dev-libs/xerces-c-3[-icu,-iconv] )
net-libs/enet:=
- nls? ( virtual/libintl )
-"
-DEPEND="${COMMON_DEPS}
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}"
+BDEPEND="
sys-devel/gettext
-"
-RDEPEND="${COMMON_DEPS}
- media-fonts/dejavu
- x11-misc/xdg-utils
-"
+ virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-build.patch
+ "${FILESDIR}"/${P}-gcc6.patch
+)
src_prepare() {
default
- cp /usr/share/gettext/config.rpath .
- eapply "${FILESDIR}"/${P}-build.patch \
- "${FILESDIR}"/${P}-gcc6.patch
- sed -i \
- -e "s:DOCDIR:\"/usr/share/doc/${P}/html\":" \
- src/main.cc || die
+
eautoreconf
+ config_rpath_update .
}
src_configure() {
@@ -51,25 +50,15 @@ src_configure() {
}
src_install() {
- HTML_DOCS="doc/*" DOCS="ACKNOWLEDGEMENTS AUTHORS CHANGES README doc/HACKING" \
- default
- dosym \
- /usr/share/fonts/dejavu/DejaVuSansCondensed.ttf \
- /usr/share/${PN}/fonts/DejaVuSansCondensed.ttf
- dosym \
- /usr/share/fonts/dejavu/DejaVuSans.ttf \
- /usr/share/${PN}/fonts/vera_sans.ttf
+ HTML_DOCS=( doc/. )
+ DOCS=( ACKNOWLEDGEMENTS AUTHORS CHANGES README doc/HACKING )
+ default
doman doc/enigma.6
-}
-
-pkg_preinst() {
- gnome2_icon_savelist
-}
-pkg_postinst() {
- gnome2_icon_cache_update
-}
-
-pkg_postrm() {
- gnome2_icon_cache_update
+ dosym \
+ ../../fonts/dejavu/DejaVuSansCondensed.ttf \
+ /usr/share/enigma/fonts/DejaVuSansCondensed.ttf
+ dosym \
+ ../../fonts/dejavu/DejaVuSans.ttf \
+ /usr/share/enigma/fonts/vera_sans.ttf
}
diff --git a/games-puzzle/enigma/files/enigma-1.21-build.patch b/games-puzzle/enigma/files/enigma-1.21-build.patch
index 6d5e91ca76e4..1e9e44f9b95e 100644
--- a/games-puzzle/enigma/files/enigma-1.21-build.patch
+++ b/games-puzzle/enigma/files/enigma-1.21-build.patch
@@ -1,24 +1,14 @@
-diff -ru enigma-1.21.orig/Makefile.am enigma-1.21/Makefile.am
---- enigma-1.21.orig/Makefile.am 2014-12-19 16:26:06.000000000 -0500
-+++ enigma-1.21/Makefile.am 2015-02-06 18:20:22.239518323 -0500
-@@ -3,12 +3,9 @@
- # tools -> lib-src/lua
- # src -> tools, lib-src
- #
--SUBDIRS = m4 lib-src tools intl src data doc po etc
-+SUBDIRS = m4 lib-src tools intl src data po etc
- EXTRA_DIST = enigma CHANGES ACKNOWLEDGEMENTS
+--- a/configure.ac
++++ b/configure.ac
+@@ -67,6 +67,7 @@
+ AC_PROG_CXX
+ AC_PROG_CPP
+ AC_PROG_RANLIB
++AM_PROG_AR
+ PKG_PROG_PKG_CONFIG
--docdir = @datadir@/doc/enigma
--doc_DATA = README CHANGES COPYING ACKNOWLEDGEMENTS
--
- ACLOCAL_AMFLAGS = -I m4
-
- .PHONY: tolua
-diff -ru enigma-1.21.orig/configure.ac enigma-1.21/configure.ac
---- enigma-1.21.orig/configure.ac 2014-12-19 16:26:06.000000000 -0500
-+++ enigma-1.21/configure.ac 2015-02-06 18:20:22.282516643 -0500
-@@ -342,7 +342,6 @@
+ dnl do not add the AC_PROG_CXX default CXXFLAGS
+@@ -342,7 +343,6 @@
CXXFLAGS="$CXXFLAGS -O2 -ffast-math -fomit-frame-pointer"
AC_MSG_RESULT(yes)
else
@@ -26,9 +16,24 @@ diff -ru enigma-1.21.orig/configure.ac enigma-1.21/configure.ac
AC_MSG_RESULT(no)
fi
-diff -ru enigma-1.21.orig/etc/Makefile.am enigma-1.21/etc/Makefile.am
---- enigma-1.21.orig/etc/Makefile.am 2014-12-19 16:26:05.000000000 -0500
-+++ enigma-1.21/etc/Makefile.am 2015-02-06 18:25:44.131945494 -0500
+--- a/etc/enigma.desktop
++++ b/etc/enigma.desktop
+@@ -1,5 +1,5 @@
+ [Desktop Entry]
+-Version=1.21
++Version=1.0
+ Name=Enigma
+ Name[be]=Enigma
+ Name[cs]=Enigma
+@@ -44,5 +44,5 @@
+ StartupNotify=false
+ Icon=enigma
+ Type=Application
+-Categories=Application;Game;PuzzleGame;
++Categories=Game;X-PuzzleGame;
+
+--- a/etc/Makefile.am
++++ b/etc/Makefile.am
@@ -1,18 +1,18 @@
# if !MINGW32
# Comply with xdg icon theme specification
@@ -52,26 +57,34 @@ diff -ru enigma-1.21.orig/etc/Makefile.am enigma-1.21/etc/Makefile.am
dist_appdata_DATA = enigma.appdata.xml
# endif !MINGW32
-diff -ru enigma-1.21.orig/etc/enigma.desktop enigma-1.21/etc/enigma.desktop
---- enigma-1.21.orig/etc/enigma.desktop 2014-12-19 16:26:05.000000000 -0500
-+++ enigma-1.21/etc/enigma.desktop 2015-02-06 18:20:22.282516643 -0500
-@@ -1,5 +1,5 @@
- [Desktop Entry]
--Version=1.21
-+Version=1.0
- Name=Enigma
- Name[be]=Enigma
- Name[cs]=Enigma
-@@ -44,5 +44,5 @@
- StartupNotify=false
- Icon=enigma
- Type=Application
--Categories=Application;Game;PuzzleGame;
-+Categories=Game;X-PuzzleGame;
+--- a/lib-src/zipios++/configure.ac
++++ b/lib-src/zipios++/configure.ac
+@@ -37,6 +37,7 @@
+ AC_PROG_CPP
+ AC_PROG_INSTALL
+ AC_PROG_RANLIB
++AM_PROG_AR
-diff -ru enigma-1.21.orig/po/Makefile.in.in enigma-1.21/po/Makefile.in.in
---- enigma-1.21.orig/po/Makefile.in.in 2014-12-19 16:26:06.000000000 -0500
-+++ enigma-1.21/po/Makefile.in.in 2015-02-06 18:20:22.283516604 -0500
+ dnl Checks for libraries.
+ AC_CHECK_LIB(z, inflate, [cv_libz=yes], [cv_libz=no])
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -3,12 +3,9 @@
+ # tools -> lib-src/lua
+ # src -> tools, lib-src
+ #
+-SUBDIRS = m4 lib-src tools intl src data doc po etc
++SUBDIRS = m4 lib-src tools intl src data po etc
+ EXTRA_DIST = enigma CHANGES ACKNOWLEDGEMENTS
+
+-docdir = @datadir@/doc/enigma
+-doc_DATA = README CHANGES COPYING ACKNOWLEDGEMENTS
+-
+ ACLOCAL_AMFLAGS = -I m4
+
+ .PHONY: tolua
+--- a/po/Makefile.in.in
++++ b/po/Makefile.in.in
@@ -25,12 +25,12 @@
exec_prefix = @exec_prefix@
datarootdir = @datarootdir@
@@ -87,14 +100,15 @@ diff -ru enigma-1.21.orig/po/Makefile.in.in enigma-1.21/po/Makefile.in.in
#install_sh@ -d
mkinstalldirs = $(SHELL) $(MKINSTALLDIRS)
-diff -ru enigma-1.21.orig/src/Makefile.am enigma-1.21/src/Makefile.am
---- enigma-1.21.orig/src/Makefile.am 2014-12-19 16:24:38.000000000 -0500
-+++ enigma-1.21/src/Makefile.am 2015-02-06 18:20:22.283516604 -0500
-@@ -12,7 +12,7 @@
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -11,8 +11,8 @@
+
CXXFLAGS = @CXXFLAGS@\
-DSYSTEM_DATA_DIR=\"$(datadir)/enigma\" \
- -DDOCDIR=\"$(docdir)\" \
+- -DDOCDIR=\"$(docdir)\" \
- -DLOCALEDIR=\"$(localedir_enigma)\" \
++ -DDOCDIR=\"$(htmldir)\" \
+ -DLOCALEDIR=\"/usr/share/locale\" \
-I$(top_srcdir)/lib-src/zipios++ \
-I$(top_builddir)/lib-src/zipios++ \