# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /home/cvsroot/gentoo-x86/app-misc/rox/rox-1.3.2-r2.ebuild,v 1.4 2002/10/20 18:40:23 vapier Exp $ S=${WORKDIR}/${P} DESCRIPTION="ROX-Filer is a fast and powerful graphical file manager" HOMEPAGE="http://rox.sourceforge.net" SRC_URI="mirror://sourceforge/rox/${P}.tgz" LICENSE="GPL-2" SLOT="1.3" KEYWORDS="x86" DEPEND=">=x11-libs/gtk+-2.0.5 >=dev-libs/glib-2.0.4 >=dev-libs/libxml2-2.4.23 =x11-misc/shared-mime-info-0.7" # NOTE this version of rox works *only* with # shared-mime-info-0.7 <= (not 0.8 nor 0.9) # bug #5757 # stroke@gentoo.org src_unpack() { unpack ${A} patch -p0 < ${FILESDIR}/all-1.3.5.patch } src_install() { # libxml2 header fix CFLAGS="${CFLAGS} -I/usr/include/libxml2/libxml -I/usr/include/libxml2" cd ${S}/Choices dodir /usr/share/Choices cp -rf MIME-icons/ ${D}/usr/share/Choices/ cp -rf MIME-types/ ${D}/usr/share/Choices/ cd ${S} doman rox.1 insinto /usr/share/mime/mime-info doins rox.mimeinfo dodir /usr/bin cp -rf ROX-Filer/ ${D}/usr/share/ ${D}/usr/share/ROX-Filer/AppRun --compile (cd ${D}/usr/share/ROX-Filer/src; make clean) > /dev/null echo "#!/bin/sh" > "${D}/usr/bin/rox" echo "exec /usr/share/ROX-Filer/AppRun \"\$@\"" >> "${D}/usr/bin/rox" chmod a+x ${D}/usr/bin/rox }