summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--profiles/package.mask8
-rw-r--r--x11-misc/xplanetfx/Manifest3
-rw-r--r--x11-misc/xplanetfx/files/xplanetfx-2.2.22-gentoo.patch13
-rw-r--r--x11-misc/xplanetfx/xplanetfx-2.2.22.ebuild77
4 files changed, 97 insertions, 4 deletions
diff --git a/profiles/package.mask b/profiles/package.mask
index 6f4c141..7161cdb 100644
--- a/profiles/package.mask
+++ b/profiles/package.mask
@@ -1,4 +1,4 @@
-# Markos Chandras <hwoarang@gentoo.org> (14 Mar 2011)
-# Totally unusable ebuilds. Progress is tracked on bug #356479
-~dev-libs/boost-1.46.1
-~dev-util/boost-build-1.46.1
+# Markos Chandras <hwoarang@gentoo.org> (19 May 2011)
+# Totally broken but feel free to provide patches
+# Bug: #364071
+x11-misc/xplanetfx
diff --git a/x11-misc/xplanetfx/Manifest b/x11-misc/xplanetfx/Manifest
new file mode 100644
index 0000000..b8f2abe
--- /dev/null
+++ b/x11-misc/xplanetfx/Manifest
@@ -0,0 +1,3 @@
+AUX xplanetfx-2.2.22-gentoo.patch 609 RMD160 9a966e32a90c71b23e4b3ca131917e3a92509670 SHA1 8ce4eb77d0f1e0f9bfad7102fb17e6ecde8e3375 SHA256 207d3b9e09cbae8e78602c58c3dbad4f7314bfbda6a03a9969387d99be128b27
+DIST xplanetfx-2.2.22_all.tar.gz 16083293 RMD160 7865009fffc06f1c1912292029f4e58cd72ffa93 SHA1 4d0c7a2072fbdb43dfb2b7266c69e3dde43eb9d0 SHA256 cb176d36da44cb0f9a1d99cfd6bb24479f56a60bf2c77978e859a5f047106484
+EBUILD xplanetfx-2.2.22.ebuild 1960 RMD160 a93feb4d8abfe1d66a58cc97185047d33ba6ef9e SHA1 0343587bf9785ad8d349bd85b2945f4d16d103db SHA256 870b242cfb39f58c0b09c7e18eda4d1a9126de408d8d11cd6d4b1ca63a64ddc9
diff --git a/x11-misc/xplanetfx/files/xplanetfx-2.2.22-gentoo.patch b/x11-misc/xplanetfx/files/xplanetfx-2.2.22-gentoo.patch
new file mode 100644
index 0000000..81bdbca
--- /dev/null
+++ b/x11-misc/xplanetfx/files/xplanetfx-2.2.22-gentoo.patch
@@ -0,0 +1,13 @@
+Index: work/usr/share/xplanetFX/xplanetFX_gtk
+===================================================================
+--- work.orig/usr/share/xplanetFX/xplanetFX_gtk
++++ work/usr/share/xplanetFX/xplanetFX_gtk
+@@ -60,7 +60,7 @@ sys.path.insert(0, basedir)
+ class GUI():
+ """This class is a GUI for xplanetFX"""
+
+- _VERSION = open(os.path.join(sys.path[0], 'version')).read().strip()
++ _VERSION = open('/usr/share/xplanetFX/version').read().strip()
+ _TITLE = "xplanetFX " + _VERSION
+ _XFX_PATH = os.path.expanduser("~") + "/.xplanetFX"
+ _THEME_PATH = os.path.join(_XFX_PATH, "templates")
diff --git a/x11-misc/xplanetfx/xplanetfx-2.2.22.ebuild b/x11-misc/xplanetfx/xplanetfx-2.2.22.ebuild
new file mode 100644
index 0000000..1355346
--- /dev/null
+++ b/x11-misc/xplanetfx/xplanetfx-2.2.22.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=2
+
+PYTHON_DEPEND="2"
+
+inherit eutils python
+
+MY_PN="xplanetFX"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Utility for rendering high quality wallpapers of mother earth on your desktop"
+HOMEPAGE="http://mein-neues-blog.de/category/xplanetfx/"
+SRC_URI="http://repository.mein-neues-blog.de:9000/archive/${P}_all.tar.gz"
+
+LICENSE=""
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="gtk perl"
+
+RDEPEND="|| ( media-gfx/imagemagick[perl?] media-gfx/graphicsmagic[perl?] )
+ x11-misc/xplanet
+ dev-perl/libwww-perl
+ gtk? ( dev-python/pygtk:2 )
+ sys-devel/bc"
+DEPEND=""
+
+S="${WORKDIR}"
+
+pkg_setup() {
+ python_set_active_version 2
+ python_pkg_setup
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-gentoo.patch
+ # fix gtk script
+ if use gtk; then
+ sed -i -e "/gtk/s:\$WORKDIR\/::" ${S}/usr/bin/${MY_PN}
+ # fix paths
+ sed -i -e "s:sys\.path\[0\]:\"\/usr/share/${MY_PN}\":g" \
+ ${S}/usr/share/${MY_PN}/${MY_PN}_gtk
+ # fix python sitedir
+ sed -i -e "s:import flipview:import ${PN}\.flipview as flipview:" \
+ "${S}"/usr/share/${MY_PN}/${MY_PN}_gtk
+ # fix language imports
+ sed -i -e "/ st =/s:languages:${PN}\.languages:" \
+ "${S}"/usr/share/${MY_PN}/${MY_PN}_gtk
+ fi
+}
+
+src_install() {
+ dobin usr/bin/${MY_PN} usr/share/${MY_PN}/${MY_PN}_gtk
+ rm usr/share/${MY_PN}/${MY_PN}_gtk
+ insinto $(python_get_sitedir)/${PN}
+ touch ${D}/$(python_get_sitedir)/${PN}/__init__.py
+ doins usr/share/${MY_PN}/flipview.py
+ doins -r usr/share/${MY_PN}/languages
+ rm usr/share/${MY_PN}/flipview.py
+ rm -r usr/share/${MY_PN}/languages/
+ insinto /usr/share/pixmaps
+ doins usr/share/pixmaps/${MY_PN}.svg
+ insinto /usr/share/applications/
+ doins usr/share/applications/${MY_PN}.desktop
+ insinto /usr/share/${MY_PN}/
+ doins -r usr/share/${MY_PN}/*
+}
+
+pkg_postinst() {
+ python_mod_optimize $(python_get_sitedir)/${PN}
+}
+
+pkg_postrm() {
+ python_mod_cleanup $(python_get_sitedir)/${PN}
+}