Gentoo Archives: gentoo-commits

From: "Maciej Barć" <xgqt@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/golly/
Date: Wed, 01 Dec 2021 08:54:15
Message-Id: 1638348826.15eb1454cb24fdc2ac23a5069312528b85d95df1.xgqt@gentoo
1 commit: 15eb1454cb24fdc2ac23a5069312528b85d95df1
2 Author: Maciej Barć <xgqt <AT> gentoo <DOT> org>
3 AuthorDate: Wed Dec 1 08:49:31 2021 +0000
4 Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org>
5 CommitDate: Wed Dec 1 08:53:46 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=15eb1454
7
8 app-misc/golly: bump to 4.1
9
10 Package-Manager: Portage-3.0.28, Repoman-3.0.3
11 Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>
12
13 app-misc/golly/Manifest | 1 +
14 app-misc/golly/golly-4.1.ebuild | 68 +++++++++++++++++++++++++++++++++++++++++
15 2 files changed, 69 insertions(+)
16
17 diff --git a/app-misc/golly/Manifest b/app-misc/golly/Manifest
18 index 18e55e3d1acc..547f4e8e0b82 100644
19 --- a/app-misc/golly/Manifest
20 +++ b/app-misc/golly/Manifest
21 @@ -1 +1,2 @@
22 DIST golly-4.0-src.tar.gz 5579026 BLAKE2B fc6c9d4db80e92635ac466250ca65c5cbe496c668f2fbd583226a2ecd686ac022aa4d47f453628284bceeb16554b91340b442216eab8412506243e30085a3a32 SHA512 3a39e170ceddfa4f8c261a81f7b45039e9cc2aef901915d83d3227231514bf66e254d307802cb0afddd7458722b8cbf2ce527cb9ee84a2710b52bf5bdb15484d
23 +DIST golly-4.1-src.tar.gz 14877727 BLAKE2B d9cac1250901a39d6a360b527c6f4872fc78d0426ea255b9f9129136b938a6655ff59f8c5b0204fd44f4ac0ae76e307c763ddb24a1d8a00bd4e548e4ac2277c3 SHA512 bc050a216a36091f0df42e61a19c34353c6306dc1ae86c194693c85a4489b118435da238b25017bde4b3d31a79e12a6988f7b7da5ae90cfcc9ca0795e66d4a99
24
25 diff --git a/app-misc/golly/golly-4.1.ebuild b/app-misc/golly/golly-4.1.ebuild
26 new file mode 100644
27 index 000000000000..623f94070a39
28 --- /dev/null
29 +++ b/app-misc/golly/golly-4.1.ebuild
30 @@ -0,0 +1,68 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +WX_GTK_VER=3.0-gtk3
37 +PYTHON_COMPAT=( python3_{7,8,9,10} )
38 +
39 +inherit desktop python-single-r1 toolchain-funcs wxwidgets xdg
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 +S="${WORKDIR}/${P}-src"
45 +
46 +LICENSE="GPL-2"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~x86"
49 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
50 +
51 +RDEPEND="
52 + sys-libs/zlib
53 + virtual/opengl
54 + x11-libs/wxGTK:${WX_GTK_VER}[X,opengl,sdl,tiff]
55 + ${PYTHON_DEPS}
56 +"
57 +DEPEND="${RDEPEND}"
58 +
59 +PATCHES=( "${FILESDIR}"/${PN}-4.0-CFLAGS.patch )
60 +
61 +pkg_setup() {
62 + python-single-r1_pkg_setup
63 + setup-wxwidgets
64 +}
65 +
66 +src_compile() {
67 + local mymakeopts=(
68 + ENABLE_SOUND=yes
69 + ENABLE_PERL=yes
70 + GOLLYDIR="${EPREFIX}/usr/share/${PN}"
71 + PYTHON=${EPYTHON}
72 + WX_CONFIG=${WX_CONFIG}
73 + AR=$(tc-getAR)
74 + CC=$(tc-getCC)
75 + CXX=$(tc-getCXX)
76 + CXXC=$(tc-getCXX)
77 + RANLIB=$(tc-getRANLIB)
78 + )
79 + emake -C gui-wx -f makefile-gtk "${mymakeopts[@]}"
80 +}
81 +
82 +src_install() {
83 + # has no 'make install' Let's install files manually.
84 + dobin golly bgolly
85 + insinto /usr/share/${PN}
86 + doins -r Help Patterns Scripts Rules docs
87 +
88 + newicon --size 32 gui-wx/icons/appicon.xpm ${PN}.xpm
89 + make_desktop_entry ${PN} "Golly" ${PN} "Science"
90 +}
91 +
92 +pkg_postinst() {
93 + xdg_icon_cache_update
94 +}
95 +
96 +pkg_postrm() {
97 + xdg_icon_cache_update
98 +}