Magellan Linux

Contents of /branches/R11-unstable/core/gamin/gamin-0.1.10-r6.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 24963 - (show annotations) (download)
Tue Nov 25 02:43:51 2014 UTC (9 years, 5 months ago) by niro
File size: 1381 byte(s)
-release branches/R11-unstable
1 # $Id$
2
3 PNAME="gamin"
4 PVER="0.1.10"
5 PBUILD="r6"
6
7 PCAT="app-admin"
8
9 DESCRIPTION="Gamin is a file and directory monitoring system defined to be a subset of the FAM (File Alteration Monitor) system."
10 HOMEPAGE="http://people.gnome.org/~veillard/gamin/"
11
12 DEPEND=">= dev-libs/glib2-2.42"
13
14 SDEPEND=">= sys-dev/automake-3
15 >= sys-dev/autoconf-4
16 >= dev-util/pkgconfig-0.25"
17
18 SRCFILE="${PNAME}-${PVER}.tar.gz"
19 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
20
21 sminclude mbuild
22
23 SRC_URI=(
24 http://people.gnome.org/~veillard/${PNAME}/sources/${SRCFILE}
25 mirror://${PNAME}/${SRCFILE}
26 mirror://${PNAME}/${PNAME}-${PVER}-fix-deprecated-const.patch
27 )
28
29 UP2DATE="updatecmd http://people.gnome.org/~veillard/gamin/sources/'?C=M;O=A' | lasttarball gz"
30
31 src_prepare()
32 {
33 munpack ${SRCFILE} || die
34 cd ${SRCDIR}
35
36 # fix build against newer glib2 versions
37 mpatch ${PNAME}-${PVER}-fix-deprecated-const.patch || die
38 }
39
40 src_compile()
41 {
42 cd ${SRCDIR}
43
44 mconfigure \
45 --libexecdir=/usr/$(mlibdir)/${PNAME} \
46 --enable-inotify \
47 --disable-debug \
48 --disable-debug-api \
49 --enable-server \
50 --without-python \
51 || die
52
53 mmake || die
54 }
55
56 preinstall()
57 {
58 if [[ ! -z $(magequery -n fam) ]]
59 then
60 echo "The package 'app-admin/fam' is superseeded by 'app-admin/gamin'."
61 echo "Both packages cannot co-exist on the same system,"
62 echo "please uninstall 'app-admin/fam' first!"
63 die "'app-admin/fam' found!"
64 fi
65 }