Diff zeromq-2.2.0 with a zeromq-3.2.5

/usr/portage/net-libs/zeromq/zeromq-3.2.5.ebuild 2019-12-11 02:41:00.000000000 +0300
1 1
# Copyright 1999-2019 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
# NOTES:
5
# 1- use flag 'pgm' (OpenPGM support) must be masked by profiles for ARM archs;
6

  
7
EAPI=4
4
EAPI=5
8 5

  
9 6
inherit autotools
10 7

  
11
DESCRIPTION="ZeroMQ is a brokerless messaging kernel with extremely high performance"
12
HOMEPAGE="http://www.zeromq.org"
8
DESCRIPTION="ZeroMQ is a brokerless kernel"
9
HOMEPAGE="http://www.zeromq.org/"
13 10
SRC_URI="http://download.zeromq.org/${P}.tar.gz"
14 11

  
15 12
LICENSE="LGPL-3"
16
SLOT="0"
17
KEYWORDS="amd64 hppa ppc ppc64 x86 ~amd64-linux ~x86-linux"
18
IUSE="pgm test static-libs"
13
SLOT="0/3"
14
KEYWORDS="amd64 arm hppa ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
15
IUSE="pgm test static-libs elibc_glibc"
19 16
RESTRICT="!test? ( test )"
20 17

  
21
RDEPEND="!net-libs/cppzmq"
22
DEPEND="pgm? (
18
DEPEND="
19
	|| ( sys-devel/gcc sys-devel/gcc-apple )
20
	pgm? (
23 21
		virtual/pkgconfig
24
		~net-libs/openpgm-5.1.118
22
		>=net-libs/openpgm-5.2
25 23
	)
26
	|| ( sys-apps/util-linux sys-freebsd/freebsd-lib )"
24
	elibc_glibc? ( sys-apps/util-linux )"
25
RDEPEND=""
27 26

  
28 27
src_prepare() {
29 28
	einfo "Removing bundled OpenPGM library"
29
	sed -i 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/g' configure.in || die
30 30
	rm -r "${S}"/foreign/openpgm/libpgm* || die
31
	# apply effective bit of below commit to fix compilation on Darwin
32
	# https://github.com/zeromq/zeromq3-x/commit/400cbc208a768c4df5039f401dd2688eede6e1ca
33
	sed -i -e '/strndup/d' tests/test_disconnect_inproc.cpp || die
34
	mv configure.{in,ac} || die
31 35
	eautoreconf
32 36
}
33 37

  
......
35 39
	local myconf
36 40
	use pgm && myconf="--with-system-pgm" || myconf="--without-pgm"
37 41
	econf \
38
		$(use_enable static-libs static) \
39
		$myconf
42
	  $(use_enable static-libs static) \
43
	  ${myconf}
44
}
45

  
46
src_test() {
47
	emake -j1 check
40 48
}
41 49

  
42 50
src_install() {
43
	emake DESTDIR="${D}" install
44
	dodoc NEWS README AUTHORS ChangeLog
51
	default
45 52
	doman doc/*.[1-9]
46 53

  
47 54
	# remove useless .la files
48
	find "${D}" -name '*.la' -delete
55
	find "${ED}" -name '*.la' -delete || die
49 56

  
50 57
	# remove useless .a (only for non static compilation)
51
	use static-libs || find "${D}" -name '*.a' -delete
58
	if ! use static-libs; then
59
		find "${ED}" -name '*.a' -delete || die
60
	fi
52 61
}
Thank you!