summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Ramsay <lack@gentoo.org>2009-05-21 15:20:37 +0000
committerJim Ramsay <lack@gentoo.org>2009-05-21 15:20:37 +0000
commit92aa47efe2d721c9b631eb5371a6a9d60b245822 (patch)
treef53fd0a5d5ea2cd5e029ab869e4398ed53ef7cf7 /rox-base/rox
parentMarking gst-plugins-gio-0.10.22 ppc for bug 266986 (diff)
downloadhistorical-92aa47efe2d721c9b631eb5371a6a9d60b245822.tar.gz
historical-92aa47efe2d721c9b631eb5371a6a9d60b245822.tar.bz2
historical-92aa47efe2d721c9b631eb5371a6a9d60b245822.zip
Version bump: 2.9 is released, and removed some older versions
Package-Manager: portage-2.1.6.13/cvs/Linux i686
Diffstat (limited to 'rox-base/rox')
-rw-r--r--rox-base/rox/ChangeLog12
-rw-r--r--rox-base/rox/Manifest12
-rw-r--r--rox-base/rox/files/rox-2.7-nostrip.patch20
-rw-r--r--rox-base/rox/files/rox-2.7-text_plain.patch150
-rw-r--r--rox-base/rox/files/rox-2.9-nostrip.patch (renamed from rox-base/rox/files/rox-2.6.1-nostrip.patch)0
-rw-r--r--rox-base/rox/rox-2.7.ebuild125
-rw-r--r--rox-base/rox/rox-2.9.ebuild (renamed from rox-base/rox/rox-2.6.1.ebuild)76
7 files changed, 62 insertions, 333 deletions
diff --git a/rox-base/rox/ChangeLog b/rox-base/rox/ChangeLog
index 94d9fc1d6973..f81600a2107a 100644
--- a/rox-base/rox/ChangeLog
+++ b/rox-base/rox/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for rox-base/rox
-# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/rox-base/rox/ChangeLog,v 1.63 2008/11/26 21:40:08 lack Exp $
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/rox-base/rox/ChangeLog,v 1.64 2009/05/21 15:20:37 lack Exp $
+
+*rox-2.9 (20 May 2009)
+
+ 20 May 2009; Jim Ramsay <lack@gentoo.org> -rox-2.6.1.ebuild,
+ -files/rox-2.6.1-nostrip.patch, -rox-2.7.ebuild,
+ -files/rox-2.7-nostrip.patch, -files/rox-2.7-text_plain.patch,
+ +rox-2.9.ebuild, +files/rox-2.9-nostrip.patch:
+ Version bump: 2.9 is released, and removed some older versions
*rox-2.8-r1 (26 Nov 2008)
diff --git a/rox-base/rox/Manifest b/rox-base/rox/Manifest
index 5c9ca9188ed7..7e5c83d1a307 100644
--- a/rox-base/rox/Manifest
+++ b/rox-base/rox/Manifest
@@ -1,13 +1,9 @@
-AUX rox-2.6.1-nostrip.patch 664 RMD160 8b54d9493f0a4b81632a4d448b1003402859c6dc SHA1 b9f0fe536442382a393e059ed8a2c830663427cb SHA256 4fce67a2c336f8ce66f3eccc9ab42b52f16bb99c03e6f29369024e11821a03fc
-AUX rox-2.7-nostrip.patch 664 RMD160 8b54d9493f0a4b81632a4d448b1003402859c6dc SHA1 b9f0fe536442382a393e059ed8a2c830663427cb SHA256 4fce67a2c336f8ce66f3eccc9ab42b52f16bb99c03e6f29369024e11821a03fc
-AUX rox-2.7-text_plain.patch 4049 RMD160 71d7336fa2b3eebca7273dbcc0fcc3759b25b11d SHA1 bce0d14edf94ee1c7d5badbac495f6c0df3e4e64 SHA256 60f301cc90d1bd93982a2bb7d7a12b22e9ba39cf702db1a720b893b41d6a740f
AUX rox-2.8-nostrip.patch 664 RMD160 8b54d9493f0a4b81632a4d448b1003402859c6dc SHA1 b9f0fe536442382a393e059ed8a2c830663427cb SHA256 4fce67a2c336f8ce66f3eccc9ab42b52f16bb99c03e6f29369024e11821a03fc
-DIST rox-filer-2.6.1.tar.bz2 1816711 RMD160 94a3320883c49066072d44f25f417e20739711ca SHA1 5364ac260970ecafa58f92892becf8104db025a3 SHA256 e7efefbfa8e37ba7263771bdfd0b16c9f4b47b09d301b82616012ad53eb03e02
-DIST rox-filer-2.7.tar.bz2 1829001 RMD160 f378129073b00e388559380fc551b23437cd4cbf SHA1 421a9999885b04482e3efb6da18705e6788cb4da SHA256 c43ad72760e5ef2c9150d00c7beae24c99c1df102443e87e6ccd969427a47c92
+AUX rox-2.9-nostrip.patch 664 RMD160 8b54d9493f0a4b81632a4d448b1003402859c6dc SHA1 b9f0fe536442382a393e059ed8a2c830663427cb SHA256 4fce67a2c336f8ce66f3eccc9ab42b52f16bb99c03e6f29369024e11821a03fc
DIST rox-filer-2.8.tar.bz2 1834202 RMD160 9f0aecde32fdd9ecc39efe80bd037b95850bb38c SHA1 7eec68a106a2605b2733025e44d890961b52ea1e SHA256 f43fd00bcce7ef86125c270826c9df48b0de3edf813826a7de8cce2c5507b268
-EBUILD rox-2.6.1.ebuild 2835 RMD160 221c18c70625a0b8a9a2126604d843d9810e8d3a SHA1 851d6e50af026d29a6e42997c53fe1c1fc795e2f SHA256 4883e5dcc6108f3fd3b921e0e4faa1a889795c80cfc4ae907c367894f74447cb
-EBUILD rox-2.7.ebuild 2880 RMD160 4eba693f28bcaf6f02c9cf1e837fc452987cf423 SHA1 832e31c25939a55bd9ae9a4d13028b88b8c144c7 SHA256 d32cbfef276312ff23b9ea84cfee503d36360e81ba9351e9b173def80fb4f7a3
+DIST rox-filer-2.9.tar.bz2 1894519 RMD160 2475b150c228987dc0de732252934c2647f3b6d1 SHA1 23cce525aeab20568b5b3c88919c364a5b802aa3 SHA256 7f6143ea8969d259c932f027a9b75ccba646f4e8075d5af2c02c858fc41eb672
EBUILD rox-2.8-r1.ebuild 3681 RMD160 f6fff5aa5857cf81f6499e10ba6af08e567d76f9 SHA1 c4dde427ea2274c8ed099d12da3657956b3fbec7 SHA256 95b3509df582191eeb2ce9d336b90bddbf8a895b7ec24625f0338360d770f416
EBUILD rox-2.8.ebuild 3620 RMD160 05becb4f3cfc997ba4f550b1edf8dc5ee527d2f2 SHA1 4907870396b5256fc42ac8c21d7268ac97999827 SHA256 88f6c319fdf4e8c474aafb2fc9e113ecf25dee0f7f29c3b6e339c2d377e27ae5
-MISC ChangeLog 13616 RMD160 d1c2ea71b9d12a7036f0f653e86d12927fd1039e SHA1 c75765b13314a3f914ecad28f418cc9d6b6cf1aa SHA256 d189d8d22a499d63f532a413775dcbe3f48f81e6da00a35adcfd7a8ba12b3fbd
+EBUILD rox-2.9.ebuild 3508 RMD160 567ffad82614a0d022c859597f102346021c7475 SHA1 8553c3d0307bb68ffecc829f3f8fb44b6e416a7d SHA256 60aab314f3fe1b54755b4537b63515ffa12746bfbb8a1b64e671eded82225a64
+MISC ChangeLog 13934 RMD160 d70b4a61328f7ef9c3c81f00d1609eb906bbe9d1 SHA1 89f536b357c27fcbff419f0e59087bf55c439195 SHA256 23c1c8b49d98d4b09f710fcdaec08b5ada4f2c0790b978be2afffe2a8e8130e3
MISC metadata.xml 303 RMD160 f0f8f4eccfc33d0cd7fc7c33b79cb37149bc84f3 SHA1 47973f2a8326ce91710b8b343807bd6cbebddfd1 SHA256 61d2d70170955a18a61d47d505c64fe64f9a6eba21a3989eff74ba9f36154b66
diff --git a/rox-base/rox/files/rox-2.7-nostrip.patch b/rox-base/rox/files/rox-2.7-nostrip.patch
deleted file mode 100644
index 2a63ce73f160..000000000000
--- a/rox-base/rox/files/rox-2.7-nostrip.patch
+++ /dev/null
@@ -1,20 +0,0 @@
-Index: ROX-Filer/src/Makefile.in
-===================================================================
---- ROX-Filer/src/Makefile.in (revision 4834)
-+++ ROX-Filer/src/Makefile.in (working copy)
-@@ -51,10 +51,12 @@
- ${PROG}: ${OBJECTS}
- ${CC} -o "${PROG}" ${OBJECTS} ${LDFLAGS}
- mv "${PROG}" "${PLATFORM_DIR}"
-+
-+${PROG}.dbg: ${PROG}
- -(cd "${PLATFORM_DIR}" && \
-- objcopy --only-keep-debug ROX-Filer ROX-Filer.dbg && \
-- strip ROX-Filer && \
-- objcopy --add-gnu-debuglink=ROX-Filer.dbg ROX-Filer)
-+ objcopy --only-keep-debug ${PROG} ${PROG}.dbg && \
-+ strip ${PROG} && \
-+ objcopy --add-gnu-debuglink=${PROG}.dbg ${PROG})
-
- clean:
- rm -f *.o Makefile.bak
diff --git a/rox-base/rox/files/rox-2.7-text_plain.patch b/rox-base/rox/files/rox-2.7-text_plain.patch
deleted file mode 100644
index 37630e76175c..000000000000
--- a/rox-base/rox/files/rox-2.7-text_plain.patch
+++ /dev/null
@@ -1,150 +0,0 @@
-commit ed0adb6e4e873eca15b4765035d3c89888c74a72
-Author: Stephen Watson <stephen@kerofin.demon.co.uk>
-Date: Mon Jan 21 23:33:13 2008 +0000
-
- MIME magic lookup now returns text/plain for certain unknown file types.
- Restored the code, lost in the update to the newer XDG MIME code, which checks
- unknown files to see if they are text.
-
- Modifications to the XDG code are tagged with ROX: comments.
-
-diff --git a/ROX-Filer/src/xdgmime.c b/ROX-Filer/src/xdgmime.c
-index 133282d..51d38d6 100644
---- a/ROX-Filer/src/xdgmime.c
-+++ b/ROX-Filer/src/xdgmime.c
-@@ -65,6 +65,7 @@ XdgMimeCache **_xdg_mime_caches = NULL;
- static int n_caches = 0;
-
- const char xdg_mime_type_unknown[] = "application/octet-stream";
-+const char xdg_mime_type_unknown_text[] = "text/plain"; /* ROX: */
-
-
- enum
-diff --git a/ROX-Filer/src/xdgmime.h b/ROX-Filer/src/xdgmime.h
-index 82b5585..52d1524 100644
---- a/ROX-Filer/src/xdgmime.h
-+++ b/ROX-Filer/src/xdgmime.h
-@@ -74,7 +74,11 @@ typedef void (*XdgMimeDestroy) (void *user_data);
- #endif
-
- extern const char xdg_mime_type_unknown[];
--#define XDG_MIME_TYPE_UNKNOWN xdg_mime_type_unknown
-+#define XDG_MIME_TYPE_UNKNOWN xdg_mime_type_unknown
-+
-+/* ROX: */
-+extern const char xdg_mime_type_unknown_text[];
-+#define XDG_MIME_TYPE_UNKNOWN_TEXT xdg_mime_type_unknown_text
-
- const char *xdg_mime_get_mime_type_for_data (const void *data,
- size_t len);
-diff --git a/ROX-Filer/src/xdgmimemagic.c b/ROX-Filer/src/xdgmimemagic.c
-index 892688b..d1d04b6 100644
---- a/ROX-Filer/src/xdgmimemagic.c
-+++ b/ROX-Filer/src/xdgmimemagic.c
-@@ -39,6 +39,9 @@
- #include <errno.h>
- #include <limits.h>
-
-+/* ROX: */
-+#include <glib.h>
-+
- #ifndef FALSE
- #define FALSE (0)
- #endif
-@@ -654,6 +657,83 @@ _xdg_mime_magic_get_buffer_extents (XdgMimeMagic *mime_magic)
- return mime_magic->max_extent;
- }
-
-+static gboolean _rox_buffer_looks_like_text (const void *data,
-+ const size_t len)
-+{
-+ gchar *end;
-+
-+ if (g_utf8_validate (data, len, (const gchar**)&end))
-+ {
-+ /* g_utf8_validate allows control characters */
-+ int i;
-+ for (i = 0; i < len; i++)
-+ {
-+ unsigned char c = ((const guchar *) data)[i];
-+ if (c < 32 && c != '\r' && c != '\n' && c != '\t')
-+ return FALSE;
-+ }
-+ return TRUE;
-+
-+ } else {
-+ /* Check whether the string was truncated in the middle of
-+ * a valid UTF8 char, or if we really have an invalid
-+ * UTF8 string
-+ */
-+ gint remaining_bytes = len;
-+
-+ remaining_bytes -= (end-((gchar*)data));
-+
-+ if (g_utf8_get_char_validated(end, remaining_bytes) == -2)
-+ return TRUE;
-+#if defined(HAVE_WCTYPE_H) && defined (HAVE_MBRTOWC)
-+ else {
-+ size_t wlen;
-+ wchar_t wc;
-+ gchar *src, *end;
-+ mbstate_t state;
-+
-+ src = data;
-+ end = data+len;
-+
-+ memset (&state, 0, sizeof (state));
-+ while (src < end) {
-+ /* Don't allow embedded zeros in textfiles */
-+ if (*src == 0)
-+ return FALSE;
-+
-+ wlen = mbrtowc(&wc, src, end - src, &state);
-+
-+ if (wlen == (size_t)(-1)) {
-+ /* Illegal mb sequence */
-+ return FALSE;
-+ }
-+
-+ if (wlen == (size_t)(-2)) {
-+ /* No complete mb char before end
-+ * Probably a cut off char which is ok */
-+ return TRUE;
-+ }
-+
-+ if (wlen == 0) {
-+ /* Don't allow embedded zeros in textfiles */
-+ return FALSE;
-+ }
-+
-+ if (!iswspace (wc) && !iswprint(wc)) {
-+ /* Not a printable or whitspace
-+ * Probably not a text file */
-+ return FALSE;
-+ }
-+
-+ src += wlen;
-+ }
-+ return TRUE;
-+ }
-+#endif /* defined(HAVE_WCTYPE_H) && defined (HAVE_MBRTOWC) */
-+ }
-+ return FALSE;
-+}
-+
- const char *
- _xdg_mime_magic_lookup_data (XdgMimeMagic *mime_magic,
- const void *data,
-@@ -708,6 +788,12 @@ _xdg_mime_magic_lookup_data (XdgMimeMagic *mime_magic,
- }
- }
-
-+ if (mime_type == NULL)
-+ {
-+ if(_rox_buffer_looks_like_text(data, len))
-+ mime_type = XDG_MIME_TYPE_UNKNOWN_TEXT;
-+ }
-+
- return mime_type;
- }
-
diff --git a/rox-base/rox/files/rox-2.6.1-nostrip.patch b/rox-base/rox/files/rox-2.9-nostrip.patch
index 2a63ce73f160..2a63ce73f160 100644
--- a/rox-base/rox/files/rox-2.6.1-nostrip.patch
+++ b/rox-base/rox/files/rox-2.9-nostrip.patch
diff --git a/rox-base/rox/rox-2.7.ebuild b/rox-base/rox/rox-2.7.ebuild
deleted file mode 100644
index 0f50c9073d93..000000000000
--- a/rox-base/rox/rox-2.7.ebuild
+++ /dev/null
@@ -1,125 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/rox-base/rox/rox-2.7.ebuild,v 1.5 2008/08/28 17:55:16 lack Exp $
-
-inherit eutils multilib
-
-MY_P="rox-filer-${PV}"
-S="${WORKDIR}/${MY_P}"
-
-DESCRIPTION="ROX is a desktop environment and filer based on RISC OS."
-HOMEPAGE="http://rox.sourceforge.net/"
-SRC_URI="mirror://sourceforge/rox/${MY_P}.tar.bz2"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha amd64 ~ppc ~sparc ~x86"
-IUSE="svg"
-
-RDEPEND=">=x11-libs/gtk+-2.4
- >=dev-libs/glib-2.2
- >=dev-libs/libxml2-2.4.23
- >=x11-misc/shared-mime-info-0.14
- svg? ( gnome-base/librsvg )"
-
-DEPEND="${RDEPEND}
- >=dev-util/pkgconfig-0.20"
-
-APPNAME="ROX-Filer"
-APPDIR="/usr/$(get_libdir)/rox"
-LIBDIR="/usr/$(get_libdir)/"
-WRAPPERNAME="rox"
-MIMEDIR="/usr/share/mime"
-MIMECONFDIR="/etc/xdg/rox.sourceforge.net"
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
- epatch "${FILESDIR}"/${P}-nostrip.patch
- epatch "${FILESDIR}"/${P}-text_plain.patch
-}
-
-src_compile() {
-
- cd ${APPNAME}
-
- # Most rox self-compiles have a 'read' call to wait for the user to
- # press return if the compile fails.
- # Find and remove this:
- sed -i.bak -e 's/\<read WAIT\>/#read/' AppRun
-
- ./AppRun --compile || die "make failed"
- (cd src; make clean) > /dev/null
- # don't need these directories anymore
- if [ -n "${KEEP_SRC}" ]; then
- (cd src; make clean) > /dev/null
- else
- rm -rf src
- fi
- rm -fr build
-
- # Restore the original AppRun
- mv AppRun.bak AppRun
-}
-
-# new streamlined install
-
-src_install() {
- doman rox.1
-
- dodir ${APPDIR}
- cp -r ${APPNAME}/ "${D}/${APPDIR}"
-
- # add documentation to be proper
- ( cd ${APPNAME}/Help
- dodoc Changes README README-es TODO
- )
-
- # install shell script
- dodir /usr/bin
-
- cat >"${D}/usr/bin/${WRAPPERNAME}" <<EOF
-#!/bin/sh
-if [ "\${LIBDIRPATH}" ]; then
- export LIBDIRPATH="\${LIBDIRPATH}:${LIBDIR}"
-else
- export LIBDIRPATH="${LIBDIR}"
-fi
-
-if [ "\${APPDIRPATH}" ]; then
- export APPDIRPATH="\${APPDIRPATH}:${APPDIR}"
-else
- export APPDIRPATH="${APPDIR}"
-fi
-exec "${APPDIR}/${APPNAME}/AppRun" "\$@"
-EOF
-
- cat >"${D}/usr/bin/${WRAPPERNAME}uri" <<EOF
-#!/bin/sh
-exec "${APPDIR}/${APPNAME}/AppRun" -U "\$@"
-EOF
-
- chmod 0755 "${D}/usr/bin/${WRAPPERNAME}"
- chmod 0755 "${D}/usr/bin/${WRAPPERNAME}uri"
-
- # install rox.xml
- insinto ${MIMEDIR}/packages
- doins rox.xml
-
- # CHOICES system is gone. Now use XDG only
- # these are shell scripts and must be +x.
- exeinto ${MIMECONFDIR}/MIME-types
- doexe Choices/MIME-types/*
-
- insinto /usr/share/pixmaps
- newins ${APPNAME}/.DirIcon ${APPNAME}.png
-
- make_desktop_entry ${WRAPPERNAME} ${APPNAME} ${APPNAME} "System;Utility;Core;ROX"
-}
-
-pkg_postinst() {
- update-mime-database ${MIMEDIR}
- einfo "${APPNAME} has been installed in ${APPDIR}."
- einfo "To run, you may type ${WRAPPERNAME} at a prompt (within a WM) or"
- einfo "add it to an .xinit or other script during WM startup."
-}
diff --git a/rox-base/rox/rox-2.6.1.ebuild b/rox-base/rox/rox-2.9.ebuild
index 67eaf6176b68..4691a846fddf 100644
--- a/rox-base/rox/rox-2.6.1.ebuild
+++ b/rox-base/rox/rox-2.9.ebuild
@@ -1,7 +1,8 @@
-# Copyright 1999-2008 Gentoo Foundation
+# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/rox-base/rox/rox-2.6.1.ebuild,v 1.9 2008/02/29 20:32:30 carlo Exp $
+# $Header: /var/cvsroot/gentoo-x86/rox-base/rox/rox-2.9.ebuild,v 1.1 2009/05/21 15:20:37 lack Exp $
+EAPI=2
inherit eutils multilib
MY_P="rox-filer-${PV}"
@@ -13,14 +14,20 @@ SRC_URI="mirror://sourceforge/rox/${MY_P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
-KEYWORDS="alpha amd64 ppc sparc x86"
-IUSE="svg"
+KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
+IUSE="svg +video"
RDEPEND=">=x11-libs/gtk+-2.4
>=dev-libs/glib-2.2
>=dev-libs/libxml2-2.4.23
>=x11-misc/shared-mime-info-0.14
- svg? ( gnome-base/librsvg )"
+ svg? ( gnome-base/librsvg )
+ >=rox-base/zeroinstall-injector-0.40
+ "
+
+PDEPEND="rox-base/mime-editor
+ rox-base/thumbs
+ video? ( rox-extra/videothumbnail )"
DEPEND="${RDEPEND}
>=dev-util/pkgconfig-0.20"
@@ -32,33 +39,28 @@ WRAPPERNAME="rox"
MIMEDIR="/usr/share/mime"
MIMECONFDIR="/etc/xdg/rox.sourceforge.net"
-src_unpack() {
- unpack ${A}
- cd "${S}"
+src_prepare() {
epatch "${FILESDIR}"/${P}-nostrip.patch
}
src_compile() {
-
cd ${APPNAME}
- # Most rox self-compiles have a 'read' call to wait for the user to
- # press return if the compile fails.
- # Find and remove this:
- sed -i.bak -e 's/\<read WAIT\>/#read/' AppRun
+ mkdir build
+ pushd build
+ ../src/configure
+ emake
+ popd
- ./AppRun --compile || die "make failed"
- (cd src; make clean) > /dev/null
# don't need these directories anymore
if [ -n "${KEEP_SRC}" ]; then
- (cd src; make clean) > /dev/null
+ pushd src
+ make clean > /dev/null
+ popd
else
rm -rf src
fi
rm -fr build
-
- # Restore the original AppRun
- mv AppRun.bak AppRun
}
# new streamlined install
@@ -70,9 +72,9 @@ src_install() {
cp -r ${APPNAME}/ "${D}/${APPDIR}"
# add documentation to be proper
- ( cd ${APPNAME}/Help
+ pushd ${APPNAME}/Help
dodoc Changes README README-es TODO
- )
+ popd
# install shell script
dodir /usr/bin
@@ -98,12 +100,12 @@ EOF
exec "${APPDIR}/${APPNAME}/AppRun" -U "\$@"
EOF
- chmod 0755 "${D}/usr/bin/${WRAPPERNAME}"
- chmod 0755 "${D}/usr/bin/${WRAPPERNAME}uri"
+ fperms 0755 "/usr/bin/${WRAPPERNAME}"
+ fperms 0755 "/usr/bin/${WRAPPERNAME}uri"
- # install rox.xml
- insinto ${MIMEDIR}/packages
- doins rox.xml
+ # Do not install rox.xml - It wrecks any app with a SVG-format .DirIcon
+ #insinto ${MIMEDIR}/packages
+ #doins rox.xml
# CHOICES system is gone. Now use XDG only
# these are shell scripts and must be +x.
@@ -113,11 +115,29 @@ EOF
insinto /usr/share/pixmaps
newins ${APPNAME}/.DirIcon ${APPNAME}.png
- make_desktop_entry ${WRAPPERNAME} ${APPNAME} ${APPNAME} "System;Utility;Core;ROX"
+ make_desktop_entry ${WRAPPERNAME} ${APPNAME} ${APPNAME} "System;FileTools;FileManager"
+
+ # Install the 0install feed
+ local NATIVE_FEED_DIR="/usr/share/0install.net/native_feeds"
+ local ICON_CACHE_DIR="/var/cache/0install.net/interface_icons"
+
+ 0distutils ${APPNAME}.xml > tmp.native_feed || die "0distutils feed edit failed"
+ insinto "${APPDIR}/${APPNAME}"
+ newins tmp.native_feed ${APPNAME}.xml
+
+ local feedname
+ feedname=$(0distutils -e tmp.native_feed) || die "0distutils URI escape failed"
+ dosym "${APPDIR}/${APPNAME}/${APPNAME}.xml" "${NATIVE_FEED_DIR}/${feedname}"
+
+ local cachedname
+ cachedname=$(0distutils -c tmp.native_feed) || die "0distutils URI escape failed"
+ dosym "${APPDIR}/${APPNAME}/.DirIcon" "${ICON_CACHE_DIR}/${cachedname}"
}
pkg_postinst() {
- update-mime-database ${MIMEDIR}
+ # Do not install rox.xml - It wrecks any app with a SVG-format .DirIcon
+ #update-mime-database ${MIMEDIR}
+
einfo "${APPNAME} has been installed in ${APPDIR}."
einfo "To run, you may type ${WRAPPERNAME} at a prompt (within a WM) or"
einfo "add it to an .xinit or other script during WM startup."