1 |
lack 08/11/26 21:40:08 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: rox-2.8-r1.ebuild |
5 |
Log: |
6 |
Removed MIME hint that set all .DirIcon files to image/png - Breaks rox apps like XDGMenu who have SVG icons. |
7 |
(Portage version: 2.1.6_rc1/cvs/Linux 2.6.26-gentoo-r1 i686) |
8 |
|
9 |
Revision Changes Path |
10 |
1.63 rox-base/rox/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/rox-base/rox/ChangeLog?rev=1.63&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/rox-base/rox/ChangeLog?rev=1.63&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/rox-base/rox/ChangeLog?r1=1.62&r2=1.63 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/rox-base/rox/ChangeLog,v |
19 |
retrieving revision 1.62 |
20 |
retrieving revision 1.63 |
21 |
diff -u -r1.62 -r1.63 |
22 |
--- ChangeLog 31 Aug 2008 21:15:26 -0000 1.62 |
23 |
+++ ChangeLog 26 Nov 2008 21:40:08 -0000 1.63 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for rox-base/rox |
26 |
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/rox-base/rox/ChangeLog,v 1.62 2008/08/31 21:15:26 armin76 Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/rox-base/rox/ChangeLog,v 1.63 2008/11/26 21:40:08 lack Exp $ |
29 |
+ |
30 |
+*rox-2.8-r1 (26 Nov 2008) |
31 |
+ |
32 |
+ 26 Nov 2008; Jim Ramsay <lack@g.o> +rox-2.8-r1.ebuild: |
33 |
+ Removed MIME hint that set all .DirIcon files to image/png - Breaks rox |
34 |
+ apps like XDGMenu who have SVG icons. |
35 |
|
36 |
31 Aug 2008; Raúl Porcel <armin76@g.o> rox-2.8.ebuild: |
37 |
alpha/sparc stable wrt #236057 |
38 |
|
39 |
|
40 |
|
41 |
1.1 rox-base/rox/rox-2.8-r1.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/rox-base/rox/rox-2.8-r1.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/rox-base/rox/rox-2.8-r1.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: rox-2.8-r1.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2008 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/rox-base/rox/rox-2.8-r1.ebuild,v 1.1 2008/11/26 21:40:08 lack Exp $ |
51 |
|
52 |
EAPI=1 |
53 |
inherit eutils multilib |
54 |
|
55 |
MY_P="rox-filer-${PV}" |
56 |
S="${WORKDIR}/${MY_P}" |
57 |
|
58 |
DESCRIPTION="ROX is a desktop environment and filer based on RISC OS." |
59 |
HOMEPAGE="http://rox.sourceforge.net/" |
60 |
SRC_URI="mirror://sourceforge/rox/${MY_P}.tar.bz2" |
61 |
|
62 |
LICENSE="GPL-2" |
63 |
SLOT="0" |
64 |
KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86" |
65 |
IUSE="svg +video" |
66 |
|
67 |
RDEPEND=">=x11-libs/gtk+-2.4 |
68 |
>=dev-libs/glib-2.2 |
69 |
>=dev-libs/libxml2-2.4.23 |
70 |
>=x11-misc/shared-mime-info-0.14 |
71 |
svg? ( gnome-base/librsvg ) |
72 |
>=rox-base/zeroinstall-injector-0.31-r1 |
73 |
" |
74 |
|
75 |
PDEPEND="rox-base/mime-editor |
76 |
rox-base/thumbs |
77 |
video? ( rox-extra/videothumbnail )" |
78 |
|
79 |
DEPEND="${RDEPEND} |
80 |
>=dev-util/pkgconfig-0.20" |
81 |
|
82 |
APPNAME="ROX-Filer" |
83 |
APPDIR="/usr/$(get_libdir)/rox" |
84 |
LIBDIR="/usr/$(get_libdir)/" |
85 |
WRAPPERNAME="rox" |
86 |
MIMEDIR="/usr/share/mime" |
87 |
MIMECONFDIR="/etc/xdg/rox.sourceforge.net" |
88 |
|
89 |
src_unpack() { |
90 |
unpack ${A} |
91 |
cd "${S}" |
92 |
epatch "${FILESDIR}"/${P}-nostrip.patch |
93 |
} |
94 |
|
95 |
src_compile() { |
96 |
|
97 |
cd ${APPNAME} |
98 |
|
99 |
# Most rox self-compiles have a 'read' call to wait for the user to |
100 |
# press return if the compile fails. |
101 |
# Find and remove this: |
102 |
sed -i.bak -e 's/\<read WAIT\>/#read/' AppRun |
103 |
|
104 |
./AppRun --compile || die "make failed" |
105 |
|
106 |
# don't need these directories anymore |
107 |
if [ -n "${KEEP_SRC}" ]; then |
108 |
pushd src |
109 |
make clean > /dev/null |
110 |
popd |
111 |
else |
112 |
rm -rf src |
113 |
fi |
114 |
rm -fr build |
115 |
|
116 |
# Restore the original AppRun |
117 |
mv AppRun.bak AppRun |
118 |
} |
119 |
|
120 |
# new streamlined install |
121 |
|
122 |
src_install() { |
123 |
doman rox.1 |
124 |
|
125 |
dodir ${APPDIR} |
126 |
cp -r ${APPNAME}/ "${D}/${APPDIR}" |
127 |
|
128 |
# add documentation to be proper |
129 |
pushd ${APPNAME}/Help |
130 |
dodoc Changes README README-es TODO |
131 |
popd |
132 |
|
133 |
# install shell script |
134 |
dodir /usr/bin |
135 |
|
136 |
cat >"${D}/usr/bin/${WRAPPERNAME}" <<EOF |
137 |
#!/bin/sh |
138 |
if [ "\${LIBDIRPATH}" ]; then |
139 |
export LIBDIRPATH="\${LIBDIRPATH}:${LIBDIR}" |
140 |
else |
141 |
export LIBDIRPATH="${LIBDIR}" |
142 |
fi |
143 |
|
144 |
if [ "\${APPDIRPATH}" ]; then |
145 |
export APPDIRPATH="\${APPDIRPATH}:${APPDIR}" |
146 |
else |
147 |
export APPDIRPATH="${APPDIR}" |
148 |
fi |
149 |
exec "${APPDIR}/${APPNAME}/AppRun" "\$@" |
150 |
EOF |
151 |
|
152 |
cat >"${D}/usr/bin/${WRAPPERNAME}uri" <<EOF |
153 |
#!/bin/sh |
154 |
exec "${APPDIR}/${APPNAME}/AppRun" -U "\$@" |
155 |
EOF |
156 |
|
157 |
fperms 0755 "/usr/bin/${WRAPPERNAME}" |
158 |
fperms 0755 "/usr/bin/${WRAPPERNAME}uri" |
159 |
|
160 |
# Do not install rox.xml - It wrecks any app with a SVG-format .DirIcon |
161 |
#insinto ${MIMEDIR}/packages |
162 |
#doins rox.xml |
163 |
|
164 |
# CHOICES system is gone. Now use XDG only |
165 |
# these are shell scripts and must be +x. |
166 |
exeinto ${MIMECONFDIR}/MIME-types |
167 |
doexe Choices/MIME-types/* |
168 |
|
169 |
insinto /usr/share/pixmaps |
170 |
newins ${APPNAME}/.DirIcon ${APPNAME}.png |
171 |
|
172 |
make_desktop_entry ${WRAPPERNAME} ${APPNAME} ${APPNAME} "System;FileTools;FileManager" |
173 |
|
174 |
# Install the 0install feed |
175 |
local NATIVE_FEED_DIR="/usr/share/0install.net/native_feeds" |
176 |
local ICON_CACHE_DIR="/var/cache/0install.net/interface_icons" |
177 |
|
178 |
0distutils ${APPNAME}.xml > tmp.native_feed || die "0distutils feed edit failed" |
179 |
insinto "${APPDIR}/${APPNAME}" |
180 |
newins tmp.native_feed ${APPNAME}.xml |
181 |
|
182 |
local feedname |
183 |
feedname=$(0distutils -e tmp.native_feed) || die "0distutils URI escape failed" |
184 |
dosym "${APPDIR}/${APPNAME}/${APPNAME}.xml" "${NATIVE_FEED_DIR}/${feedname}" |
185 |
|
186 |
local cachedname |
187 |
cachedname=$(0distutils -c tmp.native_feed) || die "0distutils URI escape failed" |
188 |
dosym "${APPDIR}/${APPNAME}/.DirIcon" "${ICON_CACHE_DIR}/${cachedname}" |
189 |
} |
190 |
|
191 |
pkg_postinst() { |
192 |
update-mime-database ${MIMEDIR} |
193 |
einfo "${APPNAME} has been installed in ${APPDIR}." |
194 |
einfo "To run, you may type ${WRAPPERNAME} at a prompt (within a WM) or" |
195 |
einfo "add it to an .xinit or other script during WM startup." |
196 |
} |