Files
sablink-distro/app-misc/fslint/fslint-2.40.ebuild
T
2010-04-28 00:02:37 +01:00

107 lines
2.2 KiB
Bash

# Copyright 2004-2009 Sabayon Linux
# Distributed under the terms of the GNU General Public License v2
EAPI="2"
PYTHON_DEPEND="2"
inherit eutils python
DESCRIPTION="FSlint is a utility to find and clean various forms of lint on a filesystem."
HOMEPAGE="http://www.pixelbeat.org/fslint"
SRC_URI="http://www.pixelbeat.org/fslint/${P}.tar.gz"
RESTRICT="mirror"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""
DEPEND=">=x11-libs/gtk+-2.4
gnome-base/libglade
>=dev-python/pygtk-2.4"
RDEPEND="${DEPEND}"
src_prepare() {
# Change Paths
epatch ${FILESDIR}/${P}-path-fix.patch
}
src_compile() {
cd ${S}
cd po
make
}
src_install() {
cd ${S}
# GUI executable
dodir /usr/bin
exeinto /usr/bin
doexe fslint-gui
# GUI file
dodir /usr/share/fslint
insinto /usr/share/fslint
doins fslint.glade
# other executables
dodir /usr/share/fslint/fslint
exeinto /usr/share/fslint/fslint
doexe fslint/find* fslint/zipdir fslint/fslint
dodir /usr/share/fslint/fslint/fstool
exeinto /usr/share/fslint/fslint/fstool
doexe fslint/fstool/*
dodir /usr/share/fslint/fslint/supprt
exeinto /usr/share/fslint/fslint/supprt
doexe fslint/supprt/get* fslint/supprt/fslver fslint/supprt/md5sum_approx
dodir /usr/share/fslint/fslint/supprt/rmlint
exeinto /usr/share/fslint/fslint/supprt/rmlint
doexe fslint/supprt/rmlint/*
# icon
dodir /usr/share/pixmaps
insinto /usr/share/pixmaps
doins fslint_icon.png
# shortcut
dodir /etc/X11/applnk/System
insinto /etc/X11/applnk/System
doins fslint.desktop
# locales
cd po
emake DESTDIR=${D}/usr DATADIR=share install
cd ..
# docs
cd doc
dodoc FAQ NEWS README TODO
cd ..
cd man
doman fslint-gui.1 fslint.1
cd ..
# link to icon in main fslint dir
dosym /usr/share/pixmaps/fslint_icon.png /usr/share/fslint/fslint_icon.png
}
pkg_postinst() {
einfo "Note the fslint tools do a lot of inode access and to speed them"
einfo "up you can use the following method to not update access times"
einfo "on disk while gathering inode information:"
einfo "mount -o remount,noatime mountpoint"
einfo "fslint or fslint-gui"
einfo "mount -o remount,atime mountpoint"
einfo ""
einfo "Command Line Executables are installed in:"
einfo "/usr/share/fslint/fslint"
einfo "you may want to add them in your PATH."
}