diff options
author | Austin English <wizardedit@gentoo.org> | 2016-09-07 17:39:45 -0500 |
---|---|---|
committer | Austin English <wizardedit@gentoo.org> | 2016-09-07 18:28:55 -0500 |
commit | 0105d0211a8e56f9b900966832b16f262bc50ecc (patch) | |
tree | 809b1711c7ce824ecd48f8874ccfdf25e7bf69e8 /games-board | |
parent | dev-ruby/afm: Add ruby23 (diff) | |
download | gentoo-0105d0211a8e56f9b900966832b16f262bc50ecc.tar.gz gentoo-0105d0211a8e56f9b900966832b16f262bc50ecc.tar.bz2 gentoo-0105d0211a8e56f9b900966832b16f262bc50ecc.zip |
games-board/freedoko: remove deprecated games eclass
Also update to EAPI 6
Gentoo-Bug: https://bugs.gentoo.org/574082
Package-Manager: portage-2.3.0
Diffstat (limited to 'games-board')
-rw-r--r-- | games-board/freedoko/freedoko-0.7.14-r1.ebuild | 101 |
1 files changed, 101 insertions, 0 deletions
diff --git a/games-board/freedoko/freedoko-0.7.14-r1.ebuild b/games-board/freedoko/freedoko-0.7.14-r1.ebuild new file mode 100644 index 000000000000..8ff6330d0567 --- /dev/null +++ b/games-board/freedoko/freedoko-0.7.14-r1.ebuild @@ -0,0 +1,101 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 +inherit eutils flag-o-matic gnome2-utils + +DESCRIPTION="FreeDoko is a Doppelkopf-game" +HOMEPAGE="http://free-doko.sourceforge.net" +SRC_URI="mirror://sourceforge/free-doko/FreeDoko_${PV}.src.zip + backgrounds? ( mirror://sourceforge/free-doko/backgrounds.zip -> ${PN}-backgrounds.zip ) + kdecards? ( mirror://sourceforge/free-doko/kdecarddecks.zip ) + xskatcards? ( mirror://sourceforge/free-doko/xskat.zip ) + pysolcards? ( mirror://sourceforge/free-doko/pysol.zip ) + gnomecards? ( mirror://sourceforge/free-doko/gnome-games.zip ) + openclipartcards? ( mirror://sourceforge/free-doko/openclipart.zip ) + !xskatcards? ( + !kdecards? ( + !gnomecards? ( + !openclipartcards? ( + !pysolcards? ( + mirror://sourceforge/free-doko/xskat.zip ) ) ) ) )" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="+xskatcards +gnomecards +kdecards +openclipartcards +pysolcards +backgrounds net" + +RDEPEND="net? ( net-libs/gnet dev-libs/glib:2 ) + >=dev-cpp/gtkmm-2.4:2.4" +DEPEND="${RDEPEND} + app-arch/unzip + virtual/pkgconfig" + +S=${WORKDIR}/FreeDoko_${PV} + +src_unpack() { + local cards=0 + + unpack_cards() { + use $1 && { unpack $2 ; cards=$(( $cards + 1 )); }; + } + unpack FreeDoko_${PV}.src.zip + cp /dev/null "${S}"/src/Makefile.local || die + + cd "${S}"/data/cardsets || die + + unpack_cards xskatcards xskat.zip + unpack_cards kdecards kdecarddecks.zip + unpack_cards pysolcards pysol.zip + unpack_cards gnomecards gnome-games.zip + unpack_cards openclipartcards openclipart.zip + [ $cards ] || unpack xskat.zip # fall back to xskat + + if use backgrounds ; then + cd "${S}"/data/backgrounds || die + unpack ${PN}-backgrounds.zip + fi +} + +PATCHES=( + "${FILESDIR}"/${P}-gentoo.patch +) + +src_prepare() { + default + + append-cxxflags -std=c++11 +} + +src_compile() { + export CPPFLAGS="-DPUBLIC_DATA_DIRECTORY_VALUE='\"/usr/share/${PN}\"'" + export CPPFLAGS+=" -DMANUAL_DIRECTORY_VALUE='\"/usr/share/doc/${PF}/html\"'" + export OSTYPE=Linux + export USE_NETWORK=$(use net && echo true || echo false) + export USE_SOUND_ALUT=false # still marked experimental + emake Version + emake -C src FreeDoko +} + +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 +} + +pkg_postrm() { + gnome2_icon_cache_update +} |