blob: 01efdab6239f0d9c5fa937612ab792e8959a3b15 (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit toolchain-funcs
DL_PV=2.36
DESCRIPTION="Converter for dat files for Rom Managers"
HOMEPAGE="http://www.logiqx.com/Tools/DatUtil/"
SRC_URI="http://www.logiqx.com/Tools/DatUtil/dutil${PV//.}.zip
http://www.logiqx.com/Tools/DatLib/datlib${DL_PV//.}.zip"
S="${WORKDIR}"
LICENSE="all-rights-reserved"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RESTRICT="mirror bindist"
BDEPEND="app-arch/unzip"
src_unpack() {
unpack dutil${PV//.}.zip
cd "${S}" || die
mkdir -p dev/datlib || die
cd dev/datlib || die
unpack datlib${DL_PV//.}.zip
}
src_compile() {
# Parallel make issue, see bug #244879 (so make the dirs first)
emake -j1 \
CC="$(tc-getCC)" \
LD="$(tc-getCC) ${CFLAGS} ${LDFLAGS}" \
CFLAGS="${CFLAGS} -Idev" \
LOGIQX=. \
EXT= \
UPX=@# \
dlmaketree maketree || die "emake failed"
emake \
CC="$(tc-getCC)" \
LD="$(tc-getCC) ${CFLAGS} ${LDFLAGS}" \
CFLAGS="${CFLAGS} -Idev" \
LOGIQX=. \
EXT= \
UPX=@# \
|| die "emake failed"
}
src_install() {
dobin datutil
dodoc readme.txt whatsnew.txt
}
|