diff options
author | Ole Markus With <olemarkus@gentoo.org> | 2013-03-14 18:50:36 +0000 |
---|---|---|
committer | Ole Markus With <olemarkus@gentoo.org> | 2013-03-14 18:50:36 +0000 |
commit | e8f7fd586efc78db3623c74f20035d61be2eebd4 (patch) | |
tree | 590443d06e7aa98f542fd4cd3687afcd5ac4510a /net-libs | |
parent | version bump (diff) | |
download | gentoo-2-e8f7fd586efc78db3623c74f20035d61be2eebd4.tar.gz gentoo-2-e8f7fd586efc78db3623c74f20035d61be2eebd4.tar.bz2 gentoo-2-e8f7fd586efc78db3623c74f20035d61be2eebd4.zip |
New package. Thanks to Travis Hansen. Bug 433503
(Portage version: 2.1.11.50/cvs/Linux x86_64, signed Manifest commit with key C4A92BF5)
Diffstat (limited to 'net-libs')
-rw-r--r-- | net-libs/rabbitmq-c/ChangeLog | 9 | ||||
-rw-r--r-- | net-libs/rabbitmq-c/files/xmlto.patch | 25 | ||||
-rw-r--r-- | net-libs/rabbitmq-c/metadata.xml | 14 | ||||
-rw-r--r-- | net-libs/rabbitmq-c/rabbitmq-c-0.3.0.ebuild | 46 |
4 files changed, 94 insertions, 0 deletions
diff --git a/net-libs/rabbitmq-c/ChangeLog b/net-libs/rabbitmq-c/ChangeLog new file mode 100644 index 000000000000..99d2440e2ca2 --- /dev/null +++ b/net-libs/rabbitmq-c/ChangeLog @@ -0,0 +1,9 @@ +# ChangeLog for net-libs/rabbitmq-c +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-libs/rabbitmq-c/ChangeLog,v 1.1 2013/03/14 18:50:36 olemarkus Exp $ + +*rabbitmq-c-0.3.0 (14 Mar 2013) + + 14 Mar 2013; Ole Markus With <olemarkus@gentoo.org> +files/xmlto.patch, + +metadata.xml, +rabbitmq-c-0.3.0.ebuild: + New package. Thanks to Travis Hansen. Bug 433503 diff --git a/net-libs/rabbitmq-c/files/xmlto.patch b/net-libs/rabbitmq-c/files/xmlto.patch new file mode 100644 index 000000000000..b1b97edd2edd --- /dev/null +++ b/net-libs/rabbitmq-c/files/xmlto.patch @@ -0,0 +1,25 @@ +--- CMakeLists.txt.orig 2013-01-19 02:58:22.179338944 -0700 ++++ CMakeLists.txt 2013-01-19 03:18:40.936984417 -0700 +@@ -49,6 +49,7 @@ + include(CheckFunctionExists) + include(CheckLibraryExists) + include(CMakePushCheckState) ++include(FindXmlTo) + + # Detect if we need to link against a socket library: + cmake_push_check_state() +@@ -195,7 +196,13 @@ + endif (REGENERATE_AMQP_FRAMING) + + find_package(POPT) +-find_package(XmlTo) ++ ++set ( XmlTo_FOUND false ) ++find_program ( XMLTO_EXECUTABLE NAMES xmlto ++ DOC "path to the xmlto docbook xslt frontend" ) ++if ( XMLTO_EXECUTABLE ) ++ set ( XmlTo_FOUND true ) ++endif ( XMLTO_EXECUTABLE ) + + if (POPT_FOUND AND XmlTo_FOUND) + set(DO_DOCS ON) diff --git a/net-libs/rabbitmq-c/metadata.xml b/net-libs/rabbitmq-c/metadata.xml new file mode 100644 index 000000000000..3917af45bc58 --- /dev/null +++ b/net-libs/rabbitmq-c/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>olemarkus@gentoo.org</email> + <name>Ole Markus With</name> + </maintainer> + <use> + <flag name='tools'>Builds cli tools to interact with brokers</flag> + </use> + <longdescription lang="en"> + </longdescription> +</pkgmetadata> + diff --git a/net-libs/rabbitmq-c/rabbitmq-c-0.3.0.ebuild b/net-libs/rabbitmq-c/rabbitmq-c-0.3.0.ebuild new file mode 100644 index 000000000000..867286efe8bc --- /dev/null +++ b/net-libs/rabbitmq-c/rabbitmq-c-0.3.0.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2013 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.3.0.ebuild,v 1.1 2013/03/14 18:50:36 olemarkus 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" + KEYWORDS="-*" +else + SRC_URI="https://github.com/alanxz/rabbitmq-c/archive/${PN}-v${PV}.zip" + KEYWORDS="~amd64 ~x86" +fi + +LICENSE="MIT" +SLOT="0" +IUSE="tools" + +DEPEND="" +RDEPEND="${DEPEND}" +DOCS=( "AUTHORS" "README.md" "THANKS" "TODO" ) +PATCHES=( "${FILESDIR}/xmlto.patch" ) + +src_unpack() { + if [[ ${PV} == *9999* ]]; then + git-2_src_unpack + else + unpack ${A} + mv ${PN}* ${P} || die + 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 +} |