From a59e4434d1217e32fb0583c97607d4189309f51f Mon Sep 17 00:00:00 2001 From: James Le Cuirot Date: Tue, 12 Nov 2019 22:10:14 +0000 Subject: [PATCH] games-engines/dMagnetic: New package Package-Manager: Portage-2.3.79, Repoman-2.3.17 Signed-off-by: James Le Cuirot --- games-engines/dMagnetic/Manifest | 1 + games-engines/dMagnetic/dMagnetic-0.18.ebuild | 36 +++++++++++++++++++ games-engines/dMagnetic/metadata.xml | 8 +++++ 3 files changed, 45 insertions(+) create mode 100644 games-engines/dMagnetic/Manifest create mode 100644 games-engines/dMagnetic/dMagnetic-0.18.ebuild create mode 100644 games-engines/dMagnetic/metadata.xml diff --git a/games-engines/dMagnetic/Manifest b/games-engines/dMagnetic/Manifest new file mode 100644 index 000000000000..015eb000db16 --- /dev/null +++ b/games-engines/dMagnetic/Manifest @@ -0,0 +1 @@ +DIST dMagnetic_0.18.tar 61210 BLAKE2B 9707ea8e6545b06b998bd8cf979d45088fcbabc64553a2688fcb56b23a7d161e56276718bb73f112a4d6b3a3a6955589fd6e26cfe2bd9604c334b20acc0a74ea SHA512 0703c45f674e2bf1391d9a0c9f1c52b6fd5c6fa329c051281894df53fe1cbe84662c6489a2e10a7d6009c2a31891c3c61bf615ef2706cf98e1f4b760764ef3b5 diff --git a/games-engines/dMagnetic/dMagnetic-0.18.ebuild b/games-engines/dMagnetic/dMagnetic-0.18.ebuild new file mode 100644 index 000000000000..0097d62d0b88 --- /dev/null +++ b/games-engines/dMagnetic/dMagnetic-0.18.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2019 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.gz -> ${MY_P}.tar" +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64" + +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_install() { + dobin ${PN} + doman ${PN}.1 ${PN}ini.5 + dodoc README.txt + + insinto /etc + doins ${PN}.ini +} diff --git a/games-engines/dMagnetic/metadata.xml b/games-engines/dMagnetic/metadata.xml new file mode 100644 index 000000000000..26079e608bed --- /dev/null +++ b/games-engines/dMagnetic/metadata.xml @@ -0,0 +1,8 @@ + + + + + games@gentoo.org + Gentoo Games Project + + -- 2.26.2