Skip to content

Commit

Permalink
games-puzzle/einstein: Bump to EAPI 8, cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Michał Górny <[email protected]>
  • Loading branch information
mgorny committed Jul 29, 2024
1 parent d14233d commit 109b0dd
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
1 change: 1 addition & 0 deletions games-puzzle/einstein/Manifest
Original file line number Diff line number Diff line change
@@ -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
47 changes: 47 additions & 0 deletions games-puzzle/einstein/einstein-2.1.1-r1.ebuild
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit 109b0dd

Please sign in to comment.