43 lines
961 B
Bash
43 lines
961 B
Bash
# Copyright 1999-2014 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: /var/cvsroot/gentoo-x86/net-libs/rabbitmq-c/rabbitmq-c-0.5.0.ebuild,v 1.6 2014/10/05 07:25:03 ago Exp $
|
|
|
|
EAPI="5"
|
|
|
|
inherit cmake-utils eutils multilib
|
|
|
|
DESCRIPTION="RabbitMQ C client"
|
|
HOMEPAGE="https://github.com/alanxz/rabbitmq-c"
|
|
|
|
if [[ ${PV} == *9999* ]]; then
|
|
inherit git-2
|
|
EGIT_REPO_URI="git://github.com/alanxz/rabbitmq-c.git"
|
|
else
|
|
SRC_URI="https://github.com/alanxz/rabbitmq-c/archive/v${PV}.zip -> ${PN}-v${PV}.zip"
|
|
KEYWORDS="amd64 ~arm hppa x86"
|
|
fi
|
|
|
|
LICENSE="MIT"
|
|
SLOT="0"
|
|
IUSE="tools"
|
|
|
|
DEPEND=""
|
|
RDEPEND="${DEPEND}"
|
|
DOCS=( "AUTHORS" "README.md" "THANKS" "TODO" )
|
|
|
|
src_unpack() {
|
|
if [[ ${PV} == *9999* ]]; then
|
|
git-2_src_unpack
|
|
else
|
|
unpack ${A}
|
|
fi
|
|
}
|
|
|
|
src_configure() {
|
|
mycmakeargs=(
|
|
-DCMAKE_SKIP_RPATH=ON
|
|
$(cmake-utils_use tools BUILD_TOOLS)
|
|
$(cmake-utils_use tools BUILD_TOOLS_DOCS)
|
|
)
|
|
cmake-utils_src_configure
|
|
}
|