1 |
commit: d9f9661e26b6d1183773273fdcb9e8bc6b570257 |
2 |
Author: Markos Chandras <hwoarang <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu May 19 18:18:47 2011 +0000 |
4 |
Commit: Markos Chandras <hwoarang <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 19 18:18:47 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=dev/hwoarang.git;a=commit;h=d9f9661e |
7 |
|
8 |
xplanetfx: Initial commit for bug #364071 |
9 |
|
10 |
--- |
11 |
profiles/package.mask | 8 +- |
12 |
x11-misc/xplanetfx/Manifest | 3 + |
13 |
.../xplanetfx/files/xplanetfx-2.2.22-gentoo.patch | 13 ++++ |
14 |
x11-misc/xplanetfx/xplanetfx-2.2.22.ebuild | 77 ++++++++++++++++++++ |
15 |
4 files changed, 97 insertions(+), 4 deletions(-) |
16 |
|
17 |
diff --git a/profiles/package.mask b/profiles/package.mask |
18 |
index 6f4c141..7161cdb 100644 |
19 |
--- a/profiles/package.mask |
20 |
+++ b/profiles/package.mask |
21 |
@@ -1,4 +1,4 @@ |
22 |
-# Markos Chandras <hwoarang@g.o> (14 Mar 2011) |
23 |
-# Totally unusable ebuilds. Progress is tracked on bug #356479 |
24 |
-~dev-libs/boost-1.46.1 |
25 |
-~dev-util/boost-build-1.46.1 |
26 |
+# Markos Chandras <hwoarang@g.o> (19 May 2011) |
27 |
+# Totally broken but feel free to provide patches |
28 |
+# Bug: #364071 |
29 |
+x11-misc/xplanetfx |
30 |
|
31 |
diff --git a/x11-misc/xplanetfx/Manifest b/x11-misc/xplanetfx/Manifest |
32 |
new file mode 100644 |
33 |
index 0000000..b8f2abe |
34 |
--- /dev/null |
35 |
+++ b/x11-misc/xplanetfx/Manifest |
36 |
@@ -0,0 +1,3 @@ |
37 |
+AUX xplanetfx-2.2.22-gentoo.patch 609 RMD160 9a966e32a90c71b23e4b3ca131917e3a92509670 SHA1 8ce4eb77d0f1e0f9bfad7102fb17e6ecde8e3375 SHA256 207d3b9e09cbae8e78602c58c3dbad4f7314bfbda6a03a9969387d99be128b27 |
38 |
+DIST xplanetfx-2.2.22_all.tar.gz 16083293 RMD160 7865009fffc06f1c1912292029f4e58cd72ffa93 SHA1 4d0c7a2072fbdb43dfb2b7266c69e3dde43eb9d0 SHA256 cb176d36da44cb0f9a1d99cfd6bb24479f56a60bf2c77978e859a5f047106484 |
39 |
+EBUILD xplanetfx-2.2.22.ebuild 1960 RMD160 a93feb4d8abfe1d66a58cc97185047d33ba6ef9e SHA1 0343587bf9785ad8d349bd85b2945f4d16d103db SHA256 870b242cfb39f58c0b09c7e18eda4d1a9126de408d8d11cd6d4b1ca63a64ddc9 |
40 |
|
41 |
diff --git a/x11-misc/xplanetfx/files/xplanetfx-2.2.22-gentoo.patch b/x11-misc/xplanetfx/files/xplanetfx-2.2.22-gentoo.patch |
42 |
new file mode 100644 |
43 |
index 0000000..81bdbca |
44 |
--- /dev/null |
45 |
+++ b/x11-misc/xplanetfx/files/xplanetfx-2.2.22-gentoo.patch |
46 |
@@ -0,0 +1,13 @@ |
47 |
+Index: work/usr/share/xplanetFX/xplanetFX_gtk |
48 |
+=================================================================== |
49 |
+--- work.orig/usr/share/xplanetFX/xplanetFX_gtk |
50 |
++++ work/usr/share/xplanetFX/xplanetFX_gtk |
51 |
+@@ -60,7 +60,7 @@ sys.path.insert(0, basedir) |
52 |
+ class GUI(): |
53 |
+ """This class is a GUI for xplanetFX""" |
54 |
+ |
55 |
+- _VERSION = open(os.path.join(sys.path[0], 'version')).read().strip() |
56 |
++ _VERSION = open('/usr/share/xplanetFX/version').read().strip() |
57 |
+ _TITLE = "xplanetFX " + _VERSION |
58 |
+ _XFX_PATH = os.path.expanduser("~") + "/.xplanetFX" |
59 |
+ _THEME_PATH = os.path.join(_XFX_PATH, "templates") |
60 |
|
61 |
diff --git a/x11-misc/xplanetfx/xplanetfx-2.2.22.ebuild b/x11-misc/xplanetfx/xplanetfx-2.2.22.ebuild |
62 |
new file mode 100644 |
63 |
index 0000000..1355346 |
64 |
--- /dev/null |
65 |
+++ b/x11-misc/xplanetfx/xplanetfx-2.2.22.ebuild |
66 |
@@ -0,0 +1,77 @@ |
67 |
+# Copyright 1999-2011 Gentoo Foundation |
68 |
+# Distributed under the terms of the GNU General Public License v2 |
69 |
+# $Header: $ |
70 |
+ |
71 |
+EAPI=2 |
72 |
+ |
73 |
+PYTHON_DEPEND="2" |
74 |
+ |
75 |
+inherit eutils python |
76 |
+ |
77 |
+MY_PN="xplanetFX" |
78 |
+MY_P="${MY_PN}-${PV}" |
79 |
+ |
80 |
+DESCRIPTION="Utility for rendering high quality wallpapers of mother earth on your desktop" |
81 |
+HOMEPAGE="http://mein-neues-blog.de/category/xplanetfx/" |
82 |
+SRC_URI="http://repository.mein-neues-blog.de:9000/archive/${P}_all.tar.gz" |
83 |
+ |
84 |
+LICENSE="" |
85 |
+SLOT="0" |
86 |
+KEYWORDS="~amd64" |
87 |
+IUSE="gtk perl" |
88 |
+ |
89 |
+RDEPEND="|| ( media-gfx/imagemagick[perl?] media-gfx/graphicsmagic[perl?] ) |
90 |
+ x11-misc/xplanet |
91 |
+ dev-perl/libwww-perl |
92 |
+ gtk? ( dev-python/pygtk:2 ) |
93 |
+ sys-devel/bc" |
94 |
+DEPEND="" |
95 |
+ |
96 |
+S="${WORKDIR}" |
97 |
+ |
98 |
+pkg_setup() { |
99 |
+ python_set_active_version 2 |
100 |
+ python_pkg_setup |
101 |
+} |
102 |
+ |
103 |
+src_prepare() { |
104 |
+ epatch "${FILESDIR}"/${P}-gentoo.patch |
105 |
+ # fix gtk script |
106 |
+ if use gtk; then |
107 |
+ sed -i -e "/gtk/s:\$WORKDIR\/::" ${S}/usr/bin/${MY_PN} |
108 |
+ # fix paths |
109 |
+ sed -i -e "s:sys\.path\[0\]:\"\/usr/share/${MY_PN}\":g" \ |
110 |
+ ${S}/usr/share/${MY_PN}/${MY_PN}_gtk |
111 |
+ # fix python sitedir |
112 |
+ sed -i -e "s:import flipview:import ${PN}\.flipview as flipview:" \ |
113 |
+ "${S}"/usr/share/${MY_PN}/${MY_PN}_gtk |
114 |
+ # fix language imports |
115 |
+ sed -i -e "/ st =/s:languages:${PN}\.languages:" \ |
116 |
+ "${S}"/usr/share/${MY_PN}/${MY_PN}_gtk |
117 |
+ fi |
118 |
+} |
119 |
+ |
120 |
+src_install() { |
121 |
+ dobin usr/bin/${MY_PN} usr/share/${MY_PN}/${MY_PN}_gtk |
122 |
+ rm usr/share/${MY_PN}/${MY_PN}_gtk |
123 |
+ insinto $(python_get_sitedir)/${PN} |
124 |
+ touch ${D}/$(python_get_sitedir)/${PN}/__init__.py |
125 |
+ doins usr/share/${MY_PN}/flipview.py |
126 |
+ doins -r usr/share/${MY_PN}/languages |
127 |
+ rm usr/share/${MY_PN}/flipview.py |
128 |
+ rm -r usr/share/${MY_PN}/languages/ |
129 |
+ insinto /usr/share/pixmaps |
130 |
+ doins usr/share/pixmaps/${MY_PN}.svg |
131 |
+ insinto /usr/share/applications/ |
132 |
+ doins usr/share/applications/${MY_PN}.desktop |
133 |
+ insinto /usr/share/${MY_PN}/ |
134 |
+ doins -r usr/share/${MY_PN}/* |
135 |
+} |
136 |
+ |
137 |
+pkg_postinst() { |
138 |
+ python_mod_optimize $(python_get_sitedir)/${PN} |
139 |
+} |
140 |
+ |
141 |
+pkg_postrm() { |
142 |
+ python_mod_cleanup $(python_get_sitedir)/${PN} |
143 |
+} |