mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-08 12:30:44 +02:00
fslint: finds duplicate files and more. I wanted to use it, thought others
may feel the same
This commit is contained in:
parent
f0ea39d065
commit
64a9767d17
2 changed files with 111 additions and 0 deletions
2
app-misc/fslint/Manifest
Normal file
2
app-misc/fslint/Manifest
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
DIST fslint-2.42.tar.gz 111520 RMD160 23e825cd7d798b750c4fe435b731c6e77f15badb SHA1 607a1a8cc391537151660e1129a4c95908509b80 SHA256 babbef4a34f42ab1d396152fd79b4353adc114b2e8d68b838e20a8067c5a3273
|
||||
EBUILD fslint-2.42.ebuild 2702 RMD160 ae28a3051d0374d9764dac374fd8ff1d5fa173ce SHA1 f8d3e2bd40ef7b5d0f0bde07789212bf0d56bd28 SHA256 4dc58d6ef5c8586332c81b3abc8f119d82ae7a460cee4f72478a2a39f51a9907
|
||||
109
app-misc/fslint/fslint-2.42.ebuild
Normal file
109
app-misc/fslint/fslint-2.42.ebuild
Normal file
|
|
@ -0,0 +1,109 @@
|
|||
# Copyright 1999-2006 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
# original ebuild by bearingspacer@free.fr
|
||||
# updated ebuild by mobidyc@msn.com
|
||||
# updated ebuild by davide.bettio@kdemail.net
|
||||
|
||||
DESCRIPTION="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"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="-* x86 amd64"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=">=x11-libs/gtk+-2.4
|
||||
>=dev-lang/python-2.3
|
||||
gnome-base/libglade
|
||||
>=dev-python/pygtk-2.4"
|
||||
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_unpack() {
|
||||
if [ "${A}" != "" ]; then
|
||||
unpack ${A}
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
echo ${S}
|
||||
pwd
|
||||
|
||||
# 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 ..
|
||||
|
||||
# create python init file
|
||||
# Other option here is to instead edit fslint-gui itself so that:
|
||||
# ^liblocation = '/usr/share/fslint/'
|
||||
# ^locale_base = None
|
||||
python_site=`python -c "import sys ; \
|
||||
print '%s/lib/python%s/site-packages' % (sys.exec_prefix,sys.version[:3])"`
|
||||
dodir $python_site/fslint
|
||||
echo "liblocation = '/usr/share/fslint/'" > ${D}/$python_site/fslint/__init__.py
|
||||
|
||||
# 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."
|
||||
}
|
||||
Loading…
Reference in a new issue