You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

72 lines
2.1 KiB

# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit eutils virtualx
DESCRIPTION="ROX-Filer a drag and drop spatial file manager"
HOMEPAGE="http://rox.sourceforge.net/desktop"
SRC_URI="mirror://sourceforge/rox/${P}.tar.bz2"
LICENSE="GPL-2 LGPL-2"
SLOT="0"
KEYWORDS="~amd64 ~arm ~x86"
IUSE=""
COMMON_DEPEND="dev-lang/perl
dev-libs/libxml2:2
gnome-base/libglade:2.0
x11-libs/gtk+:2"
RDEPEND="${COMMON_DEPEND}
x11-misc/shared-mime-info"
DEPEND="${COMMON_DEPEND}
dev-util/intltool
sys-devel/gettext
virtual/pkgconfig"
S="${WORKDIR}/${P}"/ROX-Filer/src
src_prepare() {
epatch "${FILESDIR}/${P}-in-source-build.patch"
sed -i -e 's:g_strdup(getenv("APP_DIR")):"/usr/share/rox":' \
main.c || die "sed failed"
}
src_configure() {
econf LIBS="-lm -ldl"
}
src_install() {
cd "${WORKDIR}/${P}"/ROX-Filer || die
dodir /usr/share/applications /usr/share/pixmaps /usr/share/rox/Help
insinto /usr/share/rox
doins -r Messages Options.xml ROX images style.css .DirIcon Templates.ui
insinto /usr/share/rox/Help
doins Help/*.html Help/README*
doman ../rox.1
newbin ROX-Filer rox
dosym /usr/share/rox/ROX/MIME/text-x-{diff,patch}.png
dosym /usr/share/rox/ROX/MIME/application-x-font-{afm,type1}.png
dosym /usr/share/rox/ROX/MIME/application-xml{,-dtd}.png
dosym /usr/share/rox/ROX/MIME/application-xml{,-external-parsed-entity}.png
dosym /usr/share/rox/ROX/MIME/application-{,rdf+}xml.png
dosym /usr/share/rox/ROX/MIME/application-x{ml,-xbel}.png
dosym /usr/share/rox/ROX/MIME/application-{x-shell,java}script.png
dosym /usr/share/rox/ROX/MIME/application-x-{bzip,xz}-compressed-tar.png
dosym /usr/share/rox/ROX/MIME/application-x-{bzip,lzma}-compressed-tar.png
dosym /usr/share/rox/ROX/MIME/application-x-{bzip-compressed-tar,lzo}.png
dosym /usr/share/rox/ROX/MIME/application-x-{bzip,xz}.png
dosym /usr/share/rox/ROX/MIME/application-x-{gzip,lzma}.png
dosym /usr/share/rox/ROX/MIME/application-{msword,rtf}.png
dosym /usr/share/rox/.DirIcon /usr/share/pixmaps/rox.png
insinto /usr/share/applications
doins "${FILESDIR}"/rox.desktop
}