app-misc/g15stats: EAPI-7 revbump

- Fixed docdir

Package-Manager: Portage-3.0.6, Repoman-3.0.1
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
This commit is contained in:
Lars Wendler
2020-09-09 13:48:13 +02:00
parent 52836328f7
commit 1eb5d8b932
2 changed files with 25 additions and 12 deletions

View File

@@ -0,0 +1,11 @@
--- g15stats-1.9.7/Makefile.am
+++ g15stats-1.9.7/Makefile.am
@@ -4,7 +4,7 @@
bin_PROGRAMS = g15stats
noinst_HEADERS = g15stats.h
-docdir = $(prefix)/share/doc/$(PACKAGE)-$(VERSION)
+docdir = @docdir@
doc_DATA = README ChangeLog AUTHORS NEWS COPYING
LIBS = -lg15daemon_client -lg15render -lpthread -lm -lrt

View File

@@ -1,7 +1,9 @@
# Copyright 1999-2017 Gentoo Foundation
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=4
EAPI=7
inherit autotools
DESCRIPTION="CPU, memory, swap, network stats for G15 Keyboard"
HOMEPAGE="https://sourceforge.net/projects/g15daemon/"
@@ -18,25 +20,25 @@ RDEPEND=">=app-misc/g15daemon-1.9.0
sys-libs/zlib
gnome-base/libgtop"
DEPEND="${RDEPEND}
virtual/pkgconfig"
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"
PATCHES=( "${FILESDIR}/${P}-docdir.patch" )
src_prepare() {
sh autogen.sh
default
mv configure.{in,ac} || die
eautoreconf
}
src_configure() {
export CPPFLAGS=$CFLAGS
export CPPFLAGS="${CFLAGS}"
econf
}
src_compile() {
emake
}
src_install() {
emake DESTDIR="${D}" install
rm "$D"/usr/share/doc/${P}/{COPYING,NEWS}
default
rm "${D}"/usr/share/doc/${PF}/{COPYING,NEWS} || die
newconfd "${FILESDIR}/${PN}-1.9.7.confd" ${PN}
newinitd "${FILESDIR}/${PN}-1.9.7.initd" ${PN}