blob: 29b89e829a39efe939a6fa4a008cbb4be716782c (
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
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit cmake
COMMIT=045774dee7cab1a618a3e0d9b39bff78a12b6efa
DESCRIPTION="A suite of programs to modify openttd/Transport Tycoon Deluxe's GRF files"
HOMEPAGE="https://dev.openttdcoop.org/projects/grfcodec"
SRC_URI="https://github.com/OpenTTD/grfcodec/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
IUSE=""
RDEPEND="media-libs/libpng:0"
DEPEND="
${RDEPEND}
dev-lang/perl
dev-libs/boost
"
S="${WORKDIR}/grfcodec-${COMMIT}"
src_configure() {
local mycmakeargs=(
# Make sure we don't use git by accident.
# Build system does not care much if it's
# executed successfully and populates
# YEARS / VERSION with empty values.
-DGIT_EXECUTABLE=/bin/do-not-use-git-executable
)
cmake_src_configure
}
src_install() {
dobin "${BUILD_DIR}"/{grfcodec,grfid,grfstrip,nforenum}
doman docs/*.1
dodoc changelog.txt docs/*.txt
}
|