1 |
commit: f01c3a1606d40331738dde1fa5ca75d17b09cfb6 |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Feb 9 18:49:36 2020 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Feb 9 18:49:36 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f01c3a16 |
7 |
|
8 |
net-libs/meanwhile: Port to EAPI 7 |
9 |
|
10 |
Package-Manager: Portage-2.3.88, Repoman-2.3.20 |
11 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
12 |
|
13 |
.../files/meanwhile-1.0.2-gentoo-fhs-samples.patch | 26 +++++++++++ |
14 |
net-libs/meanwhile/meanwhile-1.0.2-r1.ebuild | 50 +++++++++++++--------- |
15 |
2 files changed, 55 insertions(+), 21 deletions(-) |
16 |
|
17 |
diff --git a/net-libs/meanwhile/files/meanwhile-1.0.2-gentoo-fhs-samples.patch b/net-libs/meanwhile/files/meanwhile-1.0.2-gentoo-fhs-samples.patch |
18 |
new file mode 100644 |
19 |
index 00000000000..d0bfc20fa76 |
20 |
--- /dev/null |
21 |
+++ b/net-libs/meanwhile/files/meanwhile-1.0.2-gentoo-fhs-samples.patch |
22 |
@@ -0,0 +1,26 @@ |
23 |
+--- a/doc/Makefile.am |
24 |
++++ b/doc/Makefile.am |
25 |
+@@ -5,10 +5,10 @@ |
26 |
+ if ENABLE_DOXYGEN |
27 |
+ |
28 |
+ htmldoc_DATA = html/* |
29 |
+-htmldocdir = $(datadir)/doc/@PACKAGE@-doc-@VERSION@/html |
30 |
++htmldocdir = $(htmldir) |
31 |
+ |
32 |
+ latexdoc_DATA = latex/* |
33 |
+-latexdocdir = $(datadir)/doc/@PACKAGE@-doc-@VERSION@/latex |
34 |
++latexdocdir = $(docdir)/latex |
35 |
+ |
36 |
+ docdata = $(htmldoc_DATA) $(latexdoc_DATA) |
37 |
+ |
38 |
+--- a/samples/Makefile.am |
39 |
++++ b/samples/Makefile.am |
40 |
+@@ -19,7 +19,7 @@ |
41 |
+ $(SAMPLES_SRC) |
42 |
+ |
43 |
+ |
44 |
+-sampledir = $(datadir)/doc/@PACKAGE@-doc-@VERSION@/samples |
45 |
++sampledir = $(docdir)/samples |
46 |
+ |
47 |
+ |
48 |
+ EXTRA_DIST = $(sample_DATA) $(sample_SCRIPTS) |
49 |
|
50 |
diff --git a/net-libs/meanwhile/meanwhile-1.0.2-r1.ebuild b/net-libs/meanwhile/meanwhile-1.0.2-r1.ebuild |
51 |
index 7a2a8a62459..7d3f3864519 100644 |
52 |
--- a/net-libs/meanwhile/meanwhile-1.0.2-r1.ebuild |
53 |
+++ b/net-libs/meanwhile/meanwhile-1.0.2-r1.ebuild |
54 |
@@ -1,45 +1,53 @@ |
55 |
-# Copyright 1999-2019 Gentoo Authors |
56 |
+# Copyright 1999-2020 Gentoo Authors |
57 |
# Distributed under the terms of the GNU General Public License v2 |
58 |
|
59 |
-EAPI=4 |
60 |
-inherit eutils flag-o-matic |
61 |
+EAPI=7 |
62 |
+ |
63 |
+inherit autotools flag-o-matic |
64 |
|
65 |
DESCRIPTION="Meanwhile (Sametime protocol) library" |
66 |
HOMEPAGE="http://meanwhile.sourceforge.net/" |
67 |
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" |
68 |
|
69 |
LICENSE="LGPL-2" |
70 |
-IUSE="doc debug" |
71 |
SLOT="0" |
72 |
KEYWORDS="~alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 sparc x86" |
73 |
+IUSE="doc debug" |
74 |
|
75 |
-RDEPEND=">=dev-libs/glib-2:2" |
76 |
- |
77 |
-DEPEND="${RDEPEND} |
78 |
- dev-libs/gmp |
79 |
+RDEPEND="dev-libs/glib:2" |
80 |
+DEPEND=" |
81 |
+ ${RDEPEND} |
82 |
+ dev-libs/gmp" |
83 |
+BDEPEND=" |
84 |
virtual/pkgconfig |
85 |
doc? ( app-doc/doxygen )" |
86 |
|
87 |
-src_prepare(){ |
88 |
- epatch "${FILESDIR}/${P}-presence.patch" #239144 |
89 |
- epatch "${FILESDIR}/${P}-glib2.31.patch" #409081 |
90 |
- |
91 |
- #241298 |
92 |
- sed -i -e "/sampledir/ s:-doc::" samples/Makefile.in || die |
93 |
+PATCHES=( |
94 |
+ # bug 239144 |
95 |
+ "${FILESDIR}"/${P}-presence.patch |
96 |
+ # bug 409081 |
97 |
+ "${FILESDIR}"/${P}-glib2.31.patch |
98 |
+ # bug 241298 |
99 |
+ "${FILESDIR}"/${P}-gentoo-fhs-samples.patch |
100 |
+) |
101 |
+ |
102 |
+src_prepare() { |
103 |
+ default |
104 |
+ eautoreconf |
105 |
} |
106 |
|
107 |
src_configure() { |
108 |
- append-flags "-fno-tree-vrp" |
109 |
- local myconf |
110 |
- use doc || myconf="${myconf} --enable-doxygen=no" |
111 |
+ append-cflags -fno-tree-vrp |
112 |
|
113 |
- econf ${myconf} \ |
114 |
+ econf \ |
115 |
--disable-static \ |
116 |
+ --enable-doxygen=$(usex doc) \ |
117 |
$(use_enable debug) |
118 |
} |
119 |
|
120 |
src_install() { |
121 |
- emake DESTDIR="${D}" install |
122 |
- find "${D}" -name '*.la' -exec rm -f {} + || die "la file removal failed" |
123 |
- dodoc AUTHORS ChangeLog NEWS README TODO |
124 |
+ default |
125 |
+ |
126 |
+ # no static archives |
127 |
+ find "${D}" -name '*.la' -delete || die |
128 |
} |