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-arcade/cavezofphear: port to EAPI 7, games.eclass--, respect PK…
…G_CONFIG Signed-off-by: Sam James <[email protected]>
- Loading branch information
1 parent
c3f20e5
commit c3a75de
Showing
2 changed files
with
27 additions
and
21 deletions.
There are no files selected for viewing
36 changes: 22 additions & 14 deletions
36
...de/cavezofphear/cavezofphear-0.5.1.ebuild → ...cavezofphear/cavezofphear-0.5.1-r1.ebuild
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,36 +1,44 @@ | ||
# Copyright 1999-2020 Gentoo Authors | ||
# Copyright 1999-2021 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=5 | ||
inherit eutils games | ||
EAPI=7 | ||
|
||
inherit toolchain-funcs | ||
|
||
DESCRIPTION="A boulder dash / digger-like game for console using ncurses" | ||
HOMEPAGE="http://www.x86.no/cavezofphear/" | ||
SRC_URI="mirror://gentoo/phear-${PV}.tar.bz2" | ||
S="${WORKDIR}"/${P/cavezof/} | ||
|
||
LICENSE="GPL-3" | ||
SLOT="0" | ||
KEYWORDS="~amd64 ~ppc64 ~x86" | ||
IUSE="" | ||
|
||
RDEPEND=">=sys-libs/ncurses-5:0" | ||
DEPEND="${RDEPEND} | ||
virtual/pkgconfig" | ||
RDEPEND=">=sys-libs/ncurses-5:0=" | ||
DEPEND="${RDEPEND}" | ||
BDEPEND="virtual/pkgconfig" | ||
|
||
S=${WORKDIR}/${P/cavezof/} | ||
PATCHES=( | ||
"${FILESDIR}"/${P}-gentoo.patch | ||
"${FILESDIR}"/${P}-no-common.patch | ||
) | ||
|
||
src_prepare() { | ||
epatch "${FILESDIR}"/${P}-gentoo.patch | ||
epatch "${FILESDIR}"/${P}-no-common.patch | ||
default | ||
|
||
sed -i \ | ||
-e "s:get_data_dir(.):\"${GAMES_DATADIR}/${PN}/\":" \ | ||
-e "s:get_data_dir(.):\"/usr/share/${PN}/\":" \ | ||
src/{chk.c,main.c,gplot.c} \ | ||
|| die | ||
} | ||
|
||
src_configure() { | ||
tc-export CC PKG_CONFIG | ||
} | ||
|
||
src_install() { | ||
dogamesbin src/phear | ||
insinto "${GAMES_DATADIR}"/${PN} | ||
dobin src/phear | ||
insinto /usr/share/${PN} | ||
doins -r data/* | ||
dodoc ChangeLog README* TODO | ||
prepgamesdirs | ||
} |
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