Skip to content

Commit

Permalink
games-simulation/lincity-ng: bump version to 2.9_beta; EAPI=7
Browse files Browse the repository at this point in the history
Drop games eclass; update homepage, SRC_URI and licenses; fix prefixed
install; some minor and stylistic changes.

Closes: https://bugs.gentoo.org/604618
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Stefan Strogin <[email protected]>
Closes: gentoo#11235
Signed-off-by: James Le Cuirot <[email protected]>
  • Loading branch information
steils authored and chewi committed Mar 6, 2019
1 parent cacca88 commit bed5ab3
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
1 change: 1 addition & 0 deletions games-simulation/lincity-ng/Manifest
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
DIST lincity-ng-2.0.tar.bz2 39475719 BLAKE2B 39992e6a2ef78e53eea1b0e347c968f6828089b5267e6d62dac7405ea91b182335431b1718ef9892b649b1437751959deb9fa407dfd899fd1dfca55145d059f2 SHA512 d85cd398145d1591f8640458c076f2a0b55713c39ede28b67d99adc7b76d38f09b58cd2ec84d9acac11bbaa794f6d97f6200f54efcdd4286315e6b3133284c55
DIST lincity-ng-2.9_beta.tar.gz 115799513 BLAKE2B 038c69172af9a62b35199823ef56200e170a8eafef2849bc6d8797bbc20ffa01656d05b1ba0725d4d33e217602f6695d3bdf2774b90b85c6e257e13e019bebcb SHA512 194b7389d7172b7987eda14cbbf2dd91aa503af36db9cf3bdf07ab6ae5e0068ac00988fec6068d65da6bdf14dee623bba57a58192e2a9659e741a7c9036e6d65
50 changes: 50 additions & 0 deletions games-simulation/lincity-ng/lincity-ng-2.9_beta.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit multiprocessing

DESCRIPTION="City simulation game"
HOMEPAGE="https://github.com/lincity-ng/lincity-ng"
SRC_URI="https://github.com/lincity-ng/lincity-ng/archive/lincity-ng-${PV/_/-}.tar.gz -> ${P}.tar.gz"

LICENSE="GPL-2 BitstreamVera CC-BY-SA-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

RDEPEND="dev-games/physfs
dev-libs/libxml2:2
media-libs/libsdl[sound,joystick,opengl,video]
media-libs/sdl-gfx
media-libs/sdl-image[png]
media-libs/sdl-mixer[vorbis]
media-libs/sdl-ttf
sys-libs/zlib
virtual/opengl"
DEPEND="${RDEPEND}"
BDEPEND="dev-util/ftjam
virtual/pkgconfig"

S="${WORKDIR}/${PN}-${P/_/-}"

src_prepare() {
default
sed -i "/COPYING COPYING-data.txt COPYING-fonts.txt CREDITS /d" \
Jamfile || die
./autogen.sh || die
}

src_compile() {
jam -q -dx -j $(makeopts_jobs) || die "jam failed"
}

src_install() {
jam -sDESTDIR="${D}" \
-sappdocdir="${EPREFIX}/usr/share/doc/${PF}" \
-sapplicationsdir="${EPREFIX}/usr/share/applications" \
-spixmapsdir="${EPREFIX}/usr/share/pixmaps" \
install \
|| die "jam install failed"
}

0 comments on commit bed5ab3

Please sign in to comment.