Gentoo Archives: gentoo-commits

From: Marek Szuba <marecki@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/gam-server/
Date: Mon, 22 Nov 2021 20:23:59
Message-Id: 1637612631.d057fac33f893e6b8c9e22539179a5acb3019f57.marecki@gentoo
1 commit: d057fac33f893e6b8c9e22539179a5acb3019f57
2 Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
3 AuthorDate: Mon Nov 22 20:23:04 2021 +0000
4 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 22 20:23:51 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d057fac3
7
8 app-admin/gam-server: update EAPI 5 -> 8
9
10 Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
11
12 app-admin/gam-server/gam-server-0.1.10-r3.ebuild | 86 ++++++++++++++++++++++++
13 1 file changed, 86 insertions(+)
14
15 diff --git a/app-admin/gam-server/gam-server-0.1.10-r3.ebuild b/app-admin/gam-server/gam-server-0.1.10-r3.ebuild
16 new file mode 100644
17 index 000000000000..7a6e86629521
18 --- /dev/null
19 +++ b/app-admin/gam-server/gam-server-0.1.10-r3.ebuild
20 @@ -0,0 +1,86 @@
21 +# Copyright 1999-2021 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=8
25 +
26 +GNOME_ORG_MODULE="gamin"
27 +GNOME_TARBALL_SUFFIX="bz2"
28 +
29 +inherit autotools flag-o-matic gnome.org
30 +
31 +DESCRIPTION="Library providing the FAM File Alteration Monitor API"
32 +HOMEPAGE="https://www.gnome.org/~veillard/gamin/"
33 +SRC_URI="${SRC_URI}
34 + mirror://gentoo/gamin-0.1.9-freebsd.patch.bz2
35 + https://pkgconfig.freedesktop.org/releases/pkg-config-0.26.tar.gz" # pkg.m4 for eautoreconf
36 +
37 +LICENSE="LGPL-2"
38 +SLOT="0"
39 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x86-solaris"
40 +IUSE="debug kernel_linux"
41 +
42 +RDEPEND=">=dev-libs/glib-2:2
43 + >=dev-libs/libgamin-0.1.10
44 + !app-admin/fam
45 + !<app-admin/gamin-0.1.10"
46 +
47 +DEPEND="${RDEPEND}"
48 +
49 +src_prepare() {
50 + mv -vf "${WORKDIR}"/pkg-config-*/pkg.m4 "${WORKDIR}"/ || die
51 +
52 + # Fix compile warnings; bug #188923
53 + eapply "${WORKDIR}/gamin-0.1.9-freebsd.patch"
54 +
55 + # Fix file-collision due to shared library, upstream bug #530635
56 + eapply "${FILESDIR}/${PN}-0.1.10-noinst-lib.patch"
57 +
58 + # Fix compilation with latest glib, bug #382783
59 + eapply "${FILESDIR}/${PN}-0.1.10-G_CONST_RETURN-removal.patch"
60 +
61 + # Fix crosscompilation issues, bug #267604
62 + eapply "${FILESDIR}/${PN}-0.1.10-crosscompile-fix.patch"
63 +
64 + # Enable linux specific features on armel, upstream bug #588338
65 + eapply "${FILESDIR}/${P}-armel-features.patch"
66 +
67 + # Fix deadlocks with glib-2.32, bug #413331, upstream #667230
68 + eapply "${FILESDIR}/${P}-ih_sub_cancel-deadlock.patch"
69 +
70 + # Drop DEPRECATED flags
71 + sed -i -e 's:-DG_DISABLE_DEPRECATED:$(NULL):g' server/Makefile.am || die
72 +
73 + sed -i \
74 + -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' \
75 + -e 's:AM_PROG_CC_STDC:AC_PROG_CC:' \
76 + configure.in || die #466948
77 +
78 + eapply_user
79 +
80 + # autoconf is required as the user-cflags patch modifies configure.in
81 + # however, elibtoolize is also required, so when the above patch is
82 + # removed, replace the following call with a call to elibtoolize
83 + AT_M4DIR="${WORKDIR}" eautoreconf
84 +}
85 +
86 +src_configure() {
87 + # Solaris' patchs adds this to configure, but it conflicts with
88 + # Gentoo's FreeBSD patch.
89 + [[ ${CHOST} == *-solaris* ]] && append-libs socket nsl
90 +
91 + if ! has_version virtual/pkgconfig; then
92 + export DAEMON_CFLAGS="-I${EPREFIX}/usr/include/glib-2.0 -I${EPREFIX}/usr/$(get_libdir)/glib-2.0/include"
93 + export DAEMON_LIBS="-lglib-2.0"
94 + fi
95 +
96 + econf \
97 + --disable-debug \
98 + --disable-libgamin \
99 + --without-python \
100 + $(use_enable kernel_linux inotify) \
101 + $(use_enable debug debug-api)
102 +}
103 +
104 +src_install() {
105 + emake DESTDIR="${D}" install
106 +}