forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
games-simulation/lincity: EAPI6->8, fix prefix, add icon
* Strip part of the patch that was formerly intended for games.eclass but now only broke prefix * Update DESCRIPTION to reflect svgalib isn't supported * Remove not-really-used libSM dependency * Use xlincity.6 man page name to match installed binary Signed-off-by: Ionen Wolkens <[email protected]>
- Loading branch information
Showing
4 changed files
with
71 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
DIST lincity-1.13.1.tar.gz 1064236 BLAKE2B 1172ced3255048f3132f85cd9ae994c7e0558170f7e7a24909af1856669c4ad90d57acd76f330fb556656ed74843dda159005350760fc059c6b184cedf1e9393 SHA512 bc4ee7a1642b1efa25f9edaabd3aeb52d1ca1d016735c5094586f52fda3ec4e9080ff35fe518c1ccbfad9fd54babb370f4b9b6a158b4d2f43b7182155084eefc | ||
DIST lincity.png 5377 BLAKE2B 2238140719a8c1b094fbe6d7b52b9224245f2c36f970e04aa3fcaf6090409145f17dad2c2a83f6528e695fd9d26d9c053c45978502b7e44f73cf25719d7ed3aa SHA512 40a8955fdc8397662ef0d084163e7dcad59e278429792bd7096e193a0d04791c2355a0dbd2c1f72a032bbfc71bc4e27e37a3d0d4e82de8e7170bb70205d983a3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# Copyright 1999-2021 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=8 | ||
|
||
inherit desktop flag-o-matic | ||
|
||
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() { | ||
append-cflags -std=gnu89 # build with gcc5 (bug #570574) | ||
|
||
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^} | ||
} |