Magellan Linux

Annotation of /branches/R11-unstable/core/gamin/gamin-0.1.10-r7.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 32262 - (hide annotations) (download)
Mon Apr 29 12:02:10 2019 UTC (5 years ago) by niro
File size: 1544 byte(s)
-release branches/R11-unstable
1 niro 31576 # $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    
36     # fix build against newer glib2 versions
37     mpatch ${PNAME}-${PVER}-fix-deprecated-const.patch || die
38    
39     # fix deadlocks
40     mpatch ${PNAME}-${PVER}-fix-possible-server-deadlock-in-ih_sub_cancel.patch || die
41     }
42    
43     src_compile()
44     {
45     mconfigure \
46     --libexecdir=/usr/$(mlibdir)/${PNAME} \
47     --enable-inotify \
48     --disable-debug \
49     --disable-debug-api \
50     --enable-server \
51     --without-python \
52     || die
53    
54     mmake || die
55     }
56    
57     preinstall()
58     {
59     if [[ ! -z $(magequery -n fam) ]]
60     then
61     echo "The package 'app-admin/fam' is superseeded by 'app-admin/gamin'."
62     echo "Both packages cannot co-exist on the same system,"
63     echo "please uninstall 'app-admin/fam' first!"
64     die "'app-admin/fam' found!"
65     fi
66     }