blob: a902df62d26b4244b0e2881380abdc702efe3094 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
|
# 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
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
insinto /usr/bin
dosym ../share/fslint/fslint/fslint /usr/bin/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."
}
|