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 <nex+b-g-o@nexadn.de>
Closes: https://github.com/gentoo/gentoo/pull/25768
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Adrian Schollmeyer
2022-06-05 14:38:39 +02:00
committed by Sam James
parent f2546a16c0
commit 73ecc6c24d
3 changed files with 51 additions and 1 deletions

View File

@@ -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)

View File

@@ -1,7 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<!-- maintainer-needed -->
<maintainer type="person" proxied="yes">
<email>nex+b-g-o@nexadn.de</email>
<name>Adrian Schollmeyer</name>
</maintainer>
<maintainer type="project" proxied="proxy">
<email>proxy-maint@gentoo.org</email>
<name>Proxy Maintainers</name>
</maintainer>
<upstream>
<bugs-to>https://git.jordanko.ch/Igloo/Push/issues</bugs-to>
<remote-id type="github">CyberShadow/znc-clientbuffer</remote-id>

View File

@@ -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
}