commit: b41add228f56cbe66dc3ff4d1a6230ecd48331ef Author: Matthias Maier <tamiko <AT> gentoo <DOT> org> AuthorDate: Tue Nov 13 04:28:20 2018 +0000 Commit: Matthias Maier <tamiko <AT> gentoo <DOT> org> CommitDate: Tue Nov 13 04:30:32 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b41add22
games-board/pychess: version bump to 0.99.3 Following fixes on the way: - update copyright header - use xdg-utils instead of fdo-mime eclass - update to python 3 The gnome2-utils eclass currently does not support EAPI 7. Closes: https://bugs.gentoo.org/664594 Package-Manager: Portage-2.3.51, Repoman-2.3.12 Signed-off-by: Matthias Maier <tamiko <AT> gentoo.org> games-board/pychess/Manifest | 1 + games-board/pychess/pychess-0.99.3.ebuild | 71 +++++++++++++++++++++++++++++++ 2 files changed, 72 insertions(+) diff --git a/games-board/pychess/Manifest b/games-board/pychess/Manifest index 0fb5267d4a3..364b5e6bcad 100644 --- a/games-board/pychess/Manifest +++ b/games-board/pychess/Manifest @@ -1 +1,2 @@ DIST pychess-0.12.4.tar.gz 4728410 BLAKE2B 4fd95e85983ce9e7d588e98a27a1695d116f102290942e2c747046ee9e4289b53734dbd949af4f88fc4186fc3e52b9ff41b1e18e2763c5f48b2d371ae22f44fe SHA512 bf2a6cffca50742fbdfba04bc33807b53e4b7485cb6c9b6bb84816e176fd99f3929dbc8e504b46053cdcd30f691d6df948f5153508b2b6d3504f85a31eaccf62 +DIST pychess-0.99.3.tar.gz 12325822 BLAKE2B 603615283a1415b9f06062fc7e1ea0c97be4b9a6c28d959081f3b0fc5f0a4572fb73133e791614a8eb05ac40877ec63d7a6bcb743a9ac4a03de2170b7cf4daa9 SHA512 45f82fecdd9931129d14d8fcfef1de2df2c501f009c4f9cda3c8b699e2b4f35b615eafbd8ccf1cd2554869bfe3ba5aa2eb66d0408f1cb4076a11d43b0401e7c7 diff --git a/games-board/pychess/pychess-0.99.3.ebuild b/games-board/pychess/pychess-0.99.3.ebuild new file mode 100644 index 00000000000..cda42d08100 --- /dev/null +++ b/games-board/pychess/pychess-0.99.3.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python3_{4,5,6} ) +PYTHON_REQ_USE="sqlite" + +inherit gnome2-utils distutils-r1 xdg-utils + +DESCRIPTION="A chess client for Gnome" +HOMEPAGE="http://pychess.org/" +SRC_URI="https://github.com/${PN}/${PN}/releases/download/${PV}/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="gstreamer" + +DEPEND=" + dev-python/pycairo[${PYTHON_USEDEP}] + dev-python/pygobject:3[${PYTHON_USEDEP}] + gnome-base/librsvg:2 + x11-libs/gtksourceview:3.0 + x11-libs/pango + x11-themes/adwaita-icon-theme + gstreamer? ( + dev-python/gst-python:1.0 + media-libs/gstreamer:1.0 + media-libs/gst-plugins-base:1.0 ) +" +RDEPEND=${DEPEND} + +python_install() { + distutils-r1_python_install + + # bug 487706 + sed -i \ + -e "s/@PYTHON@/${EPYTHON}/" \ + "${ED%/}/$(python_get_sitedir)"/${PN}/Players/engineNest.py || die +} + +python_install_all() { + DOCS="AUTHORS README.md" \ + distutils-r1_python_install_all +} + +src_prepare() { + distutils-r1_src_prepare +} + +src_compile() { + distutils-r1_src_compile +} + +src_install() { + distutils-r1_src_install +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + gnome2_icon_cache_update + xdg_desktop_database_update +} + +pkg_postrm() { + gnome2_icon_cache_update + xdg_mimeinfo_database_update +}