diff options
Diffstat (limited to 'dev-cpp/amqp-cpp/amqp-cpp-4.3.18.ebuild')
-rw-r--r-- | dev-cpp/amqp-cpp/amqp-cpp-4.3.18.ebuild | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/dev-cpp/amqp-cpp/amqp-cpp-4.3.18.ebuild b/dev-cpp/amqp-cpp/amqp-cpp-4.3.18.ebuild new file mode 100644 index 000000000000..33a052a82f5f --- /dev/null +++ b/dev-cpp/amqp-cpp/amqp-cpp-4.3.18.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +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" +S="${WORKDIR}/${MY_P}" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" + +src_prepare() { + sed \ + -e "s:DESTINATION lib:DESTINATION $(get_libdir):g" \ + -e "s:DESTINATION cmake:DESTINATION $(get_libdir)/cmake/${PN/-/}:g" \ + -i CMakeLists.txt || die + + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DAMQP-CPP_BUILD_SHARED=ON + -DAMQP-CPP_LINUX_TCP=ON + ) + + cmake_src_configure +} |