Gentoo Archives: gentoo-commits

From: Yixun Lan <dlan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libev/, dev-libs/libev/files/
Date: Tue, 04 Jun 2019 06:43:39
Message-Id: 1559630501.2877d2ffe41ae6affd458e43413806059c0ccaac.dlan@gentoo
1 commit: 2877d2ffe41ae6affd458e43413806059c0ccaac
2 Author: Yixun Lan <dlan <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jun 4 06:39:48 2019 +0000
4 Commit: Yixun Lan <dlan <AT> gentoo <DOT> org>
5 CommitDate: Tue Jun 4 06:41:41 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2877d2ff
7
8 dev-libs/libev: version bump 4.25
9
10 Closes: https://bugs.gentoo.org/687020
11
12 Package-Manager: Portage-2.3.67, Repoman-2.3.13
13 Signed-off-by: Yixun Lan <dlan <AT> gentoo.org>
14
15 dev-libs/libev/Manifest | 1 +
16 dev-libs/libev/files/libev-4.25-pc.patch | 49 ++++++++++++++++++++++++++++++++
17 dev-libs/libev/libev-4.25.ebuild | 46 ++++++++++++++++++++++++++++++
18 3 files changed, 96 insertions(+)
19
20 diff --git a/dev-libs/libev/Manifest b/dev-libs/libev/Manifest
21 index 7b5a7059c37..ff478b40c0b 100644
22 --- a/dev-libs/libev/Manifest
23 +++ b/dev-libs/libev/Manifest
24 @@ -1,2 +1,3 @@
25 DIST libev-4.23.tar.gz 524184 BLAKE2B bb8c15665e0ff59322bc2f076f4256ca8f5acff5bc55bb3f5f10ac9704f9311ad90f581e4ced25dcc22c39988ffacce1958f195234a60039d33ba7b7beb9aee2 SHA512 e3d98364b3788a7f5c56be49b99cecc98da6323fc7e6d47aff808580653ab9effffe88636a2f5d357d596a9a580e778c20139cc162467e3e2c5fc736713c6e39
26 DIST libev-4.24.tar.gz 524264 BLAKE2B 92a480cfba67119c630211b9acfadfa2dc6ab1806ed015cca693829fa6deedeb4fc5530aa47e0a0d21304b0f626136110596ccdbeb75bc13ea5d23eeca7b9ded SHA512 e4cb3b5dd4b9828d5b8da840c73ae4604258a8c4330aafa5472298b83bf944628f36918f0ddd47d9069d255639f0b24a2cf8d349f0644ffd50de823bcb54a31a
27 +DIST libev-4.25.tar.gz 545817 BLAKE2B a6ce69ba0a5824afc9e49afa8dba67f15b5945bb01104733c2a9478265fa78908ea26b6594c00f210c86eaef936956c16d3a55cb91a834501da0a6db12caf201 SHA512 83455d4dcb626a28d8477aaea27cdee6bc88b273fae926a57eed9f6a59d4b0ea2eef0f41ad09ff711aea2956ed83a591aa53cfe8aa242f7d0a4da19180d764c4
28
29 diff --git a/dev-libs/libev/files/libev-4.25-pc.patch b/dev-libs/libev/files/libev-4.25-pc.patch
30 new file mode 100644
31 index 00000000000..a5e362479f3
32 --- /dev/null
33 +++ b/dev-libs/libev/files/libev-4.25-pc.patch
34 @@ -0,0 +1,49 @@
35 +diff --git a/Makefile.am b/Makefile.am
36 +index 059305b..76d9852 100644
37 +--- a/Makefile.am
38 ++++ b/Makefile.am
39 +@@ -16,5 +16,8 @@ lib_LTLIBRARIES = libev.la
40 + libev_la_SOURCES = ev.c event.c
41 + libev_la_LDFLAGS = -version-info $(VERSION_INFO)
42 +
43 ++pkgconfigdir = $(libdir)/pkgconfig
44 ++pkgconfig_DATA = libev.pc
45 ++
46 + ev.3: ev.pod
47 + pod2man -n LIBEV -r "libev-$(VERSION)" -c "libev - high performance full featured event loop" -s3 <$< >$@
48 +diff --git a/configure.ac b/configure.ac
49 +index b004dda..6ba3f5c 100644
50 +--- a/configure.ac
51 ++++ b/configure.ac
52 +@@ -4,6 +4,7 @@ AC_INIT([libev], [4.25])
53 + orig_CFLAGS="$CFLAGS"
54 +
55 + AC_CONFIG_SRCDIR([ev_epoll.c])
56 ++AC_CONFIG_MACRO_DIR([m4])
57 + AM_INIT_AUTOMAKE
58 +
59 + AC_CONFIG_HEADERS([config.h])
60 +@@ -23,5 +24,5 @@ AC_PROG_LIBTOOL
61 +
62 + m4_include([libev.m4])
63 +
64 +-AC_CONFIG_FILES([Makefile])
65 ++AC_CONFIG_FILES([Makefile libev.pc])
66 + AC_OUTPUT
67 +diff --git a/libev.pc.in b/libev.pc.in
68 +new file mode 100644
69 +index 0000000..8bc8681
70 +--- /dev/null
71 ++++ b/libev.pc.in
72 +@@ -0,0 +1,11 @@
73 ++prefix=@prefix@
74 ++exec_prefix=@prefix@
75 ++libdir=@libdir@
76 ++includedir=@includedir@
77 ++
78 ++Name: libev
79 ++Description: A high-performance event loop/event model with lots of features
80 ++Version: @VERSION@
81 ++Libs: -L${libdir} -lev
82 ++Libs.private:
83 ++Cflags: -I${includedir}
84
85 diff --git a/dev-libs/libev/libev-4.25.ebuild b/dev-libs/libev/libev-4.25.ebuild
86 new file mode 100644
87 index 00000000000..b2ac07e21a8
88 --- /dev/null
89 +++ b/dev-libs/libev/libev-4.25.ebuild
90 @@ -0,0 +1,46 @@
91 +# Copyright 1999-2019 Gentoo Authors
92 +# Distributed under the terms of the GNU General Public License v2
93 +
94 +EAPI=7
95 +
96 +inherit autotools eutils multilib-minimal
97 +
98 +DESCRIPTION="A high-performance event loop/event model with lots of feature"
99 +HOMEPAGE="http://software.schmorp.de/pkg/libev.html"
100 +SRC_URI="http://dist.schmorp.de/libev/${P}.tar.gz
101 + http://dist.schmorp.de/libev/Attic/${P}.tar.gz"
102 +
103 +LICENSE="|| ( BSD GPL-2 )"
104 +SLOT="0"
105 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
106 +IUSE="elibc_glibc static-libs"
107 +
108 +# Bug #283558
109 +DEPEND="elibc_glibc? ( >=sys-libs/glibc-2.9_p20081201 )"
110 +RDEPEND="${DEPEND}"
111 +
112 +DOCS=( Changes README )
113 +
114 +# bug #411847
115 +PATCHES=( "${FILESDIR}/${P}-pc.patch" )
116 +
117 +src_prepare() {
118 + default
119 + sed -i -e "/^include_HEADERS/s/ event.h//" Makefile.am || die
120 +
121 + eautoreconf
122 +}
123 +
124 +multilib_src_configure() {
125 + ECONF_SOURCE="${S}" \
126 + econf \
127 + --disable-maintainer-mode \
128 + $(use_enable static-libs static)
129 +}
130 +
131 +multilib_src_install_all() {
132 + if ! use static-libs; then
133 + find "${D}" -name '*.la' -type f -delete || die
134 + fi
135 + einstalldocs
136 +}