From 4d3d27b93ecc8df32e24baacb7c1208c88d16948 Mon Sep 17 00:00:00 2001 From: Jim Ramsay Date: Wed, 26 Nov 2008 21:40:08 +0000 Subject: Removed MIME hint that set all .DirIcon files to image/png - Breaks rox apps like XDGMenu who have SVG icons. (Portage version: 2.1.6_rc1/cvs/Linux 2.6.26-gentoo-r1 i686) --- rox-base/rox/ChangeLog | 8 ++- rox-base/rox/rox-2.8-r1.ebuild | 149 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 156 insertions(+), 1 deletion(-) create mode 100644 rox-base/rox/rox-2.8-r1.ebuild (limited to 'rox-base') diff --git a/rox-base/rox/ChangeLog b/rox-base/rox/ChangeLog index 5626838d1d26..94d9fc1d6973 100644 --- a/rox-base/rox/ChangeLog +++ b/rox-base/rox/ChangeLog @@ -1,6 +1,12 @@ # 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.62 2008/08/31 21:15:26 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/rox-base/rox/ChangeLog,v 1.63 2008/11/26 21:40:08 lack Exp $ + +*rox-2.8-r1 (26 Nov 2008) + + 26 Nov 2008; Jim Ramsay +rox-2.8-r1.ebuild: + Removed MIME hint that set all .DirIcon files to image/png - Breaks rox + apps like XDGMenu who have SVG icons. 31 Aug 2008; Raúl Porcel rox-2.8.ebuild: alpha/sparc stable wrt #236057 diff --git a/rox-base/rox/rox-2.8-r1.ebuild b/rox-base/rox/rox-2.8-r1.ebuild new file mode 100644 index 000000000000..f1d0a98c5085 --- /dev/null +++ b/rox-base/rox/rox-2.8-r1.ebuild @@ -0,0 +1,149 @@ +# 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.8-r1.ebuild,v 1.1 2008/11/26 21:40:08 lack Exp $ + +EAPI=1 +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 +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 ) + >=rox-base/zeroinstall-injector-0.31-r1 + " + +PDEPEND="rox-base/mime-editor + rox-base/thumbs + video? ( rox-extra/videothumbnail )" + +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 +} + +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/' AppRun + + ./AppRun --compile || die "make failed" + + # don't need these directories anymore + if [ -n "${KEEP_SRC}" ]; then + 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 + +src_install() { + doman rox.1 + + dodir ${APPDIR} + cp -r ${APPNAME}/ "${D}/${APPDIR}" + + # add documentation to be proper + pushd ${APPNAME}/Help + dodoc Changes README README-es TODO + popd + + # install shell script + dodir /usr/bin + + cat >"${D}/usr/bin/${WRAPPERNAME}" <"${D}/usr/bin/${WRAPPERNAME}uri" < 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} + 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." +} -- cgit v1.2.3-65-gdbad