public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Pacho Ramos" <pacho@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: games-board/freedoko/
Date: Sun, 11 Nov 2018 13:07:57 +0000 (UTC)	[thread overview]
Message-ID: <1541941644.6f56b68469297c47d00cdc2f412d8c659bd67cc3.pacho@gentoo> (raw)

commit:     6f56b68469297c47d00cdc2f412d8c659bd67cc3
Author:     Pacho Ramos <pacho <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 11 12:12:58 2018 +0000
Commit:     Pacho Ramos <pacho <AT> gentoo <DOT> 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 <pacho <AT> 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
+}


             reply	other threads:[~2018-11-11 13:08 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-11 13:07 Pacho Ramos [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-03-22  5:33 [gentoo-commits] repo/gentoo:master commit in: games-board/freedoko/ Sam James
2024-03-22  5:33 Sam James
2021-06-15 20:02 Ionen Wolkens
2021-06-15 20:02 Ionen Wolkens
2021-06-15 20:02 Ionen Wolkens
2016-09-07 23:29 Austin English
2016-01-06 16:40 Michael Sterrett
2016-01-03 11:54 Agostino Sarubbo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1541941644.6f56b68469297c47d00cdc2f412d8c659bd67cc3.pacho@gentoo \
    --to=pacho@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox