blob: c67386702def2eb8b85484f1df281b5bc0ee02ff (
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
57
58
59
60
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit desktop
DESCRIPTION="City simulation game for X"
HOMEPAGE="http://lincity.sourceforge.net/"
SRC_URI="
mirror://sourceforge/lincity/${P}.tar.gz
https://dev.gentoo.org/~ionen/distfiles/${PN}.png"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RDEPEND="
media-libs/libpng:=
virtual/libintl
x11-libs/libXext"
DEPEND="
${RDEPEND}
x11-base/xorg-proto"
BDEPEND="sys-devel/gettext"
PATCHES=(
"${FILESDIR}"/${P}-build.patch
"${FILESDIR}"/${P}-gcc-10.patch
)
src_configure() {
local econfargs=(
--with-gzip
--with-x
--without-svga
ac_cv_lib_ICE_IceConnectionNumber=no # not actually used
)
econf "${econfargs[@]}"
}
src_compile() {
emake
emake X_PROGS
}
src_install() {
default
dobin x${PN}
newman {,x}${PN}.6
rm "${ED}"/usr/share/man/man6/${PN}.6
dodoc Acknowledgements
doicon "${DISTDIR}"/${PN}.png
make_desktop_entry x${PN} ${PN^}
}
|