summaryrefslogtreecommitdiff
path: root/app-misc/golly
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-05-26 00:07:28 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-05-26 00:07:28 +0100
commit994fe442814c4d169bb0f1ee9745604928006b39 (patch)
tree630f10f7414f44018095dd9d3cf9df55852a9d41 /app-misc/golly
parentf8999218b5a6eafa151e7367030cbfdb69e045ed (diff)
gentoo auto-resync : 26:05:2024 - 00:07:27
Diffstat (limited to 'app-misc/golly')
-rw-r--r--app-misc/golly/Manifest2
-rw-r--r--app-misc/golly/golly-4.3.ebuild72
2 files changed, 74 insertions, 0 deletions
diff --git a/app-misc/golly/Manifest b/app-misc/golly/Manifest
index 4fcb172ad07e..28c36a1842eb 100644
--- a/app-misc/golly/Manifest
+++ b/app-misc/golly/Manifest
@@ -1,4 +1,6 @@
AUX golly-4.0-CFLAGS.patch 686 BLAKE2B 1d82b951bee9f336931ad2589bae03bd8e52ac2f982294f18abd5297bc0d5cbd877ece2716736ce8dfcf044c823cb707d6ce8923177b3ab2bbf09a3d0e247b92 SHA512 b883702ed44bd8469255bbc43191bbf91da64ff0048d4cc3c7cc0c5103e01fe49f9017ad1723d041ab080dfa46b68f4bab0b9abd850b74b1803d5bcebb04c36a
DIST golly-4.2-src.tar.gz 15348982 BLAKE2B 21ebed4c282a77a3f61aafa98936c0bb39b39a7c97505e96fc43ac720bd2eea4cf20996ca28c801f79a46577a0cf99ff60614ce134081605d14ca5972c841d50 SHA512 b9f5cfdfe9b96590411695805dd8b875329c81027fef98dff3f16b832018be2ad3a06583bb64e12fb305268feba2347ef63c4586ff0e645721a8085f04ab382a
+DIST golly-4.3-src.tar.gz 15488205 BLAKE2B 0789bc3e50f43083633f699c5e4ff20fd314cfa776d22463dce3169095e57daeadda4d9671f1b566d6786771caf029f98e4593b250cf29a73abff0c200e2f32b SHA512 daf3a0ef8b7d3f97df2c3a05a245c93eb124ebab4e7a7c0d267e22b4b7271a11cecced20b53fa88dfde145ce11450aac98e0e774f8b6419b3084952938e5a854
EBUILD golly-4.2-r1.ebuild 1495 BLAKE2B caca34960addf12c73f9051c261b3baada5f7111ed33a8a9dd747321e560ee7ab7eeac9384b0fe7d1df20778ea608ab719d2f6c6d7aa68dcc44139370c60f8b3 SHA512 51d0eea039da7a48241cc71d117ebd5ba645e7ed28f8d69e15c7b4a6f3fe8f31a07f88399de5382cd1026ebdcfc5ab028acf08aa6cd5e03999b393821a3ef3b9
+EBUILD golly-4.3.ebuild 1508 BLAKE2B edaee34f7dc0505eed9522bd7f1435a47493beacc975c046be1698c54ea1a57e0a98e9a1c40f786090c2e38731e459ebb0f5ab0c6b38e85e66097944d35a879b SHA512 f944b1be754e35525ac22bfb4df5cf1eb3d02e2f6601798701bf5a041fff08cd79f7c181527b60fa3a0af9c1730b2371f2b3d2dd31e618a6b5989568a647c3aa
MISC metadata.xml 571 BLAKE2B 64399eaf28ab52d39c1338758ca1abc2f67f195e4320b01d411d00fc3e434065d25cbab6c886dddfcd18611cef4d057c0b74c22c73e432ce1c3efb22e523164a SHA512 7ddf9bbb0cb55f5beb5377b2f0a7823e125195d0019f45dfd26c0868fe57c69913d11946de5060416856ac68bca863fd06a1a1128704a8fa53fd494df4b106e5
diff --git a/app-misc/golly/golly-4.3.ebuild b/app-misc/golly/golly-4.3.ebuild
new file mode 100644
index 000000000000..24219cbdfaf1
--- /dev/null
+++ b/app-misc/golly/golly-4.3.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+WX_GTK_VER=3.2-gtk3
+PYTHON_COMPAT=( python3_{10..12} )
+
+inherit desktop python-single-r1 toolchain-funcs wxwidgets xdg
+
+DESCRIPTION="simulator for Conway's Game of Life and other cellular automata"
+HOMEPAGE="http://golly.sourceforge.net/
+ https://sourceforge.net/projects/golly/"
+SRC_URI="https://downloads.sourceforge.net/${PN}/${P}-src.tar.gz"
+S="${WORKDIR}/${P}-src"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="
+ sys-libs/zlib
+ virtual/opengl
+ x11-libs/wxGTK:${WX_GTK_VER}[X,curl,opengl,sdl,tiff]
+ ${PYTHON_DEPS}
+"
+DEPEND="
+ ${RDEPEND}
+"
+
+PATCHES=( "${FILESDIR}/${PN}-4.0-CFLAGS.patch" )
+
+pkg_setup() {
+ python-single-r1_pkg_setup
+ setup-wxwidgets
+}
+
+src_compile() {
+ local -a mymakeopts=(
+ ENABLE_SOUND=yes
+ GOLLYDIR="${EPREFIX}/usr/share/${PN}"
+ PYTHON=${EPYTHON}
+ WX_CONFIG=${WX_CONFIG}
+ AR="$(tc-getAR)"
+ CC="$(tc-getCC)"
+ CXX="$(tc-getCXX)"
+ CXXC="$(tc-getCXX)"
+ RANLIB="$(tc-getRANLIB)"
+ )
+ emake -C gui-wx -f makefile-gtk "${mymakeopts[@]}"
+}
+
+src_install() {
+ # Has no 'make install', let's install files manually.
+ exeinto /usr/bin
+ doexe golly bgolly
+
+ insinto "/usr/share/${PN}"
+ doins -r Help Patterns Scripts Rules docs
+
+ 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
+}