summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2015-10-17 18:07:41 +0200
committerPacho Ramos <pacho@gentoo.org>2015-10-17 18:07:51 +0200
commitdb2814bc296a7d0ecc937c14207deb833939275c (patch)
treed8e90a89d700c4f9e0125af87da225c4a7c2a5d5 /app-misc
parentdev-qt/qtsql: drop -r0 (diff)
downloadgentoo-db2814bc296a7d0ecc937c14207deb833939275c.tar.gz
gentoo-db2814bc296a7d0ecc937c14207deb833939275c.tar.bz2
gentoo-db2814bc296a7d0ecc937c14207deb833939275c.zip
app-misc/golly: This version also supports wxGTK:3.0 finally (#562480)
Package-Manager: portage-2.2.23
Diffstat (limited to 'app-misc')
-rw-r--r--app-misc/golly/golly-2.7-r1.ebuild49
1 files changed, 49 insertions, 0 deletions
diff --git a/app-misc/golly/golly-2.7-r1.ebuild b/app-misc/golly/golly-2.7-r1.ebuild
new file mode 100644
index 000000000000..156ece7f976b
--- /dev/null
+++ b/app-misc/golly/golly-2.7-r1.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+WX_GTK_VER=3.0
+PYTHON_COMPAT=( python2_7 )
+
+inherit eutils python-single-r1 gnome2-utils wxwidgets
+
+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=""
+
+DEPEND="dev-lang/perl
+ sys-libs/zlib
+ x11-libs/wxGTK:${WX_GTK_VER}[X]"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${P}-src
+ECONF_SOURCE=gui-wx/configure
+
+src_configure() {
+ econf --with-perl-shlib="libperl.so"
+}
+
+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_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}