Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

games-simulation/lincity-ng: bump version to 2.9_beta; EAPI=7 #11235

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions games-simulation/lincity-ng/Manifest
@@ -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
@@ -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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't seen exactly what this autogen script does but you should use eautoreconf from autotools eclass if that works instead.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried. Unfortunately eautoreconf does not work here. autogen.sh runs aclocal, autoheader, then generates Jamconfig.in which is needed for configure and then runs autoconf.
Generating Jamconfig.in could be done in src_prepare by hand. But should it?

}

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"
steils marked this conversation as resolved.
Show resolved Hide resolved
}