Magellan Linux

Contents of /trunk/core/gamin/gamin-0.1.10-r7.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 31576 - (show annotations) (download)
Mon Dec 3 08:21:55 2018 UTC (5 years, 4 months ago) by niro
File size: 1573 byte(s)
-added deadlock patch, enable multilib and fixed UP2DATE
1 # $Id$
2
3 PNAME="gamin"
4 PVER="0.1.10"
5 PBUILD="r7"
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.58"
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 multilib 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 mirror://${PNAME}/${PNAME}-${PVER}-fix-possible-server-deadlock-in-ih_sub_cancel.patch
28 )
29
30 UP2DATE="updatecmd http://people.gnome.org/~veillard/gamin/sources/ | highesttarball gz"
31
32 src_prepare()
33 {
34 munpack ${SRCFILE} || die
35 cd ${SRCDIR}
36
37 # fix build against newer glib2 versions
38 mpatch ${PNAME}-${PVER}-fix-deprecated-const.patch || die
39
40 # fix deadlocks
41 mpatch ${PNAME}-${PVER}-fix-possible-server-deadlock-in-ih_sub_cancel.patch || die
42 }
43
44 src_compile()
45 {
46 cd ${SRCDIR}
47
48 mconfigure \
49 --libexecdir=/usr/$(mlibdir)/${PNAME} \
50 --enable-inotify \
51 --disable-debug \
52 --disable-debug-api \
53 --enable-server \
54 --without-python \
55 || die
56
57 mmake || die
58 }
59
60 preinstall()
61 {
62 if [[ ! -z $(magequery -n fam) ]]
63 then
64 echo "The package 'app-admin/fam' is superseeded by 'app-admin/gamin'."
65 echo "Both packages cannot co-exist on the same system,"
66 echo "please uninstall 'app-admin/fam' first!"
67 die "'app-admin/fam' found!"
68 fi
69 }