You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
1.2 KiB
60 lines
1.2 KiB
8 years ago
|
# Copyright 1999-2016 Gentoo Foundation
|
||
9 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
8 years ago
|
EAPI="6"
|
||
9 years ago
|
|
||
8 years ago
|
inherit autotools
|
||
9 years ago
|
|
||
|
DESCRIPTION="A brokerless kernel"
|
||
|
HOMEPAGE="http://www.zeromq.org/"
|
||
8 years ago
|
SRC_URI="https://github.com/zeromq/libzmq/releases/download/v${PV}/${P}.tar.gz"
|
||
9 years ago
|
|
||
|
LICENSE="LGPL-3"
|
||
|
SLOT="0/5"
|
||
8 years ago
|
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
|
||
8 years ago
|
IUSE="pgm +sodium static-libs test"
|
||
9 years ago
|
|
||
|
RDEPEND="
|
||
8 years ago
|
sys-libs/libunwind
|
||
8 years ago
|
sodium? ( dev-libs/libsodium:= )
|
||
9 years ago
|
pgm? ( =net-libs/openpgm-5.2.122 )"
|
||
|
DEPEND="${RDEPEND}
|
||
8 years ago
|
app-text/asciidoc
|
||
|
app-text/xmlto
|
||
9 years ago
|
sys-apps/util-linux
|
||
|
pgm? ( virtual/pkgconfig )"
|
||
|
|
||
8 years ago
|
PATCHES=(
|
||
|
"${FILESDIR}"/${P}-dl-backport.patch
|
||
|
)
|
||
|
|
||
9 years ago
|
src_prepare() {
|
||
|
sed \
|
||
|
-e '/libzmq_werror=/s:yes:no:g' \
|
||
|
-i configure.ac || die
|
||
8 years ago
|
default
|
||
|
eautoreconf
|
||
9 years ago
|
}
|
||
|
|
||
|
src_configure() {
|
||
|
local myeconfargs=(
|
||
8 years ago
|
--enable-shared
|
||
|
$(use_enable static-libs static)
|
||
8 years ago
|
$(use_with sodium libsodium)
|
||
9 years ago
|
$(use_with pgm)
|
||
|
)
|
||
8 years ago
|
econf "${myeconfargs[@]}"
|
||
9 years ago
|
}
|
||
|
|
||
8 years ago
|
src_test() {
|
||
|
# Restricting to one job because multiple tests are using the same port.
|
||
|
# Upstream knows the problem and says it doesn't support parallel test
|
||
|
# execution, see ${S}/INSTALL.
|
||
|
emake -j1 check
|
||
|
}
|
||
|
|
||
9 years ago
|
src_install() {
|
||
8 years ago
|
default
|
||
8 years ago
|
find "${ED}"usr/lib* -name '*.la' -delete || die
|
||
9 years ago
|
}
|