public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "James Le Cuirot" <chewi@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: games-board/pysolfc/
Date: Mon, 29 Jul 2019 22:24:44 +0000 (UTC)	[thread overview]
Message-ID: <1564439043.bbf38c3cdbeab8173a1b66ff9b75910892a0bebe.chewi@gentoo> (raw)

commit:     bbf38c3cdbeab8173a1b66ff9b75910892a0bebe
Author:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Mon Jul 29 22:18:06 2019 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Mon Jul 29 22:24:03 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bbf38c3c

games-board/pysolfc: Bump to 2.6.4, EAPI 7, fix card sets

Thanks to Scott Furry. This now installs for a single Python version
as multiple versions do not make sense here. I've dropped Python 2 for
simplicity and because it's old.

Closes: https://bugs.gentoo.org/679362
Package-Manager: Portage-2.3.69, Repoman-2.3.13
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>

 games-board/pysolfc/Manifest             |  2 +
 games-board/pysolfc/metadata.xml         |  1 +
 games-board/pysolfc/pysolfc-2.6.4.ebuild | 83 ++++++++++++++++++++++++++++++++
 3 files changed, 86 insertions(+)

diff --git a/games-board/pysolfc/Manifest b/games-board/pysolfc/Manifest
index 953309506ad..fddaf75fe51 100644
--- a/games-board/pysolfc/Manifest
+++ b/games-board/pysolfc/Manifest
@@ -1,5 +1,7 @@
 DIST PySolFC-2.0.tar.bz2 4208776 BLAKE2B 0675de0923c6ee381f58f8abbaef5e27bd6fc85bbee9dcd182026ba7259c25c38282623e0cd35b582e8999754d21b092d6a824499bc890a2c0c89c53679182fd SHA512 ec5a11565bd43e097cf1854fe246b8f92acd74077c0b3b158c999f9dc45966e8f805c60a2cfbd815137d970e0e6409d0ae437b9807bac9c39353657cf596b6fc
+DIST PySolFC-Cardsets--Minimal-2.0.1.tar.xz 1450064 BLAKE2B 629318963ee9bf82f6ab0de03f1b59047b896f7528d0f9f5be973fb550b496b523238b9ef8fcdc034f53b5a7adc4c3b56326e912bb83fcfa7e7ad2f9dec8be6b SHA512 56c9ad3c1f9231c6f3866366d694eb6be6036b1b46c8a1ffbd6f7a243a19ab377d30ee4ccaae34f13e35727357d4168db7d9bc044562ec2d86445fb8aec84e4a
 DIST PySolFC-Cardsets-2.0.tar.bz2 30687905 BLAKE2B f17f5095a05cf42ea9eb3e7a3a7fefe055cc3452882bf96db82bb4d1bebb2307ffc2d0fd8836f7414bfcd93b1d8de52adb43ef22701a0806f2c6c036d9306501 SHA512 24275cd3656024e268a49487ac75e1e67e61ec20e0a9f88e2d1c287f91314a1a9343856d1202ce468f8863f4e9a9bf27526fbb1979a7d765718b38e64ca0cfc8
 DIST pysolfc-2.2.0.tar.gz 4504375 BLAKE2B ea48910d36b704667654292cd4fc2e62bcf259d9a3677369371ab7aadd387505d5ae658496ad8982e08ca0405b44971bc1e2375e91cd90f84c569f8f26249ff3 SHA512 c6d09803eab8fe7fc2c4203537d75b8db3216dfcbd5cc60be5b89f23544c871a37f7b16d20df7be4b70c6f014d47b8c361e1557ab04cb1008451f41b456d0ad2
 DIST pysolfc-2.4.0.tar.gz 6788273 BLAKE2B c852ec9912aabc37317f92941fea2c0fb7230467d188ac3a0a8a78b4a4e243bfac8b3d1ddbb03dde136d7518d03cf3fb02b48386e35218ce5891b54049e9c981 SHA512 177edf60797346b763c9da9daf73feae5fb3ef88529227a60e98b68eb6120289cd0cd76b8ca5925b0452cf43298b12acbb16a53872c892d56b71cbcf0fe93e03
 DIST pysolfc-2.6.2.tar.gz 6791741 BLAKE2B 473105f04bfb2fb174d3b50de5a7a55d586756a75e37eb36a9ff688a5a4b148ee940467b18fa4710f828d461d9156163c8fc9cd323b1562da18f0eb02e096916 SHA512 37b4f5f5f53c8041e7b908719456ad3c26401744389ffd44f445402d653b515c44e02ba55950e24d6a3aa2fc2bf914f8575f630335fe1b52c698154b47fb5717
+DIST pysolfc-2.6.4.tar.gz 7380668 BLAKE2B d172a5d69ab2d9ca2c2c56327111b564bcdaf4800f0903051bd5a4f06e22be7ca5630f7f8b9b70b7ebfcb7ad88cc5fea2357e13a9f0bb791edb6edd42f210127 SHA512 da127a2859315eba72b6affe8210068b3b8bf16837ba106a268e0de84b908528aef1a97d5fc63cecfa89317e3bef815758e44007c50d772fb96a1f62045e5906

diff --git a/games-board/pysolfc/metadata.xml b/games-board/pysolfc/metadata.xml
index 7cc738da552..40a685cd115 100644
--- a/games-board/pysolfc/metadata.xml
+++ b/games-board/pysolfc/metadata.xml
@@ -10,6 +10,7 @@
     <flag name="sound">Enable sound support using <pkg>dev-python/pygame</pkg></flag>
   </use>
   <upstream>
+    <remote-id type="github">shlomif/PySolFC</remote-id>
     <remote-id type="sourceforge">pysolfc</remote-id>
   </upstream>
 </pkgmetadata>

diff --git a/games-board/pysolfc/pysolfc-2.6.4.ebuild b/games-board/pysolfc/pysolfc-2.6.4.ebuild
new file mode 100644
index 00000000000..bc63361710f
--- /dev/null
+++ b/games-board/pysolfc/pysolfc-2.6.4.ebuild
@@ -0,0 +1,83 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{5,6,7} )
+DISTUTILS_SINGLE_IMPL=1
+PYTHON_REQ_USE="tk"
+
+inherit distutils-r1 desktop
+
+MY_PN=PySolFC
+CARD_BASE="${MY_PN}-Cardsets"
+CARD_BASEV="${CARD_BASE}-2.0"
+CARD_BASE_MINV="${CARD_BASE}--Minimal-2.0.1"
+SF_CARD_BASE="mirror://sourceforge/${PN}/${CARD_BASE}"
+
+DESCRIPTION="An exciting collection of more than 1000 solitaire card games"
+HOMEPAGE="https://pysolfc.sourceforge.net/"
+SRC_URI="https://github.com/shlomif/${MY_PN}/archive/${P}.tar.gz
+	extra-cardsets? ( ${SF_CARD_BASE}/${CARD_BASEV}/${CARD_BASEV}.tar.bz2 )
+	!extra-cardsets? ( ${SF_CARD_BASE}/minimal/${CARD_BASE_MINV}.tar.xz )"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="extra-cardsets minimal +sound"
+
+S="${WORKDIR}/${MY_PN}-${P}"
+
+RDEPEND="
+	dev-python/random2[${PYTHON_USEDEP}]
+	dev-python/six[${PYTHON_USEDEP}]
+	!minimal? (
+		dev-python/pillow[tk,${PYTHON_USEDEP}]
+		dev-tcltk/tktable
+	)
+	sound? (
+		dev-python/pygame[${PYTHON_USEDEP}]
+	)"
+
+PATCHES=(
+	"${FILESDIR}/${PN}-gentoo.patch" #591904
+	"${FILESDIR}/${PN}-locales.patch"
+)
+
+python_prepare_all() {
+	sed -i \
+		-e "/pysol.desktop/d" \
+		-e "s:share/icons:share/pixmaps:" \
+		-e "s:data_dir =.*:data_dir = \'/usr/share/${PN}\':" \
+		setup.py || die
+
+	distutils-r1_python_prepare_all
+}
+
+python_compile_all() {
+	pushd html-src > /dev/null || die "html-src not found"
+	PYTHONPATH=.. "${EPYTHON}" gen-html.py || die "gen-html failed"
+	mv images html/ || die "mv images failed"
+	popd > /dev/null
+}
+
+python_install_all() {
+	make_desktop_entry pysol.py "PySol Fan Club Edition" pysol02
+
+	if use extra-cardsets; then
+		insinto /usr/share/${PN}
+		doins -r "${WORKDIR}"/"${CARD_BASEV}"/*
+	else
+		# upstream bug #89
+		# repo does not contain minimal cardsets in archive
+		insinto /usr/share/${PN}
+		doins -r "${WORKDIR}"/"${CARD_BASE_MINV}"/*
+	fi
+
+	dosym ../doc/${PF}/html /usr/share/${PN}/html
+
+	doman docs/*.6
+	DOCS=( README.md AUTHORS.md docs/README docs/README.SOURCE )
+	HTML_DOCS=( html-src/html/. )
+	distutils-r1_python_install_all
+}


             reply	other threads:[~2019-07-29 22:24 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-29 22:24 James Le Cuirot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-02-22  3:07 [gentoo-commits] repo/gentoo:master commit in: games-board/pysolfc/ Ionen Wolkens
2024-12-16  8:42 Ionen Wolkens
2024-11-24 11:01 Ionen Wolkens
2024-07-07 14:36 Michał Górny
2024-04-27 12:11 Ionen Wolkens
2024-04-06 21:09 Ionen Wolkens
2024-03-22  7:28 Arthur Zamarin
2023-07-11  5:25 Ionen Wolkens
2023-05-11 17:01 Ionen Wolkens
2023-04-24  3:43 Ionen Wolkens
2023-01-17  6:03 Ionen Wolkens
2022-10-20 13:34 Ionen Wolkens
2022-10-11 11:06 Ionen Wolkens
2022-05-26  6:07 Ionen Wolkens
2022-05-12 13:38 Ionen Wolkens
2022-04-29 11:23 Ionen Wolkens
2022-04-09  3:36 Ionen Wolkens
2021-12-16 19:11 Ionen Wolkens
2021-12-11 20:27 Ionen Wolkens
2021-11-14  0:45 Ionen Wolkens
2021-09-24 18:45 Ionen Wolkens
2021-09-22 22:26 Ionen Wolkens
2021-09-20 23:17 Ionen Wolkens
2021-08-30  9:04 Ionen Wolkens
2021-08-24 15:10 Ionen Wolkens
2019-01-27 12:24 Andrey Grozin
2019-01-27 12:22 Andrey Grozin
2018-09-19 17:31 Bernard Cafarelli
2018-06-21 11:27 Andrey Grozin
2016-09-06 19:17 David Seifert
2016-09-06  4:16 Austin English
2016-08-02 17:55 Austin English

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=1564439043.bbf38c3cdbeab8173a1b66ff9b75910892a0bebe.chewi@gentoo \
    --to=chewi@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