commit:     879c4b46f25f92729cda38f2ac533f05b060bc86
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Mon Aug  3 22:48:47 2020 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Mon Aug  3 22:54:21 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=879c4b46

app-misc/golly: bump up to 3.4

Package-Manager: Portage-3.0.1, Repoman-2.3.23
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>

 app-misc/golly/Manifest         |  1 +
 app-misc/golly/golly-3.4.ebuild | 70 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 71 insertions(+)

diff --git a/app-misc/golly/Manifest b/app-misc/golly/Manifest
index 3400cf99a3a..212e4446b77 100644
--- a/app-misc/golly/Manifest
+++ b/app-misc/golly/Manifest
@@ -1 +1,2 @@
 DIST golly-3.3-src.tar.gz 5465595 BLAKE2B 
e74da3799d1086a46fba523e6b087e6bc50c908098b27a80573936629fd5ad6195968df46b2933a9984cff85068222a80040761254298c5f648b040d5532a7ba
 SHA512 
2aa9c2e7b2ebe3fe85bcb6177e58ee83bd08475e0a37a04cdb7e649b9faf5c2f936c534af62c8cf2322baade65c6e5197768901dfb464c17b20b941e1fa77265
+DIST golly-3.4-src.tar.gz 5480295 BLAKE2B 
6bd0c71083d021adb660ed8fd333399865e5f486b6d95d2851aefd31fd2ad09a04419e6e3b2e0ff38b1d934ebb975525c07ca841210cc05f60f9ecf92362bc48
 SHA512 
bb2b1a653f9556901aa18d2d56c75c2c5e55bd7451b2b5bfb6268793758c12a6b00d30fa52c08ebd47e5db98fbec6fb80c64194cd93a1a41846adbd824c7af47

diff --git a/app-misc/golly/golly-3.4.ebuild b/app-misc/golly/golly-3.4.ebuild
new file mode 100644
index 00000000000..33eaee6f742
--- /dev/null
+++ b/app-misc/golly/golly-3.4.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+WX_GTK_VER=3.0-gtk3
+PYTHON_COMPAT=( python3_{7,8,9} )
+
+inherit autotools desktop python-single-r1 wxwidgets xdg-utils
+
+DESCRIPTION="simulator for Conway's Game of Life and other cellular automata"
+HOMEPAGE="http://golly.sourceforge.net/";
+SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="tiff"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+DEPEND="virtual/opengl
+       sys-libs/zlib
+       x11-libs/wxGTK:${WX_GTK_VER}[X,opengl,tiff?]
+       ${PYTHON_DEPS}
+"
+
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${P}-src
+
+PATCHES=(
+       "${FILESDIR}"/${PN}-3.3-nondynamic-python.patch
+       "${FILESDIR}"/${PN}-3.3-allow-py23-exec.patch
+       "${FILESDIR}"/${PN}-3.3-glife-py23.patch
+       "${FILESDIR}"/${PN}-3.3-allow-py3.patch
+)
+
+pkg_setup() {
+       python-single-r1_pkg_setup
+       setup-wxwidgets
+}
+
+src_prepare() {
+       default
+
+       # patches change configure.ac and Makefile.am
+       pushd gui-wx/configure
+               eautoreconf
+       popd
+}
+
+src_configure() {
+       ECONF_SOURCE=gui-wx/configure econf \
+               --with-wxshared
+}
+
+src_install() {
+       emake docdir= DESTDIR="${D}" install
+       dodoc docs/ReadMe.html
+       newicon --size 32 gui-wx/icons/appicon.xpm ${PN}.xpm
+       make_desktop_entry ${PN} "Golly" ${PN} "Science"
+}
+
+pkg_postinst() {
+       xdg_icon_cache_update
+}
+
+pkg_postrm() {
+       xdg_icon_cache_update
+}

Reply via email to