1 |
commit: fbc578ecfd9b3e784faff71232da9780d771aefd |
2 |
Author: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Aug 2 21:05:21 2020 +0000 |
4 |
Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Aug 2 21:07:11 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fbc578ec |
7 |
|
8 |
dev-libs/libgamin: drop py2 bindings, quick EAPI-6 port |
9 |
|
10 |
No consumers for the python bindings, so just drop them. |
11 |
Quick EAPI-6 port with still using epatch, as some (potentially |
12 |
conditional) patches aren't eapply-compatible. |
13 |
|
14 |
Bug: https://bugs.gentoo.org/735290 |
15 |
Package-Manager: Portage-2.3.84, Repoman-2.3.20 |
16 |
Signed-off-by: Mart Raudsepp <leio <AT> gentoo.org> |
17 |
|
18 |
dev-libs/libgamin/libgamin-0.1.10-r6.ebuild | 97 +++++++++++++++++++++++++++++ |
19 |
1 file changed, 97 insertions(+) |
20 |
|
21 |
diff --git a/dev-libs/libgamin/libgamin-0.1.10-r6.ebuild b/dev-libs/libgamin/libgamin-0.1.10-r6.ebuild |
22 |
new file mode 100644 |
23 |
index 00000000000..6e6090b368c |
24 |
--- /dev/null |
25 |
+++ b/dev-libs/libgamin/libgamin-0.1.10-r6.ebuild |
26 |
@@ -0,0 +1,97 @@ |
27 |
+# Copyright 1999-2020 Gentoo Authors |
28 |
+# Distributed under the terms of the GNU General Public License v2 |
29 |
+ |
30 |
+EAPI="6" |
31 |
+ |
32 |
+GNOME_ORG_MODULE="gamin" |
33 |
+GNOME_TARBALL_SUFFIX="bz2" |
34 |
+ |
35 |
+inherit autotools epatch flag-o-matic libtool ltprune gnome.org multilib-minimal |
36 |
+ |
37 |
+DESCRIPTION="Library providing the FAM File Alteration Monitor API" |
38 |
+HOMEPAGE="https://www.gnome.org/~veillard/gamin/" |
39 |
+SRC_URI="${SRC_URI} |
40 |
+ mirror://gentoo/gamin-0.1.9-freebsd.patch.bz2 |
41 |
+ https://dev.gentoo.org/~grobian/patches/libgamin-0.1.10-opensolaris.patch.bz2 |
42 |
+ https://pkgconfig.freedesktop.org/releases/pkg-config-0.28.tar.gz" # pkg.m4 for eautoreconf |
43 |
+ |
44 |
+LICENSE="LGPL-2" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-solaris" |
47 |
+IUSE="debug kernel_linux static-libs" |
48 |
+ |
49 |
+RESTRICT="test" # needs gam-server |
50 |
+ |
51 |
+RDEPEND=" |
52 |
+ !app-admin/fam |
53 |
+ !<app-admin/gamin-0.1.10" |
54 |
+DEPEND="${RDEPEND}" |
55 |
+ |
56 |
+src_prepare() { |
57 |
+ default |
58 |
+ mv "${WORKDIR}"/pkg-config-*/pkg.m4 "${WORKDIR}"/ || die |
59 |
+ |
60 |
+ # Fix QA warnings, bug #257281, upstream #466791 |
61 |
+ epatch "${FILESDIR}"/${PN}-0.1.10-compilewarnings.patch |
62 |
+ |
63 |
+ if [[ ${CHOST} != *-solaris* ]] ; then |
64 |
+ # Fix compile warnings; bug #188923 |
65 |
+ epatch "${DISTDIR}"/gamin-0.1.9-freebsd.patch.bz2 |
66 |
+ else |
67 |
+ # (Open)Solaris necessary patches (changes configure.in), unfortunately |
68 |
+ # conflicts with freebsd patch and breaks some linux installs so it must |
69 |
+ # only be applied if on solaris. |
70 |
+ epatch "${DISTDIR}"/${P}-opensolaris.patch.bz2 |
71 |
+ fi |
72 |
+ |
73 |
+ # Fix collision problem due to intermediate library, upstream bug #530635 |
74 |
+ epatch "${FILESDIR}"/${PN}-0.1.10-noinst-lib.patch |
75 |
+ |
76 |
+ # Fix compilation with latest glib, bug #382783 |
77 |
+ epatch "${FILESDIR}/${PN}-0.1.10-G_CONST_RETURN-removal.patch" |
78 |
+ |
79 |
+ # Fix crosscompilation issues, bug #267604 |
80 |
+ epatch "${FILESDIR}/${PN}-0.1.10-crosscompile-fix.patch" |
81 |
+ |
82 |
+ # Enable linux specific features on armel, upstream bug #588338 |
83 |
+ epatch "${FILESDIR}/${P}-armel-features.patch" |
84 |
+ |
85 |
+ # Fix possible server deadlock in ih_sub_cancel, upstream bug #667230 |
86 |
+ epatch "${FILESDIR}/${PN}-0.1.10-deadlock.patch" |
87 |
+ |
88 |
+ # Drop DEPRECATED flags |
89 |
+ sed -i -e 's:-DG_DISABLE_DEPRECATED:$(NULL):g' server/Makefile.am || die |
90 |
+ |
91 |
+ sed -i \ |
92 |
+ -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' \ |
93 |
+ -e 's:AM_PROG_CC_STDC:AC_PROG_CC:' \ |
94 |
+ configure.in || die #466962 |
95 |
+ |
96 |
+ mv configure.in configure.ac || die |
97 |
+ # autoconf is required as the user-cflags patch modifies configure.in |
98 |
+ # however, elibtoolize is also required, so when the above patch is |
99 |
+ # removed, replace the following call with a call to elibtoolize |
100 |
+ AT_M4DIR="${WORKDIR}" eautoreconf |
101 |
+} |
102 |
+ |
103 |
+multilib_src_configure() { |
104 |
+ local myconf=( |
105 |
+ $(use_enable static-libs static) |
106 |
+ --disable-debug |
107 |
+ --disable-server |
108 |
+ $(use_enable kernel_linux inotify) |
109 |
+ $(use_enable debug debug-api) |
110 |
+ --without-python |
111 |
+ ) |
112 |
+ local ECONF_SOURCE=${S} |
113 |
+ |
114 |
+ econf "${myconf[@]}" |
115 |
+} |
116 |
+ |
117 |
+multilib_src_install_all() { |
118 |
+ DOCS=( AUTHORS ChangeLog README TODO NEWS doc/*txt ) |
119 |
+ HTML_DOCS=( doc/*.{html,gif} ) |
120 |
+ einstalldocs |
121 |
+ |
122 |
+ prune_libtool_files --all |
123 |
+} |