From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9ACA3138334 for ; Sun, 11 Nov 2018 13:08:04 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4ECDBE0DF7; Sun, 11 Nov 2018 13:08:02 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1600DE0DF7 for ; Sun, 11 Nov 2018 13:08:02 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8C05D335D06 for ; Sun, 11 Nov 2018 13:08:00 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B655446A for ; Sun, 11 Nov 2018 13:07:57 +0000 (UTC) From: "Pacho Ramos" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Pacho Ramos" Message-ID: <1541941644.6f56b68469297c47d00cdc2f412d8c659bd67cc3.pacho@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: games-board/freedoko/ X-VCS-Repository: repo/gentoo X-VCS-Files: games-board/freedoko/freedoko-0.7.16-r1.ebuild X-VCS-Directories: games-board/freedoko/ X-VCS-Committer: pacho X-VCS-Committer-Name: Pacho Ramos X-VCS-Revision: 6f56b68469297c47d00cdc2f412d8c659bd67cc3 X-VCS-Branch: master Date: Sun, 11 Nov 2018 13:07:57 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 2493b609-02a5-4e1b-a48d-9f97ac51e889 X-Archives-Hash: 0a0f5f9aab0f3e712a7eb386f5b98875 commit: 6f56b68469297c47d00cdc2f412d8c659bd67cc3 Author: Pacho Ramos gentoo org> AuthorDate: Sun Nov 11 12:12:58 2018 +0000 Commit: Pacho Ramos gentoo org> CommitDate: Sun Nov 11 13:07:24 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6f56b684 games-board/freedoko: Disable optional gnet support As gnet is dead for years and has no security audits: https://wiki.gnome.org/Projects/GNetLibrary Signed-off-by: Pacho Ramos gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11 games-board/freedoko/freedoko-0.7.16-r1.ebuild | 99 ++++++++++++++++++++++++++ 1 file changed, 99 insertions(+) diff --git a/games-board/freedoko/freedoko-0.7.16-r1.ebuild b/games-board/freedoko/freedoko-0.7.16-r1.ebuild new file mode 100644 index 00000000000..2776366c552 --- /dev/null +++ b/games-board/freedoko/freedoko-0.7.16-r1.ebuild @@ -0,0 +1,99 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +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 ~x86" +IUSE="+xskatcards +gnomecards +kdecards +openclipartcards +pysolcards +backgrounds" + +RDEPEND=">=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}"/${PN}-0.7.16-gentoo.patch +) + +src_prepare() { + default + export VARTEXFONTS="${T}/fonts" #652028 + append-cxxflags -std=c++14 +} + +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=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 +}