summaryrefslogtreecommitdiff
blob: ca25dbd7690e445ec9d8b1584edeeb5a87df86b4 (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
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit flag-o-matic toolchain-funcs

DESCRIPTION="ACS script compiler for use with ZDoom and Hexen"
HOMEPAGE="https://zdoom.org/wiki/ACC"
SRC_URI="https://github.com/rheit/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="Activision"
SLOT="0"
KEYWORDS="~amd64"

# The Activision EULA is inappropriate but this was never resolved. :(
# https://doomwiki.org/wiki/Raven_source_code_licensing
RESTRICT="bindist mirror"

src_configure() {
	tc-export CC
	append-cflags -Wall -Wextra
}

src_install() {
	dobin ${PN}
	dodoc readme.md

	insinto /usr/share/${PN}
	doins *.acs
}