From 73ecc6c24d708bbc8c0c72e5fb4e77e10b72fe47 Mon Sep 17 00:00:00 2001 From: Adrian Schollmeyer Date: Sun, 5 Jun 2022 14:38:39 +0200 Subject: [PATCH] net-irc/znc-clientbuffer: QA fixes; adopt - Add myself as a maintainer - Migrate to cmake.eclass Removes the implicit dependency on Python (due to znc-buildmod) and allows for more flexible options during building. - Use PV in SRC_URI Previous SRC_URI had the version hard-coded, although it's equal to PV. - update EAPI 7 -> 8 - Remove unneded DOCS The default DOCS doesn't need to be modified for the docs to be installed as expected. Signed-off-by: Adrian Schollmeyer Closes: https://github.com/gentoo/gentoo/pull/25768 Signed-off-by: Sam James --- net-irc/znc-clientbuffer/files/CMakeLists.txt | 8 +++++ net-irc/znc-clientbuffer/metadata.xml | 9 ++++- .../znc-clientbuffer-1.0.48-r1.ebuild | 35 +++++++++++++++++++ 3 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 net-irc/znc-clientbuffer/files/CMakeLists.txt create mode 100644 net-irc/znc-clientbuffer/znc-clientbuffer-1.0.48-r1.ebuild diff --git a/net-irc/znc-clientbuffer/files/CMakeLists.txt b/net-irc/znc-clientbuffer/files/CMakeLists.txt new file mode 100644 index 0000000000000..92048a07b19d9 --- /dev/null +++ b/net-irc/znc-clientbuffer/files/CMakeLists.txt @@ -0,0 +1,8 @@ +# Autogenerated using znc-buildmod -v from net-irc/znc-1.8.2 +cmake_minimum_required(VERSION 3.1) +project(ExternalModules LANGUAGES CXX) +find_package(ZNC HINTS /usr/share/znc REQUIRED) + +add_library(module_clientbuffer MODULE clientbuffer.cpp) +znc_setup_module(TARGET module_clientbuffer NAME clientbuffer) +target_link_libraries(module_clientbuffer PRIVATE) diff --git a/net-irc/znc-clientbuffer/metadata.xml b/net-irc/znc-clientbuffer/metadata.xml index 51ac8d02eab72..8cca526cf091d 100644 --- a/net-irc/znc-clientbuffer/metadata.xml +++ b/net-irc/znc-clientbuffer/metadata.xml @@ -1,7 +1,14 @@ - + + nex+b-g-o@nexadn.de + Adrian Schollmeyer + + + proxy-maint@gentoo.org + Proxy Maintainers + https://git.jordanko.ch/Igloo/Push/issues CyberShadow/znc-clientbuffer diff --git a/net-irc/znc-clientbuffer/znc-clientbuffer-1.0.48-r1.ebuild b/net-irc/znc-clientbuffer/znc-clientbuffer-1.0.48-r1.ebuild new file mode 100644 index 0000000000000..1575980e13a74 --- /dev/null +++ b/net-irc/znc-clientbuffer/znc-clientbuffer-1.0.48-r1.ebuild @@ -0,0 +1,35 @@ +# Copyright 2020-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="A ZNC module which provides client specific buffers" +HOMEPAGE="https://github.com/CyberShadow/znc-clientbuffer" +SRC_URI="https://github.com/CyberShadow/znc-clientbuffer/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND=" + net-irc/znc:=" + +RDEPEND="${DEPEND}" + +src_prepare() { + cp -v "${FILESDIR}/CMakeLists.txt" "${S}" || die + cmake_src_prepare +} + +src_compile() { + cmake_src_compile +} + +src_install() { + exeinto /usr/$(get_libdir)/znc + doexe "${BUILD_DIR}"/clientbuffer.so + + einstalldocs +}