summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Mair-Keimberger <mmk@levelnine.at>2021-06-09 19:51:59 +0200
committerIonen Wolkens <ionen@gentoo.org>2021-06-15 16:00:19 -0400
commit8ea66e4defe9d2b9737e8100ffa517192e9489c2 (patch)
treef52b1e3db5e520f2584a65b1ec82c29f66d67492 /games-board/freedoko
parentgames-board/ccgo: EAPI bump, remove unused eclass (diff)
downloadgentoo-8ea66e4defe9d2b9737e8100ffa517192e9489c2.tar.gz
gentoo-8ea66e4defe9d2b9737e8100ffa517192e9489c2.tar.bz2
gentoo-8ea66e4defe9d2b9737e8100ffa517192e9489c2.zip
games-board/freedoko: EAPI bump, fix dependencies and bugs
Package-Manager: Portage-3.0.19, Repoman-3.0.3 Signed-off-by: Michael Mair-Keimberger <mmk@levelnine.at> Closes: https://bugs.gentoo.org/655758 Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'games-board/freedoko')
-rw-r--r--games-board/freedoko/freedoko-0.7.16-r1.ebuild47
1 files changed, 20 insertions, 27 deletions
diff --git a/games-board/freedoko/freedoko-0.7.16-r1.ebuild b/games-board/freedoko/freedoko-0.7.16-r1.ebuild
index 2776366c552c..3b960d8b53ee 100644
--- a/games-board/freedoko/freedoko-0.7.16-r1.ebuild
+++ b/games-board/freedoko/freedoko-0.7.16-r1.ebuild
@@ -1,8 +1,9 @@
-# Copyright 1999-2018 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
-inherit eutils flag-o-matic gnome2-utils
+EAPI=7
+
+inherit desktop flag-o-matic toolchain-funcs xdg
DESCRIPTION="FreeDoko is a Doppelkopf-game"
HOMEPAGE="http://free-doko.sourceforge.net"
@@ -25,12 +26,13 @@ SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+xskatcards +gnomecards +kdecards +openclipartcards +pysolcards +backgrounds"
-RDEPEND=">=dev-cpp/gtkmm-2.4:2.4"
-DEPEND="${RDEPEND}
- app-arch/unzip
+RDEPEND="dev-cpp/gtkmm:3.0
+ media-libs/openal"
+DEPEND="${RDEPEND}"
+BDEPEND="app-arch/unzip
virtual/pkgconfig"
-S=${WORKDIR}/FreeDoko_${PV}
+S="${WORKDIR}/FreeDoko_${PV}"
src_unpack() {
local cards=0
@@ -60,40 +62,31 @@ PATCHES=(
"${FILESDIR}"/${PN}-0.7.16-gentoo.patch
)
-src_prepare() {
- default
- export VARTEXFONTS="${T}/fonts" #652028
+src_compile() {
+ tc-export CXX
append-cxxflags -std=c++14
-}
+ append-cppflags -DPUBLIC_DATA_DIRECTORY_VALUE="'\"${EPREFIX}/usr/share/${PN}\"'" \
+ -DMANUAL_DIRECTORY_VALUE="'\"${EPREFIX}/usr/share/doc/${PF}/html\"'"
-src_compile() {
- export CPPFLAGS="-DPUBLIC_DATA_DIRECTORY_VALUE='\"/usr/share/${PN}\"'"
- export CPPFLAGS+=" -DMANUAL_DIRECTORY_VALUE='\"/usr/share/doc/${PF}/html\"'"
+ export VARTEXFONTS="${T}/fonts" #652028
export OSTYPE=Linux
export USE_NETWORK=false
export USE_SOUND_ALUT=false # still marked experimental
+
emake Version
- emake -C src FreeDoko
+ emake -C src FreeDoko LIBS="${LDFLAGS}"
}
src_install() {
newbin src/FreeDoko freedoko
+
insinto /usr/share/${PN}/
doins -r data/{backgrounds,cardsets,iconsets,rules,sounds,translations,*png}
- find "${D}/usr/share/${PN}" -name Makefile -delete
- dodoc AUTHORS README ChangeLog
+
newicon -s 32 src/FreeDoko.png ${PN}.png
make_desktop_entry ${PN} FreeDoko
-}
-pkg_preinst() {
- gnome2_icon_savelist
-}
-
-pkg_postinst() {
- gnome2_icon_cache_update
-}
+ einstalldocs
-pkg_postrm() {
- gnome2_icon_cache_update
+ find "${ED}/usr/share/${PN}" -name Makefile -delete || die
}