1 |
commit: 879c4b46f25f92729cda38f2ac533f05b060bc86 |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Aug 3 22:48:47 2020 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Aug 3 22:54:21 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=879c4b46 |
7 |
|
8 |
app-misc/golly: bump up to 3.4 |
9 |
|
10 |
Package-Manager: Portage-3.0.1, Repoman-2.3.23 |
11 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
12 |
|
13 |
app-misc/golly/Manifest | 1 + |
14 |
app-misc/golly/golly-3.4.ebuild | 70 +++++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 71 insertions(+) |
16 |
|
17 |
diff --git a/app-misc/golly/Manifest b/app-misc/golly/Manifest |
18 |
index 3400cf99a3a..212e4446b77 100644 |
19 |
--- a/app-misc/golly/Manifest |
20 |
+++ b/app-misc/golly/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST golly-3.3-src.tar.gz 5465595 BLAKE2B e74da3799d1086a46fba523e6b087e6bc50c908098b27a80573936629fd5ad6195968df46b2933a9984cff85068222a80040761254298c5f648b040d5532a7ba SHA512 2aa9c2e7b2ebe3fe85bcb6177e58ee83bd08475e0a37a04cdb7e649b9faf5c2f936c534af62c8cf2322baade65c6e5197768901dfb464c17b20b941e1fa77265 |
23 |
+DIST golly-3.4-src.tar.gz 5480295 BLAKE2B 6bd0c71083d021adb660ed8fd333399865e5f486b6d95d2851aefd31fd2ad09a04419e6e3b2e0ff38b1d934ebb975525c07ca841210cc05f60f9ecf92362bc48 SHA512 bb2b1a653f9556901aa18d2d56c75c2c5e55bd7451b2b5bfb6268793758c12a6b00d30fa52c08ebd47e5db98fbec6fb80c64194cd93a1a41846adbd824c7af47 |
24 |
|
25 |
diff --git a/app-misc/golly/golly-3.4.ebuild b/app-misc/golly/golly-3.4.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..33eaee6f742 |
28 |
--- /dev/null |
29 |
+++ b/app-misc/golly/golly-3.4.ebuild |
30 |
@@ -0,0 +1,70 @@ |
31 |
+# Copyright 1999-2020 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+WX_GTK_VER=3.0-gtk3 |
37 |
+PYTHON_COMPAT=( python3_{7,8,9} ) |
38 |
+ |
39 |
+inherit autotools desktop python-single-r1 wxwidgets xdg-utils |
40 |
+ |
41 |
+DESCRIPTION="simulator for Conway's Game of Life and other cellular automata" |
42 |
+HOMEPAGE="http://golly.sourceforge.net/" |
43 |
+SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.gz" |
44 |
+ |
45 |
+LICENSE="GPL-2" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64 ~x86" |
48 |
+IUSE="tiff" |
49 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
50 |
+ |
51 |
+DEPEND="virtual/opengl |
52 |
+ sys-libs/zlib |
53 |
+ x11-libs/wxGTK:${WX_GTK_VER}[X,opengl,tiff?] |
54 |
+ ${PYTHON_DEPS} |
55 |
+" |
56 |
+ |
57 |
+RDEPEND="${DEPEND}" |
58 |
+ |
59 |
+S=${WORKDIR}/${P}-src |
60 |
+ |
61 |
+PATCHES=( |
62 |
+ "${FILESDIR}"/${PN}-3.3-nondynamic-python.patch |
63 |
+ "${FILESDIR}"/${PN}-3.3-allow-py23-exec.patch |
64 |
+ "${FILESDIR}"/${PN}-3.3-glife-py23.patch |
65 |
+ "${FILESDIR}"/${PN}-3.3-allow-py3.patch |
66 |
+) |
67 |
+ |
68 |
+pkg_setup() { |
69 |
+ python-single-r1_pkg_setup |
70 |
+ setup-wxwidgets |
71 |
+} |
72 |
+ |
73 |
+src_prepare() { |
74 |
+ default |
75 |
+ |
76 |
+ # patches change configure.ac and Makefile.am |
77 |
+ pushd gui-wx/configure |
78 |
+ eautoreconf |
79 |
+ popd |
80 |
+} |
81 |
+ |
82 |
+src_configure() { |
83 |
+ ECONF_SOURCE=gui-wx/configure econf \ |
84 |
+ --with-wxshared |
85 |
+} |
86 |
+ |
87 |
+src_install() { |
88 |
+ emake docdir= DESTDIR="${D}" install |
89 |
+ dodoc docs/ReadMe.html |
90 |
+ newicon --size 32 gui-wx/icons/appicon.xpm ${PN}.xpm |
91 |
+ make_desktop_entry ${PN} "Golly" ${PN} "Science" |
92 |
+} |
93 |
+ |
94 |
+pkg_postinst() { |
95 |
+ xdg_icon_cache_update |
96 |
+} |
97 |
+ |
98 |
+pkg_postrm() { |
99 |
+ xdg_icon_cache_update |
100 |
+} |