# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="5"

inherit eutils

DESCRIPTION="CZMQ - High-level C Binding for ZeroMQ"
HOMEPAGE="http://czmq.zeromq.org"
SRC_URI="http://download.zeromq.org/${P}.tar.gz"

LICENSE="LGPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc static-libs"

RDEPEND="=net-libs/zeromq-3.2*"
DEPEND="${RDEPEND}"
#	doc? ( app-text/asciidoc app-text/xmlto )"
#   ^^^  only required for a non-release tarball
#        in a release tarball, the docs are already built

src_configure() {
	econf $(use_enable static-libs static)
}

src_install() {
	default
	rm -rf "${D}/usr/bin" # do not install the test binary (which is GPL-3 licensed)
	prune_libtool_files
}