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.7.ebuild
Date: Fri, 30 Nov 2007 21:36:32
Message-Id: E1IyDX9-00059g-HJ@stork.gentoo.org
1 lack 07/11/30 21:36:27
2
3 Modified: ChangeLog
4 Added: rox-2.7.ebuild
5 Log:
6 New version: Rox-2.7 is released
7 (Portage version: 2.1.3.18)
8
9 Revision Changes Path
10 1.48 rox-base/rox/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/rox-base/rox/ChangeLog?rev=1.48&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/rox-base/rox/ChangeLog?rev=1.48&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/rox-base/rox/ChangeLog?r1=1.47&r2=1.48
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/rox-base/rox/ChangeLog,v
19 retrieving revision 1.47
20 retrieving revision 1.48
21 diff -u -r1.47 -r1.48
22 --- ChangeLog 29 Nov 2007 15:23:44 -0000 1.47
23 +++ ChangeLog 30 Nov 2007 21:36:26 -0000 1.48
24 @@ -1,6 +1,13 @@
25 # ChangeLog for rox-base/rox
26 # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/rox-base/rox/ChangeLog,v 1.47 2007/11/29 15:23:44 lack Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/rox-base/rox/ChangeLog,v 1.48 2007/11/30 21:36:26 lack Exp $
29 +
30 +*rox-2.7 (30 Nov 2007)
31 +
32 + 30 Nov 2007; Jim Ramsay <lack@g.o> -files/rox-2.5-nostrip.patch,
33 + -files/rox-2.6-nostrip.patch, +files/rox-2.7-nostrip.patch,
34 + +rox-2.7.ebuild:
35 + New version: Rox-2.7 is released
36
37 29 Nov 2007; Jim Ramsay <lack@g.o> -rox-2.6.ebuild:
38 Version cleanup
39
40
41
42 1.1 rox-base/rox/rox-2.7.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/rox-base/rox/rox-2.7.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/rox-base/rox/rox-2.7.ebuild?rev=1.1&content-type=text/plain
46
47 Index: rox-2.7.ebuild
48 ===================================================================
49 # Copyright 1999-2007 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/rox-base/rox/rox-2.7.ebuild,v 1.1 2007/11/30 21:36:26 lack Exp $
52
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"
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
73 DEPEND="${RDEPEND}
74 >=dev-util/pkgconfig-0.20"
75
76 APPNAME="ROX-Filer"
77 APPDIR="/usr/$(get_libdir)/rox"
78 LIBDIR="/usr/$(get_libdir)/"
79 WRAPPERNAME="rox"
80 MIMEDIR="/usr/share/mime"
81 MIMECONFDIR="/etc/xdg/rox.sourceforge.net"
82
83 src_unpack() {
84 unpack ${A}
85 cd "${S}"
86 epatch "${FILESDIR}"/${P}-nostrip.patch
87 }
88
89 src_compile() {
90
91 cd ${APPNAME}
92
93 # Most rox self-compiles have a 'read' call to wait for the user to
94 # press return if the compile fails.
95 # Find and remove this:
96 sed -i.bak -e 's/\<read WAIT\>/#read/' AppRun
97
98 ./AppRun --compile || die "make failed"
99 (cd src; make clean) > /dev/null
100 # don't need these directories anymore
101 if [ -n "${KEEP_SRC}" ]; then
102 (cd src; make clean) > /dev/null
103 else
104 rm -rf src
105 fi
106 rm -fr build
107
108 # Restore the original AppRun
109 mv AppRun.bak AppRun
110 }
111
112 # new streamlined install
113
114 src_install() {
115 doman rox.1
116
117 dodir ${APPDIR}
118 cp -r ${APPNAME}/ "${D}/${APPDIR}"
119
120 # add documentation to be proper
121 ( cd ${APPNAME}/Help
122 dodoc Changes README README-es TODO
123 )
124
125 # install shell script
126 dodir /usr/bin
127
128 cat >"${D}/usr/bin/${WRAPPERNAME}" <<EOF
129 #!/bin/sh
130 if [[ "\${LIBDIRPATH}" ]]; then
131 export LIBDIRPATH="\${LIBDIRPATH}:${LIBDIR}"
132 else
133 export LIBDIRPATH="${LIBDIR}"
134 fi
135
136 if [[ "\${APPDIRPATH}" ]]; then
137 export APPDIRPATH="\${APPDIRPATH}:${APPDIR}"
138 else
139 export APPDIRPATH="${APPDIR}"
140 fi
141 exec "${APPDIR}/${APPNAME}/AppRun" "\$@"
142 EOF
143
144 cat >"${D}/usr/bin/${WRAPPERNAME}uri" <<EOF
145 #!/bin/sh
146 exec "${APPDIR}/${APPNAME}/AppRun" -U "\$@"
147 EOF
148
149 chmod 0755 "${D}/usr/bin/${WRAPPERNAME}"
150 chmod 0755 "${D}/usr/bin/${WRAPPERNAME}uri"
151
152 # install rox.xml
153 insinto ${MIMEDIR}/packages
154 doins rox.xml
155
156 # CHOICES system is gone. Now use XDG only
157 # these are shell scripts and must be +x.
158 exeinto ${MIMECONFDIR}/MIME-types
159 doexe Choices/MIME-types/*
160
161 insinto /usr/share/pixmaps
162 newins ${APPNAME}/.DirIcon ${APPNAME}.png
163
164 make_desktop_entry ${WRAPPERNAME} ${APPNAME} ${APPNAME}.png "System;Utility;Core;ROX"
165 }
166
167 pkg_postinst() {
168 update-mime-database ${MIMEDIR}
169 einfo "${APPNAME} has been installed in ${APPDIR}."
170 einfo "To run, you may type ${WRAPPERNAME} at a prompt (within a WM) or"
171 einfo "add it to an .xinit or other script during WM startup."
172 }
173
174
175
176 --
177 gentoo-commits@g.o mailing list