summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2020-11-01 16:20:38 +0000
committerJames Le Cuirot <chewi@gentoo.org>2020-11-01 16:20:38 +0000
commit2e2d1f905500525a80c304a0a45b3ded7ee78d20 (patch)
treed12b58d208c8d2da9a5510701094d92eb53c0ea1 /games-engines/dMagnetic/dMagnetic-0.27.ebuild
parentmedia-libs/libvpx: disable stripping for static libraries (diff)
downloadgentoo-2e2d1f905500525a80c304a0a45b3ded7ee78d20.tar.gz
gentoo-2e2d1f905500525a80c304a0a45b3ded7ee78d20.tar.bz2
gentoo-2e2d1f905500525a80c304a0a45b3ded7ee78d20.zip
games-engines/dMagnetic: Bump to 0.27, drop old 0.25
0.26 was broken. Package-Manager: Portage-3.0.8, Repoman-3.0.1 Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'games-engines/dMagnetic/dMagnetic-0.27.ebuild')
-rw-r--r--games-engines/dMagnetic/dMagnetic-0.27.ebuild41
1 files changed, 41 insertions, 0 deletions
diff --git a/games-engines/dMagnetic/dMagnetic-0.27.ebuild b/games-engines/dMagnetic/dMagnetic-0.27.ebuild
new file mode 100644
index 00000000000..367e1726f45
--- /dev/null
+++ b/games-engines/dMagnetic/dMagnetic-0.27.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit prefix toolchain-funcs
+
+MY_P="${PN}_${PV}"
+DESCRIPTION="A Magnetic Scrolls Interpreter for playing a collection of old text adventures"
+HOMEPAGE="https://www.dettus.net/dMagnetic/"
+SRC_URI="https://www.dettus.net/${PN}/${MY_P}.tar.bz2"
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~m68k ~x86"
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ default
+ hprefixify ${PN}.ini src/toplevel/${PN}.c
+}
+
+src_compile() {
+ emake ${PN} \
+ CC="$(tc-getCC)" \
+ LINK="$(tc-getCC) ${LDFLAGS}"
+}
+
+src_test() {
+ emake check \
+ SHA256_CMD=sha256sum
+}
+
+src_install() {
+ dobin ${PN}
+ doman ${PN}.1 ${PN}ini.5
+ dodoc README.txt
+
+ insinto /etc
+ doins ${PN}.ini
+}