From 0837a453c86e8c2766b9e46694017b25b949d1df Mon Sep 17 00:00:00 2001 From: tastytea Date: Wed, 18 Dec 2019 16:49:10 +0100 Subject: [PATCH] dev-cpp/restclient-cpp: New package. Package-Manager: Portage-2.3.82, Repoman-2.3.16 Manifest-Sign-Key: 3555266864CA6D7FF45AA6E7CFC39497F1B26E07 --- dev-cpp/restclient-cpp/Manifest | 14 ++++++++++ .../files/0.5.1-GNUInstallDirs.patch | 28 +++++++++++++++++++ dev-cpp/restclient-cpp/metadata.xml | 12 ++++++++ .../restclient-cpp-0.5.1.ebuild | 21 ++++++++++++++ 4 files changed, 75 insertions(+) create mode 100644 dev-cpp/restclient-cpp/Manifest create mode 100644 dev-cpp/restclient-cpp/files/0.5.1-GNUInstallDirs.patch create mode 100644 dev-cpp/restclient-cpp/metadata.xml create mode 100644 dev-cpp/restclient-cpp/restclient-cpp-0.5.1.ebuild diff --git a/dev-cpp/restclient-cpp/Manifest b/dev-cpp/restclient-cpp/Manifest new file mode 100644 index 0000000..36bab26 --- /dev/null +++ b/dev-cpp/restclient-cpp/Manifest @@ -0,0 +1,14 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + +AUX 0.5.1-GNUInstallDirs.patch 968 BLAKE2B 76f32408e9f0a36b5ec138204c65e4604c1feb1e97ab4f966e0fbf7d447f8d331d4ea2639328284eb4c89390876dd9265fc5cf1f93d341a273b0f2f96ae58e8f SHA512 7e1772d8ad8e67facefe2822199f24c63a8cc8af155da09cb4ff8b4497226a878402692ac63987df8b07f46f07bbd9c8064845651eece10c51fb4e7a56110885 +DIST 0.5.1.tar.gz 919070 BLAKE2B 773bd6cf1f566421ae7eb6b6514f9690bd1ab75a011ee26b2a86b3248b122ed10cd1f0dfb046f3cb0a3ae8bcca0d2df80093bc9e3c5218280ed561c568a61926 SHA512 d5e17a984af44f863bc7cdc7307c2b06cae9252f86c6c6c2377cdb317f61b6419d8e9aedc5e5ccdb08fd1ee13848ec3b9ef8067a8d26dcf438a5c8793b5a2ce3 +EBUILD restclient-cpp-0.5.1.ebuild 453 BLAKE2B ad0c978e71f385dcc03c0b98f6534065b97629e7553c5714d711f72749d851cd6b2cc09da772337df19aeeefdab4f2f1babab1a61a8f93c5b6040936b75a9d0c SHA512 e96fefc9879be9f00b6a6645b43ebd7adb396b483f466fe6dc85b63327f468d40ff981a89b0daa51ee810dee269391fe4d685e4e7e4b6be55100369e61c04788 +MISC metadata.xml 402 BLAKE2B e2c15c0306606e52e4a29cfa6a288caaa218a73402aef2464da2df72e515e3b6e08853a1ec05405068935ae3d74981d9fe1255e0ad0812848f6b725b938a0df3 SHA512 ae0009560ab899ea52b26bfa1e7dfae02a1234ba6d4f7c710f9d6118b28c1ebf79b65ee2742ddadf7e87f1024160dd04f46c94c34e50bb8656c069497435327d +-----BEGIN PGP SIGNATURE----- + +iHUEAREIAB0WIQQ1VSZoZMptf/RapufPw5SX8bJuBwUCXfpKdgAKCRDPw5SX8bJu +B46fAP4iCLgFNt8kSUjxhGK9Ial93+gdouSmYL8zvqCP/3wu5gD/bh/8npmbthJ9 +KKUxCywNwCbKk+EUtjJxNPtWRRdvPjE= +=TPaG +-----END PGP SIGNATURE----- diff --git a/dev-cpp/restclient-cpp/files/0.5.1-GNUInstallDirs.patch b/dev-cpp/restclient-cpp/files/0.5.1-GNUInstallDirs.patch new file mode 100644 index 0000000..d87f5ac --- /dev/null +++ b/dev-cpp/restclient-cpp/files/0.5.1-GNUInstallDirs.patch @@ -0,0 +1,28 @@ +--- + CMakeLists.txt | 11 ++++++----- + 1 file changed, 6 insertions(+), 5 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 10b8db8..7ea8b63 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -80,11 +80,12 @@ target_link_libraries(restclient-cpp + PUBLIC Threads::Threads + ) + +-set(INCLUDE_INSTALL_DIR "include/restclient-cpp" ) +-set(CONFIG_INSTALL_DIR "lib/cmake/restclient-cpp" ) +-set(RUNTIME_INSTALL_DIR "bin" ) +-set(LIB_INSTALL_DIR "lib" ) +-set(DATA_INSTALL_DIR "share/restclient-cpp" ) ++include(GNUInstallDirs) ++set(INCLUDE_INSTALL_DIR "${CMAKE_INSTALL_INCLUDEDIR}/restclient-cpp" ) ++set(CONFIG_INSTALL_DIR "${CMAKE_INSTALL_LIBDIR}/cmake/restclient-cpp" ) ++set(RUNTIME_INSTALL_DIR "${CMAKE_INSTALL_BINDIR}" ) ++set(LIB_INSTALL_DIR "${CMAKE_INSTALL_LIBDIR}" ) ++set(DATA_INSTALL_DIR "${CMAKE_INSTALL_DATADIR}/restclient-cpp" ) + + install(TARGETS restclient-cpp EXPORT restclient-cppTargets + PUBLIC_HEADER DESTINATION ${INCLUDE_INSTALL_DIR} +-- +2.24.1 diff --git a/dev-cpp/restclient-cpp/metadata.xml b/dev-cpp/restclient-cpp/metadata.xml new file mode 100644 index 0000000..4b934f7 --- /dev/null +++ b/dev-cpp/restclient-cpp/metadata.xml @@ -0,0 +1,12 @@ + + + + + gentoo@tastytea.de + tastytea + + + http://code.mrtazz.com/restclient-cpp/ref/index.html + https://github.com/mrtazz/restclient-cpp/issues + + diff --git a/dev-cpp/restclient-cpp/restclient-cpp-0.5.1.ebuild b/dev-cpp/restclient-cpp/restclient-cpp-0.5.1.ebuild new file mode 100644 index 0000000..319e77b --- /dev/null +++ b/dev-cpp/restclient-cpp/restclient-cpp-0.5.1.ebuild @@ -0,0 +1,21 @@ +# Copyright 2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake-utils + +DESCRIPTION="C++ client for making HTTP/REST requests" +HOMEPAGE="http://code.mrtazz.com/restclient-cpp/" +SRC_URI="https://github.com/mrtazz/restclient-cpp/archive/${PV}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND="net-misc/curl" +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}/${PV}-GNUInstallDirs.patch" +)