forked from tastytea/overlay
dev-cpp/curlpp: treeclean
Signed-off-by: tastytea <tastytea@tastytea.de>
This commit is contained in:
parent
14b37d1223
commit
e7f02c7f53
|
@ -1 +0,0 @@
|
|||
DIST curlpp-0.8.1.tar.gz 143017 BLAKE2B 7f3911499b42077c9f108b0355005744300383836a1c82dcba80207482b231527482fb17dcd78a7f288903e996afaf49a4478c7cb5c821bf597b26f4450a430b SHA512 a46b47150c0f0f1f0056e08966ce2fefa5e86fc729406e0220fbcf400da5409f05c87b636b13da3c4d4460c1177aedb494b9569bbcd9012326d4d5f59376397e
|
|
@ -1,40 +0,0 @@
|
|||
# Copyright 2018-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit cmake
|
||||
|
||||
DESCRIPTION="C++ wrapper for libcURL"
|
||||
HOMEPAGE="https://www.curlpp.org/"
|
||||
SRC_URI="https://github.com/jpbarrette/curlpp/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE="doc examples static-libs"
|
||||
|
||||
RDEPEND=">=net-misc/curl-7.58.0"
|
||||
DEPEND=">=dev-util/cmake-3.9.6
|
||||
${RDEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
cmake_src_prepare
|
||||
sed -i 's/@LDFLAGS@ //' extras/curlpp.pc.in || die
|
||||
sed -i 's,@includedir@,${prefix}/@includedir@,' extras/curlpp.pc.in || die
|
||||
sed -i 's,@libdir@,${prefix}/@libdir@,' extras/curlpp.pc.in || die
|
||||
if ! use static-libs; then
|
||||
eapply "${FILESDIR}/no_static_lib.patch"
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
dodoc Readme.md doc/AUTHORS doc/TODO
|
||||
if use doc; then
|
||||
dodoc doc/guide.pdf
|
||||
fi
|
||||
if use examples; then
|
||||
dodoc -r examples/
|
||||
fi
|
||||
}
|
|
@ -1,31 +0,0 @@
|
|||
diff -u a/CMakeLists.txt b/CMakeLists.txt
|
||||
--- a/CMakeLists.txt 2018-11-19 04:28:50.106323417 +0100
|
||||
+++ b/CMakeLists.txt 2018-11-19 04:30:26.045870468 +0100
|
||||
@@ -89,7 +89,6 @@
|
||||
target_link_libraries(${PROJECT_NAME} ${CURL_LIBRARIES} ${CONAN_LIBS})
|
||||
set_target_properties(${PROJECT_NAME} PROPERTIES SOVERSION 1 VERSION 1.0.0)
|
||||
|
||||
-add_library(${PROJECT_NAME}_static STATIC ${HeaderFileList} ${SourceFileList})
|
||||
|
||||
# Make sure that on unix-platforms shared and static libraries have
|
||||
# the same root name, but different suffixes.
|
||||
@@ -97,18 +96,15 @@
|
||||
# (solution taken from https://cmake.org/Wiki/CMake_FAQ#How_do_I_make_my_shared_and_static_libraries_have_the_same_root_name.2C_but_different_suffixes.3F)
|
||||
#
|
||||
# Making shared and static libraries have the same root name, but different suffixes
|
||||
-SET_TARGET_PROPERTIES(${PROJECT_NAME}_static PROPERTIES OUTPUT_NAME ${PROJECT_NAME})
|
||||
# Now the library target "curlpp_static" will be named "curlpp.lib" with MS tools.
|
||||
# This conflicts with the "curlpp.lib" import library corresponding to "curlpp.dll",
|
||||
# so we add a "lib" prefix (which is default on other platforms anyway):
|
||||
-SET_TARGET_PROPERTIES(${PROJECT_NAME}_static PROPERTIES PREFIX "lib")
|
||||
-target_link_libraries(${PROJECT_NAME}_static ${CURL_LIBRARIES} ${CONAN_LIBS})
|
||||
|
||||
# install headers
|
||||
install(DIRECTORY include/utilspp/ DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/utilspp")
|
||||
install(DIRECTORY include/curlpp/ DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/curlpp")
|
||||
|
||||
-install(TARGETS ${PROJECT_NAME} ${PROJECT_NAME}_static
|
||||
+install(TARGETS ${PROJECT_NAME}
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
|
@ -1,15 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>gentoo@tastytea.de</email>
|
||||
<name>tastytea</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<maintainer>
|
||||
<name>Jean-Philippe Barrette-LaPierre</name>
|
||||
</maintainer>
|
||||
<doc>https://github.com/jpbarrette/curlpp/blob/master/doc/guide.pdf</doc>
|
||||
<bugs-to>https://github.com/jpbarrette/curlpp/issues</bugs-to>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
|
@ -1,3 +0,0 @@
|
|||
# tastytea <gentoo@tastytea.de> (2023-02-20)
|
||||
# is in ::gentoo now, removal on 2023-03-20
|
||||
dev-cpp/curlpp
|
Loading…
Reference in New Issue
Block a user