summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'x11-misc/xplanetFX')
-rw-r--r--x11-misc/xplanetFX/Manifest1
-rw-r--r--x11-misc/xplanetFX/files/xplanetFX-2.6.4-gentoo-path.patch42
-rw-r--r--x11-misc/xplanetFX/metadata.xml15
-rw-r--r--x11-misc/xplanetFX/xplanetFX-2.6.4.ebuild60
4 files changed, 118 insertions, 0 deletions
diff --git a/x11-misc/xplanetFX/Manifest b/x11-misc/xplanetFX/Manifest
new file mode 100644
index 000000000000..c6d44c6c5cfa
--- /dev/null
+++ b/x11-misc/xplanetFX/Manifest
@@ -0,0 +1 @@
+DIST xplanetfx-2.6.4_all.tar.gz 36871474 SHA256 0c7ea5783103f00867eecc1603e598b89fd52bd19954fd2976e3aa89390813ca SHA512 dd8a31d77dcf536be712239b73d185b19dde8bfe3ba3c3acdeb31ce1101e5d9c524c89a645cd737d824f44c6553d7bd2962c4bd2a7e2ac11f405e5828cfcac91 WHIRLPOOL 2cde850922e0c67e73c55dc104a1e4dca91da1cefe5bf79149e2818e3184af8d71d1436021e964957dd5bcc5b7d858326ea242d5a8158382628acde42ecd07c4
diff --git a/x11-misc/xplanetFX/files/xplanetFX-2.6.4-gentoo-path.patch b/x11-misc/xplanetFX/files/xplanetFX-2.6.4-gentoo-path.patch
new file mode 100644
index 000000000000..0777e076c831
--- /dev/null
+++ b/x11-misc/xplanetFX/files/xplanetFX-2.6.4-gentoo-path.patch
@@ -0,0 +1,42 @@
+diff -Naur usr.orig/bin/xplanetFX usr/bin/xplanetFX
+--- usr.orig/bin/xplanetFX 2015-03-05 19:58:41.000000000 +0100
++++ usr/bin/xplanetFX 2015-03-16 14:28:28.235256123 +0100
+@@ -115,7 +115,7 @@
+ WGETPROXY="-e use_proxy=on -e http_proxy="$PROXY
+ fi
+
+-if which gsed; then
++if which gsed > /dev/null 2>&1; then
+ SEDEXE='gsed'
+ else
+ SEDEXE='sed'
+diff -Naur usr.orig/share/xplanetFX/xplanetFX_gtk usr/share/xplanetFX/xplanetFX_gtk
+--- usr.orig/share/xplanetFX/xplanetFX_gtk 2015-02-17 16:55:12.000000000 +0100
++++ usr/share/xplanetFX/xplanetFX_gtk 2015-03-16 14:28:53.147271051 +0100
+@@ -44,10 +44,7 @@
+
+ gobject.threads_init()
+
+-basedir = os.path.dirname(os.path.realpath(__file__))
+-if not os.path.exists(os.path.join(basedir, "xplanetFX_gtk.py")):
+- if os.path.exists(os.path.join(os.getcwd(), "xplanetFX_gtk.py")):
+- basedir = os.getcwd()
++basedir = "/usr/share/xplanetFX"
+ sys.path.insert(0, basedir)
+
+ class GUI():
+diff -Naur usr.orig/share/xplanetFX/xplanetFX_tray usr/share/xplanetFX/xplanetFX_tray
+--- usr.orig/share/xplanetFX/xplanetFX_tray 2014-05-08 01:46:44.000000000 +0200
++++ usr/share/xplanetFX/xplanetFX_tray 2015-03-16 14:29:20.634287466 +0100
+@@ -27,10 +27,7 @@
+
+ gobject.threads_init()
+
+-basedir = os.path.dirname(os.path.realpath(__file__))
+-if not os.path.exists(os.path.join(basedir, "xplanetFX_gtk.py")):
+- if os.path.exists(os.path.join(os.getcwd(), "xplanetFX_gtk.py")):
+- basedir = os.getcwd()
++basedir = "/usr/share/xplanetFX"
+ sys.path.insert(0, basedir)
+
+
diff --git a/x11-misc/xplanetFX/metadata.xml b/x11-misc/xplanetFX/metadata.xml
new file mode 100644
index 000000000000..a0e7a1f1bdfe
--- /dev/null
+++ b/x11-misc/xplanetFX/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>voyageur@gentoo.org</email>
+ <name>Bernard Cafarelli</name>
+ </maintainer>
+ <longdescription>Create high quality renderings of mother earth with realistic clouding and lighting effects as your desktop wallpaper with “realtime” capabilities.
+
+xplanet (by Hari Nair) is a great piece of software capable of creating renderings inside our solar system. To raise the quality of it’s output adding some graphical effects, it was a great candidate to link with imagemagick.
+
+The result is xplanetFX, a user-friendly piece of software to configure, run or daemonize xplanet with h/q capabilities to create wallpapers of mother earth on your desktop.
+
+More realistic maps and backgrounds and a sophisticated graphics handling produce nearly photo realistic images of our mothership. It’s GTK GUI makes it really easy to use and provides a lot of settings and a user friendly access to xplanetFX. And even the templating capabilities give xplanetFX an individual and stylish touch.</longdescription>
+</pkgmetadata>
diff --git a/x11-misc/xplanetFX/xplanetFX-2.6.4.ebuild b/x11-misc/xplanetFX/xplanetFX-2.6.4.ebuild
new file mode 100644
index 000000000000..c233273cae8f
--- /dev/null
+++ b/x11-misc/xplanetFX/xplanetFX-2.6.4.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit eutils python-r1
+
+DESCRIPTION="User-friendly interface to configure, run or daemonize xplanet with HQ capabilities"
+HOMEPAGE="http://mein-neues-blog.de/xplanetFX/"
+SRC_URI="http://repository.mein-neues-blog.de:9000/archive/${P/FX/fx}_all.tar.gz"
+
+LICENSE="WTFPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="libnotify"
+
+DEPEND=""
+RDEPEND="${DEPEND}
+ dev-python/pygtk[${PYTHON_USEDEP}]
+ media-gfx/imagemagick
+ sys-devel/bc
+ x11-misc/xplanet
+ libnotify? ( x11-libs/libnotify )"
+#python
+
+S="${WORKDIR}/usr"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-gentoo-path.patch
+ sed -e "s/Application;//" -i share/applications/*desktop || die
+
+ # These will be installed separately
+ mkdir gentoo || die
+ mv share/${PN}/{autostart,flipview.py,stars/catalog.py,xplanetFX_gtk,xplanetFX_tray} \
+ gentoo || die
+}
+
+src_install() {
+ dobin bin/${PN}
+ insinto /usr/share/applications
+ doins share/applications/${PN}.desktop
+ insinto /usr/share/pixmaps
+ doins share/pixmaps/*
+ insinto /usr/share/${PN}
+ doins -r share/${PN}/*
+
+ exeinto /usr/share/${PN}
+ doexe gentoo/autostart
+
+ dodoc share/doc/${PN}/{changelog,README}
+
+ python_scriptinto /usr/share/${PN}/stars
+ python_foreach_impl python_doscript gentoo/catalog.py
+ python_scriptinto /usr/share/${PN}
+ python_foreach_impl python_doscript gentoo/{xplanetFX_gtk,xplanetFX_tray}
+ python_foreach_impl python_domodule gentoo/flipview.py
+}