summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Shvetsov <alexxy@gentoo.org>2020-11-28 23:04:25 +0300
committerAlexey Shvetsov <alexxy@gentoo.org>2020-11-28 23:04:38 +0300
commit62cd07c6e0f04fa361f2767b9653c64720eb356b (patch)
treee202e864022a28474f396281d3459eb849189f83 /dev-cpp/amqp-cpp/amqp-cpp-4.3.10.ebuild
parentdev-python/packaging: Bump to 20.7 (diff)
downloadgentoo-62cd07c6e0f04fa361f2767b9653c64720eb356b.tar.gz
gentoo-62cd07c6e0f04fa361f2767b9653c64720eb356b.tar.bz2
gentoo-62cd07c6e0f04fa361f2767b9653c64720eb356b.zip
dev-cpp/amqp-cpp: Initial import
Package-Manager: Portage-3.0.10, Repoman-3.0.2 Signed-off-by: Alexey Shvetsov <alexxy@gentoo.org>
Diffstat (limited to 'dev-cpp/amqp-cpp/amqp-cpp-4.3.10.ebuild')
-rw-r--r--dev-cpp/amqp-cpp/amqp-cpp-4.3.10.ebuild38
1 files changed, 38 insertions, 0 deletions
diff --git a/dev-cpp/amqp-cpp/amqp-cpp-4.3.10.ebuild b/dev-cpp/amqp-cpp/amqp-cpp-4.3.10.ebuild
new file mode 100644
index 000000000000..ac7156b38809
--- /dev/null
+++ b/dev-cpp/amqp-cpp/amqp-cpp-4.3.10.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+CMAKE_ECLASS="cmake"
+inherit cmake-multilib
+
+MY_PN=${PN^^}
+MY_P=${MY_PN}-${PV}
+
+DESCRIPTION="AMQP-CPP is a C++ library for communicating with a RabbitMQ message broker"
+HOMEPAGE="https://github.com/CopernicaMarketingSoftware/AMQP-CPP"
+SRC_URI="https://github.com/CopernicaMarketingSoftware/${MY_PN}/archive/v${PV}.tar.gz -> ${MY_P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+IUSE=""
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ sed \
+ -e "s:DESTINATION cmake:DESTINATION share/cmake/${MY_PN}:g" \
+ -e "s:DESTINATION lib:DESTINATION $(get_libdir):g" \
+ -i CMakeLists.txt || die
+ cmake_src_prepare
+ default
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DAMQP-CPP_BUILD_SHARED=ON
+ -DAMQP-CPP_LINUX_TCP=ON
+ )
+ cmake-multilib_src_configure
+}