diff options
author | Jakov Smolic <jakov.smolic@sartura.hr> | 2021-05-27 23:12:12 +0200 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2021-05-27 23:12:12 +0200 |
commit | f8360647294cff18c68bd23bd43d1cabe93a2a21 (patch) | |
tree | cfdccff3474b590ee40c1e2db055e21cbd61852e /net-misc/sysrepo | |
parent | net-libs/libnetconf2: Bump to 2.0.1 (diff) | |
download | gentoo-f8360647294cff18c68bd23bd43d1cabe93a2a21.tar.gz gentoo-f8360647294cff18c68bd23bd43d1cabe93a2a21.tar.bz2 gentoo-f8360647294cff18c68bd23bd43d1cabe93a2a21.zip |
net-misc/sysrepo: Bump to 2.0.1
Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr>
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'net-misc/sysrepo')
-rw-r--r-- | net-misc/sysrepo/Manifest | 1 | ||||
-rw-r--r-- | net-misc/sysrepo/files/sysrepo-2.0.1-cmake.patch | 12 | ||||
-rw-r--r-- | net-misc/sysrepo/sysrepo-2.0.1.ebuild | 41 |
3 files changed, 54 insertions, 0 deletions
diff --git a/net-misc/sysrepo/Manifest b/net-misc/sysrepo/Manifest index 346b2c22bc24..2dddb7b50d2e 100644 --- a/net-misc/sysrepo/Manifest +++ b/net-misc/sysrepo/Manifest @@ -1 +1,2 @@ DIST sysrepo-1.4.122.tar.gz 679974 BLAKE2B 3161eb8635c3ea7a0168b1a0eb3250da7e8c134030e5c5443d492cb708f095f9af12f08257a7d0b86a084b121754a8f19fa408de5afc32ce82d92bb4c6c7a535 SHA512 ccd603913b0f31f26f990dba8430ad6c1033546cd764396c43cc6667919b486924fc2d2fade77eee9ef7a3329aae2ceaf4acc578613a0c7c1d2a53d3cbf2944c +DIST sysrepo-2.0.1.tar.gz 642522 BLAKE2B dc2ce960f1ce4156b89ed8f0ab2c567ca50f8d7fc3bc1151cf52d2302ba8114c8e01b7e295c249176acab6c501fbf45850a6d89fde427be444bcb12ccd243dcc SHA512 c231174980985d7cc7380f2708cd5395f621735cee62923fcb224d09d500978917b4caa7860e4dca8520e27a4f002e7377b987b6738472d6424d09a0894a3953 diff --git a/net-misc/sysrepo/files/sysrepo-2.0.1-cmake.patch b/net-misc/sysrepo/files/sysrepo-2.0.1-cmake.patch new file mode 100644 index 000000000000..b48a4baad267 --- /dev/null +++ b/net-misc/sysrepo/files/sysrepo-2.0.1-cmake.patch @@ -0,0 +1,12 @@ +# ${LIB_HEADERS} are not supposed to be installed here, causes file collision with glibc +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -308,7 +308,7 @@ configure_file("${PROJECT_SOURCE_DIR}/sysrepo.pc.in" "${PROJECT_BINARY_DIR}/sysr + + # installation + install(TARGETS sysrepo DESTINATION ${CMAKE_INSTALL_LIBDIR}) +-install(FILES ${LIB_HEADERS} ${PROJECT_SOURCE_DIR}/src/sysrepo.h ${PROJECT_SOURCE_DIR}/src/sysrepo_types.h ++install(FILES ${PROJECT_SOURCE_DIR}/src/sysrepo.h ${PROJECT_SOURCE_DIR}/src/sysrepo_types.h + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) + install(FILES ${PROJECT_BINARY_DIR}/version.h ${PROJECT_SOURCE_DIR}/src/utils/values.h ${PROJECT_SOURCE_DIR}/src/utils/xpath.h + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/sysrepo) diff --git a/net-misc/sysrepo/sysrepo-2.0.1.ebuild b/net-misc/sysrepo/sysrepo-2.0.1.ebuild new file mode 100644 index 000000000000..b35cdd15a375 --- /dev/null +++ b/net-misc/sysrepo/sysrepo-2.0.1.ebuild @@ -0,0 +1,41 @@ +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake + +DESCRIPTION="YANG-based configuration and operational state data store" +HOMEPAGE="https://www.sysrepo.org" +SRC_URI="https://github.com/sysrepo/sysrepo/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc test" +RESTRICT="!test? ( test )" + +RDEPEND=">=net-libs/libyang-2.0.3:=" +DEPEND="${RDEPEND}" +BDEPEND="doc? ( app-doc/doxygen[dot] )" + +PATCHES=( "${FILESDIR}"/${P}-cmake.patch ) + +src_configure() { + local mycmakeargs=( + -DENABLE_TESTS=$(usex test) + ) + cmake_src_configure +} + +src_compile() { + cmake_src_compile + + use doc && cmake_src_compile doc +} + +src_install() { + cmake_src_install + + use doc && dodoc -r doc/. +} |