From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 15BA4138359 for ; Fri, 3 Jul 2020 22:07:06 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 26C22E077C; Fri, 3 Jul 2020 22:07:05 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 10132E077C for ; Fri, 3 Jul 2020 22:07:05 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0B29834F11F for ; Fri, 3 Jul 2020 22:07:04 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 862609C for ; Fri, 3 Jul 2020 22:07:01 +0000 (UTC) From: "Sergei Trofimovich" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sergei Trofimovich" Message-ID: <1593814018.1358b7c339533af4059bad30fb09251777831f8b.slyfox@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/golly/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-misc/golly/golly-3.3-r3.ebuild X-VCS-Directories: app-misc/golly/ X-VCS-Committer: slyfox X-VCS-Committer-Name: Sergei Trofimovich X-VCS-Revision: 1358b7c339533af4059bad30fb09251777831f8b X-VCS-Branch: master Date: Fri, 3 Jul 2020 22:07:01 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 72852804-780c-4882-b881-f6a950791882 X-Archives-Hash: cfe6566d6a853548e3eba00ad18f884b commit: 1358b7c339533af4059bad30fb09251777831f8b Author: Sergei Trofimovich gentoo org> AuthorDate: Fri Jul 3 22:06:49 2020 +0000 Commit: Sergei Trofimovich gentoo org> CommitDate: Fri Jul 3 22:06:58 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1358b7c3 app-misc/golly: switch to gtk3-based wxwidgets Package-Manager: Portage-2.3.103, Repoman-2.3.23 Signed-off-by: Sergei Trofimovich gentoo.org> app-misc/golly/golly-3.3-r3.ebuild | 70 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) diff --git a/app-misc/golly/golly-3.3-r3.ebuild b/app-misc/golly/golly-3.3-r3.ebuild new file mode 100644 index 00000000000..10240aa63d7 --- /dev/null +++ b/app-misc/golly/golly-3.3-r3.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=( python{2_7,3_{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}"/${P}-nondynamic-python.patch + "${FILESDIR}"/${P}-allow-py23-exec.patch + "${FILESDIR}"/${P}-glife-py23.patch + "${FILESDIR}"/${P}-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 +}