summaryrefslogtreecommitdiff
path: root/games-arcade/lbreakout
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-06-29 10:15:54 +0100
committerV3n3RiX <venerix@redcorelinux.org>2021-06-29 10:15:54 +0100
commit9aa80713372911cec499b3adb2cd746790920916 (patch)
treeb8e99dc5dd60ac2094a27cc52f74aada8df38f05 /games-arcade/lbreakout
parentb4d43e8c611df4a8061b6f88d9e9f6b1e3c83903 (diff)
gentoo resync : 29.06.2021
Diffstat (limited to 'games-arcade/lbreakout')
-rw-r--r--games-arcade/lbreakout/Manifest2
-rw-r--r--games-arcade/lbreakout/lbreakout-010315-r1.ebuild38
2 files changed, 27 insertions, 13 deletions
diff --git a/games-arcade/lbreakout/Manifest b/games-arcade/lbreakout/Manifest
index 91c252f8e5bf..6a5012c5f9d1 100644
--- a/games-arcade/lbreakout/Manifest
+++ b/games-arcade/lbreakout/Manifest
@@ -1,3 +1,3 @@
DIST lbreakout-010315.tar.gz 655418 BLAKE2B f8d893c16de045f172e2ece3158420a880fff4775e81f714d390cc92cfbc6296cc968442388097d6be7fd23e19be614d872fe4b9e730284dcb7044d06bf9d72f SHA512 92421ceb4e643df2123d084b0d2c5edfd311e39dd8da85c01da5cfd872f787a6969e514efab2c5f110979434e773fce211e755e4c45438c4469ab9095cb595b7
-EBUILD lbreakout-010315-r1.ebuild 617 BLAKE2B 3106ce3654440c8c5dfc431d0c006f7541d6616136972f24d8f90d267a54c1c9e686f0c66273044e2badf6c02971f82301fdbe04a791c5a29fbad65dfadf9a60 SHA512 7eddaf43df8189c64e390dc5b2a8284132ee03631b4756ced32d19db617df33a3f913dacbe6967bc8a59b09cbb8a31b18ed9c0f960af0c60acc855e4ed7c53ff
+EBUILD lbreakout-010315-r1.ebuild 923 BLAKE2B a710e785f619bc30a3c1ed32a40b8a09948f0115135809747bc1f6bd6b06b31ca9d2a7053248da45a1725349741beb87391548b50e7589b08251f1143267cc4a SHA512 d12f7b8fbf4c4026879371831e24c873b57ba32f6f3f28b2f1f520083a6f94a8085f7340e842b3c809dd6651ea814ca2331cbb7b6bab3fd4db97eae5107cd437
MISC metadata.xml 329 BLAKE2B bcb35c37e05c93388a83ec235e25d38fb4a37ecb7df64c38a00e6bc7959090297f2c0168d1d461b24a43d0991184f62690de6d483a1d610bc74810238181593d SHA512 2439299362958450ac88f39ba8332cb84d42694d471f79cf8a6b9d38ecc96fa629b91530dee7c50aa23fab5e5a0155cb92cb3a8131a1b69e9375f114da86b463
diff --git a/games-arcade/lbreakout/lbreakout-010315-r1.ebuild b/games-arcade/lbreakout/lbreakout-010315-r1.ebuild
index 4a465d929cfc..a00036389b17 100644
--- a/games-arcade/lbreakout/lbreakout-010315-r1.ebuild
+++ b/games-arcade/lbreakout/lbreakout-010315-r1.ebuild
@@ -1,30 +1,44 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
+EAPI=8
+
+inherit desktop toolchain-funcs
DESCRIPTION="Breakout clone written with the SDL library"
HOMEPAGE="http://lgames.sourceforge.net/LBreakout/"
SRC_URI="mirror://sourceforge/lgames/${P}.tar.gz"
-LICENSE="GPL-2"
+LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE=""
-DEPEND=">=media-libs/libsdl-1.1.5"
-RDEPEND="${DEPEND}"
+RDEPEND="
+ acct-group/gamestat
+ media-libs/libsdl[sound,video]"
+DEPEND="${RDEPEND}"
+
+HTML_DOCS=( lbreakout/manual/. )
src_prepare() {
default
- sed -i \
- -e '/^sdir=/s:$datadir/games:$datadir:' \
- -e '/^hdir=/s:/var/lib/games:$localstatedir:' \
- configure \
- || die "sed failed"
+
+ # remove /games from datadir, and use /var/games for highscore file
+ sed -e '/^sdir=/s|/games.*||;' \
+ -e "/^hdir=/s|=.*|=${EPREFIX}/var/games|" \
+ -i configure || die
+
+ tc-export CC CXX
}
src_install() {
- HTML_DOCS="lbreakout/manual/*"
+ dodir /var/games #655000
+
default
+
+ fowners :gamestat /usr/bin/${PN} /var/games/${PN}.hscr
+ fperms g+s /usr/bin/${PN}
+ fperms 660 /var/games/${PN}.hscr
+
+ make_desktop_entry ${PN} LBreakout applications-games
}