summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2024-07-29 19:09:53 +0200
committerMichał Górny <mgorny@gentoo.org>2024-07-29 20:37:51 +0200
commit109b0dd4d8c2881be1ad8d2148500ee47411b40c (patch)
treee771c26ea4eb651ab33729f8f9613ed2de67569c /games-puzzle/einstein
parentnet-libs/gnutls-3.8.6-r1: adapt Solaris fix, deal with alloca (diff)
downloadgentoo-109b0dd4d8c2881be1ad8d2148500ee47411b40c.tar.gz
gentoo-109b0dd4d8c2881be1ad8d2148500ee47411b40c.tar.bz2
gentoo-109b0dd4d8c2881be1ad8d2148500ee47411b40c.zip
games-puzzle/einstein: Bump to EAPI 8, cleanup
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'games-puzzle/einstein')
-rw-r--r--games-puzzle/einstein/Manifest1
-rw-r--r--games-puzzle/einstein/einstein-2.1.1-r1.ebuild47
2 files changed, 48 insertions, 0 deletions
diff --git a/games-puzzle/einstein/Manifest b/games-puzzle/einstein/Manifest
index 1ac631972e4e..87eeff114389 100644
--- a/games-puzzle/einstein/Manifest
+++ b/games-puzzle/einstein/Manifest
@@ -1,2 +1,3 @@
DIST einstein-2.1.1.tar.gz 1317979 BLAKE2B 7924774c2d540ecd7cbecb344907d20ab9514219407a02852bbd80bbb9d1d27bac14654a1553dbe30e8f0fd79e08f12338a4e43dfc3c06bfb433fb3a46330a64 SHA512 e34e8e0ef47c311d7417c42ba306b9e9cf94d1fd1829b3948d791543d1fb5f8f1d8d975154bab2559691cf3b94574d5485f8541882d59dd0b6284ff76e435cf3
+DIST einstein-puzzle-2.1.1.tar.gz 1317979 BLAKE2B 7924774c2d540ecd7cbecb344907d20ab9514219407a02852bbd80bbb9d1d27bac14654a1553dbe30e8f0fd79e08f12338a4e43dfc3c06bfb433fb3a46330a64 SHA512 e34e8e0ef47c311d7417c42ba306b9e9cf94d1fd1829b3948d791543d1fb5f8f1d8d975154bab2559691cf3b94574d5485f8541882d59dd0b6284ff76e435cf3
DIST einstein.png 932 BLAKE2B 13ecf24e5600bf39bbaec662afda5b4fdba2c5adf4560e8f08996b2e6c475002857187be2dac2d2c898cdb63854cc7ea1748b6b1d34a67adcc2f4789aafd5c25 SHA512 9e19d351e915509a11d7275ef0ea7e246d0d334933ec4b48ea0f56aa552ac69041a5c2a64075b02ec3601b1c2b8307cef314c9427ab7615b16e689faaa074283
diff --git a/games-puzzle/einstein/einstein-2.1.1-r1.ebuild b/games-puzzle/einstein/einstein-2.1.1-r1.ebuild
new file mode 100644
index 000000000000..e4d68b289902
--- /dev/null
+++ b/games-puzzle/einstein/einstein-2.1.1-r1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit desktop
+
+MY_P=einstein-puzzle-${PV}
+DESCRIPTION="A puzzle game inspired by Albert Einstein"
+HOMEPAGE="https://github.com/lksj/einstein-puzzle/"
+SRC_URI="
+ https://github.com/lksj/einstein-puzzle/archive/v${PV}.tar.gz
+ -> ${MY_P}.tar.gz
+ https://dev.gentoo.org/~mgorny/dist/einstein.png
+"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="
+ media-libs/libsdl[sound,video]
+ media-libs/sdl-mixer
+ media-libs/sdl-ttf
+"
+RDEPEND="
+ ${DEPEND}
+"
+
+src_prepare() {
+ default
+ eapply "${FILESDIR}"/${PN}-2.0-as-needed.patch
+ sed -i \
+ -e "/PREFIX/s:/usr/local:/usr:" \
+ -e "s/\(OPTIMIZE=[^#]*\)/\0 ${CXXFLAGS}/" Makefile \
+ || die
+}
+
+src_install() {
+ dobin einstein
+ insinto /usr/share/einstein/res
+ doins einstein.res
+ doicon "${DISTDIR}"/einstein.png
+ make_desktop_entry einstein "Einstein Puzzle"
+ einstalldocs
+}