games-puzzle/toppler: EAPI 8, fix joystick dep, docdir, gamestat group
- Install to correct docdir (${PF}) - Depend on libsdl[joystick] - Use the gamestat group, not games (long gone) Closes: https://bugs.gentoo.org/818619 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
parent
db44ca965f
commit
5433add064
|
@ -0,0 +1,20 @@
|
|||
--- a/Makefile.am
|
||||
+++ b/Makefile.am
|
||||
@@ -33,16 +33,14 @@ toppler_SOURCES = \
|
||||
txtsys.cc txtsys.h \
|
||||
qnxicon.c
|
||||
|
||||
-docdir = $(datadir)/doc
|
||||
pixmapsdir = $(datadir)/pixmaps
|
||||
applicationsdir = $(datadir)/applications
|
||||
-pkgdocdir = $(docdir)/$(PACKAGE)
|
||||
pkglocalstatedir = $(localstatedir)/$(PACKAGE)
|
||||
|
||||
dist_pixmaps_DATA = $(PACKAGE).xpm
|
||||
applications_DATA = $(PACKAGE).desktop
|
||||
dist_man_MANS = toppler.6
|
||||
-dist_pkgdoc_DATA = AUTHORS COPYING ChangeLog NEWS README
|
||||
+dist_doc_DATA = AUTHORS COPYING ChangeLog NEWS README
|
||||
dist_pkgdata_DATA = \
|
||||
toppler.dat toppler.ogg
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
--- a/Makefile.am
|
||||
+++ b/Makefile.am
|
||||
@@ -55,11 +55,11 @@ EXTRA_DIST = \
|
||||
toppler.qpg
|
||||
|
||||
install-exec-hook:
|
||||
- -chgrp games $(DESTDIR)$(bindir)/toppler
|
||||
+ -chgrp gamestat $(DESTDIR)$(bindir)/toppler
|
||||
-chmod 2755 $(DESTDIR)$(bindir)/toppler
|
||||
|
||||
install-data-hook:
|
||||
- -chgrp games $(DESTDIR)$(pkglocalstatedir)/$(PACKAGE).hsc
|
||||
+ -chgrp gamestat $(DESTDIR)$(pkglocalstatedir)/$(PACKAGE).hsc
|
||||
-chmod 0664 $(DESTDIR)$(pkglocalstatedir)/$(PACKAGE).hsc
|
||||
|
||||
abs_builddir = @abs_builddir@
|
|
@ -1,28 +0,0 @@
|
|||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
DESCRIPTION="Reimplementation of Nebulous using SDL"
|
||||
HOMEPAGE="http://toppler.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/toppler/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="nls"
|
||||
|
||||
RDEPEND="
|
||||
media-libs/libsdl[video]
|
||||
media-libs/sdl-mixer[vorbis]
|
||||
nls? ( virtual/libintl )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
nls? ( sys-devel/gettext )
|
||||
"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
|
||||
|
||||
src_configure() {
|
||||
econf $(use_enable nls)
|
||||
}
|
|
@ -0,0 +1,39 @@
|
|||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit autotools
|
||||
|
||||
DESCRIPTION="Reimplementation of Nebulous using SDL"
|
||||
HOMEPAGE="http://toppler.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/toppler/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="nls"
|
||||
|
||||
RDEPEND="acct-group/gamestat
|
||||
media-libs/libsdl[joystick,video]
|
||||
media-libs/sdl-mixer[vorbis]
|
||||
sys-libs/zlib
|
||||
nls? ( virtual/libintl )"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="nls? ( sys-devel/gettext )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-gentoo.patch
|
||||
"${FILESDIR}"/${P}-fix-docdir.patch
|
||||
"${FILESDIR}"/${P}-use-gamestat-group.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf $(use_enable nls)
|
||||
}
|
Loading…
Reference in New Issue