From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C1163138334 for ; Sun, 15 Dec 2019 22:06:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EE240E01B5; Sun, 15 Dec 2019 22:06:46 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C0D8AE01B5 for ; Sun, 15 Dec 2019 22:06:46 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 781DB34D8C7 for ; Sun, 15 Dec 2019 22:06:45 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EFFCA8A1 for ; Sun, 15 Dec 2019 22:06:43 +0000 (UTC) From: "David Seifert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "David Seifert" Message-ID: <1576447589.1ae54f598de9d3c565ef7bf50b098f0c62f7e6b5.soap@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-cpp/cpp-hocon/, dev-cpp/cpp-hocon/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-cpp/cpp-hocon/cpp-hocon-0.2.1.ebuild dev-cpp/cpp-hocon/files/cpp-hocon-0.2.1-cmake.patch X-VCS-Directories: dev-cpp/cpp-hocon/ dev-cpp/cpp-hocon/files/ X-VCS-Committer: soap X-VCS-Committer-Name: David Seifert X-VCS-Revision: 1ae54f598de9d3c565ef7bf50b098f0c62f7e6b5 X-VCS-Branch: master Date: Sun, 15 Dec 2019 22:06:43 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 6e9840c1-bb05-4ff5-b01d-7a28d3b5183e X-Archives-Hash: 83cee6b34ce4e58affdb36ae3f23ac49 commit: 1ae54f598de9d3c565ef7bf50b098f0c62f7e6b5 Author: David Seifert gentoo org> AuthorDate: Sun Dec 15 22:06:29 2019 +0000 Commit: David Seifert gentoo org> CommitDate: Sun Dec 15 22:06:29 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1ae54f59 dev-cpp/cpp-hocon: [QA] Fix ebuild * EAPI 7 * Use GNUInstallDirs * Remove dead variables Package-Manager: Portage-2.3.81, Repoman-2.3.20 Signed-off-by: David Seifert gentoo.org> dev-cpp/cpp-hocon/cpp-hocon-0.2.1.ebuild | 31 ++------------ .../cpp-hocon/files/cpp-hocon-0.2.1-cmake.patch | 48 ++++++++++++++++++++++ 2 files changed, 52 insertions(+), 27 deletions(-) diff --git a/dev-cpp/cpp-hocon/cpp-hocon-0.2.1.ebuild b/dev-cpp/cpp-hocon/cpp-hocon-0.2.1.ebuild index 45f62697011..a7c2624ff27 100644 --- a/dev-cpp/cpp-hocon/cpp-hocon-0.2.1.ebuild +++ b/dev-cpp/cpp-hocon/cpp-hocon-0.2.1.ebuild @@ -1,7 +1,7 @@ # Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 inherit cmake-utils @@ -11,37 +11,14 @@ SRC_URI="https://github.com/puppetlabs/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz https://github.com/puppetlabs/cpp-hocon/commit/caab275509826dc5fe5ab2632582abb8f83ea2b3.patch -> ${PN}-0.2.1-boost-filesystem.patch" LICENSE="Apache-2.0" -SLOT="0" +SLOT="0/${PV}" KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86" -IUSE="debug test" -RESTRICT="!test? ( test )" +IUSE="debug" DEPEND=" - >=sys-devel/gcc-4.9.3:* >=dev-libs/boost-1.54:=[nls] >=dev-libs/leatherman-0.9.3:= " RDEPEND="${DEPEND}" -src_prepare() { - cmake-utils_src_prepare - epatch "${DISTDIR}/${PN}-0.2.1-boost-filesystem.patch" - - # make it support multilib - sed -i "s/\ lib)/\ $(get_libdir))/g" lib/CMakeLists.txt || die - sed -i "s/lib\")/$(get_libdir)\")/g" CMakeLists.txt || die -} - -src_configure() { - local mycmakeargs=( - -DCMAKE_VERBOSE_MAKEFILE=ON - -DCMAKE_BUILD_TYPE=None - -DCMAKE_INSTALL_PREFIX=/usr - ) - if use debug; then - mycmakeargs+=( - -DCMAKE_BUILD_TYPE=Debug - ) - fi - cmake-utils_src_configure -} +PATCHES=( "${FILESDIR}"/${PN}-0.2.1-cmake.patch ) diff --git a/dev-cpp/cpp-hocon/files/cpp-hocon-0.2.1-cmake.patch b/dev-cpp/cpp-hocon/files/cpp-hocon-0.2.1-cmake.patch new file mode 100644 index 00000000000..8e0ddb924a4 --- /dev/null +++ b/dev-cpp/cpp-hocon/files/cpp-hocon-0.2.1-cmake.patch @@ -0,0 +1,48 @@ +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -10,6 +10,8 @@ + string(TOUPPER ${PROJECT_C_NAME} PROJECT_NAME_UPPER) + string(TOLOWER ${PROJECT_C_NAME} PROJECT_NAME_LOWER) + ++include(GNUInstallDirs) ++ + # Common cmake setup + if (NOT CMAKE_BUILD_TYPE) + message(STATUS "Defaulting to a release build.") +@@ -42,7 +44,7 @@ + set(BOOST_COMPONENTS regex) + endif() + +-list(APPEND BOOST_COMPONENTS thread date_time chrono system program_options) ++list(APPEND BOOST_COMPONENTS thread date_time chrono filesystem system program_options) + + # Add other dependencies + find_package(Boost 1.54 REQUIRED COMPONENTS ${BOOST_COMPONENTS}) +--- a/lib/CMakeLists.txt ++++ b/lib/CMakeLists.txt +@@ -77,7 +77,10 @@ + set_target_properties(libprojectsrc PROPERTIES POSITION_INDEPENDENT_CODE true) + + add_library(lib${PROJECT_NAME} $) +-set_target_properties(lib${PROJECT_NAME} PROPERTIES VERSION "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}") ++set_target_properties( ++ lib${PROJECT_NAME} ++ PROPERTIES VERSION "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}" ++ OUTPUT_NAME ${PROJECT_NAME}) + target_link_libraries(lib${PROJECT_NAME} + ${LEATHERMAN_LIBRARIES} + ${Boost_LIBRARIES} +@@ -88,7 +91,11 @@ + symbol_exports(lib${PROJECT_NAME} "${CMAKE_CURRENT_LIST_DIR}/inc/hocon/export.h") + + # This correctly handles DLL installation on Windows. +-leatherman_install(lib${PROJECT_NAME}) +-install(DIRECTORY inc/hocon DESTINATION include) ++install( ++ TARGETS lib${PROJECT_NAME} ++ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} ++ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ++ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) ++install(DIRECTORY inc/hocon DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) + + add_subdirectory(tests)