Gentoo Archives: gentoo-commits

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