diff options
author | Jim Ramsay <lack@gentoo.org> | 2007-01-31 19:40:30 +0000 |
---|---|---|
committer | Jim Ramsay <lack@gentoo.org> | 2007-01-31 19:40:30 +0000 |
commit | 9ca945b89c77c7378995fb7950c8ef22220f93dd (patch) | |
tree | 2c969c56c06c3589d85ac2f13a28f263b996009f | |
parent | Stable on ppc64; bug #163611 (diff) | |
download | gentoo-2-9ca945b89c77c7378995fb7950c8ef22220f93dd.tar.gz gentoo-2-9ca945b89c77c7378995fb7950c8ef22220f93dd.tar.bz2 gentoo-2-9ca945b89c77c7378995fb7950c8ef22220f93dd.zip |
Now creates a .desktop file for integration into XDG menus
(Portage version: 2.1.2-r4)
-rw-r--r-- | rox-base/rox/ChangeLog | 9 | ||||
-rw-r--r-- | rox-base/rox/files/digest-rox-2.5-r1 | 3 | ||||
-rw-r--r-- | rox-base/rox/rox-2.5-r1.ebuild | 109 |
3 files changed, 119 insertions, 2 deletions
diff --git a/rox-base/rox/ChangeLog b/rox-base/rox/ChangeLog index 524141d0c7eb..d77fc9fe1fe6 100644 --- a/rox-base/rox/ChangeLog +++ b/rox-base/rox/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for rox-base/rox -# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/rox-base/rox/ChangeLog,v 1.29 2006/11/23 19:59:19 blubb Exp $ +# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/rox-base/rox/ChangeLog,v 1.30 2007/01/31 19:40:30 lack Exp $ + +*rox-2.5-r1 (31 Jan 2007) + + 31 Jan 2007; Jim Ramsay <lack@gentoo.org> +rox-2.5-r1.ebuild: + Now creates a .desktop file for integration into XDG menus 23 Nov 2006; <blubb@gentoo.org> rox-2.5.ebuild: stable on amd64 diff --git a/rox-base/rox/files/digest-rox-2.5-r1 b/rox-base/rox/files/digest-rox-2.5-r1 new file mode 100644 index 000000000000..55fba566e79a --- /dev/null +++ b/rox-base/rox/files/digest-rox-2.5-r1 @@ -0,0 +1,3 @@ +MD5 56e6a29f2dbdf11d6f4b74a3f03ff959 rox-filer-2.5.tar.bz2 1785317 +RMD160 a0d2f9fcc3eca8063b77d93460a19ab38600e815 rox-filer-2.5.tar.bz2 1785317 +SHA256 d91120d78e770c9c09822560dacb42fca641d092cbe52064ca7232f089062921 rox-filer-2.5.tar.bz2 1785317 diff --git a/rox-base/rox/rox-2.5-r1.ebuild b/rox-base/rox/rox-2.5-r1.ebuild new file mode 100644 index 000000000000..fe2d3ff24660 --- /dev/null +++ b/rox-base/rox/rox-2.5-r1.ebuild @@ -0,0 +1,109 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/rox-base/rox/rox-2.5-r1.ebuild,v 1.1 2007/01/31 19:40:30 lack Exp $ + +inherit eutils + +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" + +# mark all as testing +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc sparc x86" + +DEPEND=">=x11-libs/gtk+-2.4 + >=dev-libs/glib-2.2 + >=dev-libs/libxml2-2.4.23 + >=x11-misc/shared-mime-info-0.14 + >=dev-util/pkgconfig-0.20 + svg? ( gnome-base/librsvg )" + +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 )" + +IUSE="svg" +ROXAPPDIR="/usr/lib/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 ROX-Filer + + # 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 ${ROXAPPDIR} + cp -r ROX-Filer/ ${D}/${ROXAPPDIR} + + # add documentation to be proper + ( cd ROX-Filer/Help + dodoc Changes COPYING README README-es TODO + ) + + # install shell script + dodir /usr/bin + + cat > "${D}/usr/bin/rox" << EOF +#!/bin/sh +exec ${ROXAPPDIR}/ROX-Filer/AppRun "\$@" +EOF + + chmod 0755 ${D}/usr/bin/rox + + # 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 ROX-Filer/.DirIcon ROX-Filer.png + + make_desktop_entry rox ROX-Filer ROX-Filer.png "System;Utility;Core;ROX" +} + +pkg_postinst() { + update-mime-database ${MIMEDIR} + einfo "${P} has been installed in ${ROXAPPDIR}." + einfo "To run, you may type rox at a prompt (within a WM) or" + einfo "add it to an .xinit or other script during WM startup." +} |