summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2020-06-21 21:59:10 +0200
committerDavid Seifert <soap@gentoo.org>2020-06-21 21:59:10 +0200
commit6e9895992e492799647d700ba967ff6ff810c612 (patch)
tree783879aed13e39cd804ee45966552f6a78f73a73 /games-puzzle/anagramarama/anagramarama-0.2-r1.ebuild
parentgames-roguelike/wrogue: [QA] Pass CC to build system (diff)
downloadgentoo-6e9895992e492799647d700ba967ff6ff810c612.tar.gz
gentoo-6e9895992e492799647d700ba967ff6ff810c612.tar.bz2
gentoo-6e9895992e492799647d700ba967ff6ff810c612.zip
games-puzzle/anagramarama: [QA] Pass CC to build system
Closes: https://bugs.gentoo.org/724718 Package-Manager: Portage-2.3.101, Repoman-2.3.22 Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'games-puzzle/anagramarama/anagramarama-0.2-r1.ebuild')
-rw-r--r--games-puzzle/anagramarama/anagramarama-0.2-r1.ebuild34
1 files changed, 20 insertions, 14 deletions
diff --git a/games-puzzle/anagramarama/anagramarama-0.2-r1.ebuild b/games-puzzle/anagramarama/anagramarama-0.2-r1.ebuild
index 4e1bc1d0b0b..2fb8281f620 100644
--- a/games-puzzle/anagramarama/anagramarama-0.2-r1.ebuild
+++ b/games-puzzle/anagramarama/anagramarama-0.2-r1.ebuild
@@ -1,8 +1,9 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
-inherit desktop vcs-clean
+EAPI=7
+
+inherit desktop toolchain-funcs vcs-clean
DESCRIPTION="Create as many words as you can before the time runs out"
HOMEPAGE="http://www.coralquest.com/anagramarama/"
@@ -11,34 +12,39 @@ SRC_URI="http://www.omega.clara.net/anagramarama/dist/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE=""
-DEPEND=">=media-libs/libsdl-1.2
+DEPEND="
+ >=media-libs/libsdl-1.2
>=media-libs/sdl-mixer-1.2
>=media-libs/sdl-image-1.2"
RDEPEND="${DEPEND}
- sys-apps/miscfiles
-"
+ sys-apps/miscfiles"
+BDEPEND="virtual/pkgconfig"
S="${WORKDIR}/${PN}"
+PATCHES=(
+ "${FILESDIR}"/${P}-fhs.patch
+ "${FILESDIR}"/${P}-gentoo.patch
+)
+
src_prepare() {
default
ecvs_clean
- sed -i \
- -e "s:wordlist.txt:/usr/share/${PN}/wordlist.txt:" \
- -e "s:audio/:/usr/share/${PN}/audio/:" \
- -e "s:images/:/usr/share/${PN}/images/:" \
- src/{ag.c,dlb.c} \
- || die "sed failed"
- eapply "${FILESDIR}"/${P}-gentoo.patch
+}
+
+src_configure() {
+ tc-export CC PKG_CONFIG
}
src_install() {
newbin ag ${PN}
+
insinto "/usr/share/${PN}"
doins wordlist.txt
doins -r images/ audio/
+
dodoc readme
+
make_desktop_entry ${PN} "Anagramarama"
}