diff options
Diffstat (limited to 'games-puzzle/einstein')
-rw-r--r-- | games-puzzle/einstein/Manifest | 1 | ||||
-rw-r--r-- | games-puzzle/einstein/einstein-2.1.1.ebuild | 40 | ||||
-rw-r--r-- | games-puzzle/einstein/files/einstein-2.0-as-needed.patch | 4 |
3 files changed, 43 insertions, 2 deletions
diff --git a/games-puzzle/einstein/Manifest b/games-puzzle/einstein/Manifest index 04d9be4d3acc..41d7c0065b27 100644 --- a/games-puzzle/einstein/Manifest +++ b/games-puzzle/einstein/Manifest @@ -1,2 +1,3 @@ DIST einstein-2.0-src.tar.gz 722301 BLAKE2B 3cb857bbbbfe9d3dab763d461dfe0c91ed204ac2e080a6d546e35cb869da05a8735900bd1db071074628b11f77e675bc21a811a79079587c6388b58ba401dcd1 SHA512 45599546f2f7fce32f7441cfdae88b72297f4a506d9eb98a64c3b24ec2e2fd86a63d59961a21e017df6a7a676d864ad12598d735f9049adf43cddd91d661f619 DIST einstein.png 932 BLAKE2B 13ecf24e5600bf39bbaec662afda5b4fdba2c5adf4560e8f08996b2e6c475002857187be2dac2d2c898cdb63854cc7ea1748b6b1d34a67adcc2f4789aafd5c25 SHA512 9e19d351e915509a11d7275ef0ea7e246d0d334933ec4b48ea0f56aa552ac69041a5c2a64075b02ec3601b1c2b8307cef314c9427ab7615b16e689faaa074283 +DIST v2.1.1.tar.gz 1317979 BLAKE2B 7924774c2d540ecd7cbecb344907d20ab9514219407a02852bbd80bbb9d1d27bac14654a1553dbe30e8f0fd79e08f12338a4e43dfc3c06bfb433fb3a46330a64 SHA512 e34e8e0ef47c311d7417c42ba306b9e9cf94d1fd1829b3948d791543d1fb5f8f1d8d975154bab2559691cf3b94574d5485f8541882d59dd0b6284ff76e435cf3 diff --git a/games-puzzle/einstein/einstein-2.1.1.ebuild b/games-puzzle/einstein/einstein-2.1.1.ebuild new file mode 100644 index 000000000000..0489b66bdf2c --- /dev/null +++ b/games-puzzle/einstein/einstein-2.1.1.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit desktop + +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 + mirror://gentoo/${PN}.png" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="media-libs/libsdl[sound,video] + media-libs/sdl-mixer + media-libs/sdl-ttf" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${PN}-puzzle-${PV}" + +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 "${PN}" + insinto "/usr/share/${PN}/res" + doins einstein.res + doicon "${DISTDIR}"/${PN}.png + make_desktop_entry ${PN} "Einstein Puzzle" + einstalldocs +} diff --git a/games-puzzle/einstein/files/einstein-2.0-as-needed.patch b/games-puzzle/einstein/files/einstein-2.0-as-needed.patch index fe870bf036e7..3edb666ad690 100644 --- a/games-puzzle/einstein/files/einstein-2.0-as-needed.patch +++ b/games-puzzle/einstein/files/einstein-2.0-as-needed.patch @@ -1,5 +1,5 @@ ---- Makefile.old 2009-02-09 16:37:58.000000000 +0100 -+++ Makefile 2009-02-09 16:38:13.000000000 +0100 +--- a/Makefile.old 2009-02-09 16:37:58.000000000 +0100 ++++ b/Makefile 2009-02-09 16:38:13.000000000 +0100 @@ -49,7 +49,7 @@ |