diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2020-11-05 08:28:11 +0000 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2020-11-05 08:36:33 +0000 |
commit | f867c11bb15d204285c8cd1e8208e675a0a8fe2e (patch) | |
tree | c131fa6beddf22daae684e4cbe811f778806c2b5 /app-misc/golly | |
parent | sys-apps/hwloc: timeout bump to 2.3.0, fix multiple issues (diff) | |
download | gentoo-f867c11bb15d204285c8cd1e8208e675a0a8fe2e.tar.gz gentoo-f867c11bb15d204285c8cd1e8208e675a0a8fe2e.tar.bz2 gentoo-f867c11bb15d204285c8cd1e8208e675a0a8fe2e.zip |
app-misc/golly: bump up to 4.0
Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'app-misc/golly')
-rw-r--r-- | app-misc/golly/Manifest | 1 | ||||
-rw-r--r-- | app-misc/golly/files/golly-4.0-CFLAGS.patch | 24 | ||||
-rw-r--r-- | app-misc/golly/golly-4.0.ebuild | 72 |
3 files changed, 97 insertions, 0 deletions
diff --git a/app-misc/golly/Manifest b/app-misc/golly/Manifest index eacf4e5180b6..41f9152dcb62 100644 --- a/app-misc/golly/Manifest +++ b/app-misc/golly/Manifest @@ -1 +1,2 @@ DIST golly-3.4-src.tar.gz 5480295 BLAKE2B 6bd0c71083d021adb660ed8fd333399865e5f486b6d95d2851aefd31fd2ad09a04419e6e3b2e0ff38b1d934ebb975525c07ca841210cc05f60f9ecf92362bc48 SHA512 bb2b1a653f9556901aa18d2d56c75c2c5e55bd7451b2b5bfb6268793758c12a6b00d30fa52c08ebd47e5db98fbec6fb80c64194cd93a1a41846adbd824c7af47 +DIST golly-4.0-src.tar.gz 5579026 BLAKE2B fc6c9d4db80e92635ac466250ca65c5cbe496c668f2fbd583226a2ecd686ac022aa4d47f453628284bceeb16554b91340b442216eab8412506243e30085a3a32 SHA512 3a39e170ceddfa4f8c261a81f7b45039e9cc2aef901915d83d3227231514bf66e254d307802cb0afddd7458722b8cbf2ce527cb9ee84a2710b52bf5bdb15484d diff --git a/app-misc/golly/files/golly-4.0-CFLAGS.patch b/app-misc/golly/files/golly-4.0-CFLAGS.patch new file mode 100644 index 000000000000..3ac729df93ef --- /dev/null +++ b/app-misc/golly/files/golly-4.0-CFLAGS.patch @@ -0,0 +1,24 @@ +--- a/lua/Makefile ++++ b/lua/Makefile +@@ -13,7 +13,7 @@ osx_ge = $(shell if [ $(OS_VERSION) -ge $(1) ] ; then echo "$(2)"; else echo "$( + + CFLAGS += $(call osx_ge,10,"-mmacosx-version-min=10.10","") + else +-CFLAGS = -O2 -Wall -Wextra -DLUA_USE_LINUX ++CFLAGS += -Wall -Wextra -DLUA_USE_LINUX + endif + + OBJ_FILES = lapi.o lcode.o lctype.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o \ +--- a/lua/Makefile ++++ b/lua/Makefile +@@ -25,8 +25,8 @@ OBJ_FILES = lapi.o lcode.o lctype.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o + all: $(LUA_LIB) + + $(LUA_LIB): $(OBJ_FILES) +- ar rcu $@ $(OBJ_FILES) +- ranlib $@ ++ $(AR) rcu $@ $(OBJ_FILES) ++ $(RANLIB) $@ + + clean: + rm -f $(LUA_LIB) $(OBJ_FILES) diff --git a/app-misc/golly/golly-4.0.ebuild b/app-misc/golly/golly-4.0.ebuild new file mode 100644 index 000000000000..6f6fa88b72be --- /dev/null +++ b/app-misc/golly/golly-4.0.ebuild @@ -0,0 +1,72 @@ +# 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 desktop python-single-r1 toolchain-funcs 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}-4.0-CFLAGS.patch +) + +pkg_setup() { + python-single-r1_pkg_setup + setup-wxwidgets +} + +src_compile() { + emake -C gui-wx -f makefile-gtk \ + \ + CC=$(tc-getCC) \ + CXX=$(tc-getCXX) \ + CXXC=$(tc-getCXX) \ + \ + AR=$(tc-getAR) \ + RANLIB=$(tc-getRANLIB) \ + \ + PYTHON=${EPYTHON} \ + WX_CONFIG=${WX_CONFIG} \ + \ + GOLLYDIR="${EPREFIX}/usr/share/${PN}" +} + +src_install() { + # has no 'make install' Let's install files manually. + dobin 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 +} |