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
# Copyright 1999-2020 Gentoo Authors
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 18
DEPEND="
19
	|| ( sys-devel/gcc sys-devel/gcc-apple )
23 20
	pgm? (
24 21
		virtual/pkgconfig
25
		~net-libs/openpgm-5.1.118
22
		>=net-libs/openpgm-5.2
26 23
	)
27
	sys-apps/util-linux "
24
	elibc_glibc? ( sys-apps/util-linux )"
25
RDEPEND=""
28 26

  
29 27
src_prepare() {
30 28
	einfo "Removing bundled OpenPGM library"
29
	sed -i 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/g' configure.in || die
31 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
32 35
	eautoreconf
33 36
}
34 37

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

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

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

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

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