summaryrefslogtreecommitdiff
blob: 24ce0397466754f7900b1b00560d4575bd01e755 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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"
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
}