www-apps/blazeblogger: Port to EAPI 7

Closes: https://bugs.gentoo.org/474030
Closes: https://bugs.gentoo.org/481164
Closes: https://bugs.gentoo.org/740910
Package-Manager: Portage-3.0.7, Repoman-3.0.1
Signed-off-by: David Seifert <soap@gentoo.org>
This commit is contained in:
David Seifert
2020-09-17 17:36:30 +02:00
parent 80a7a31585
commit c125919714
2 changed files with 30 additions and 14 deletions

View File

@@ -1,13 +1,14 @@
# Copyright 1999-2013 Gentoo Foundation
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=4
EAPI=7
inherit eutils
inherit bash-completion-r1
DESCRIPTION="Simple, capable content management system for producing static content"
HOMEPAGE="http://blaze.blackened.cz/"
SRC_URI="https://${PN}.googlecode.com/files/${P}.tar.gz
SRC_URI="
https://${PN}.googlecode.com/files/${P}.tar.gz
doc? ( https://${PN}.googlecode.com/files/${PN}-doc-${PV}.tar.gz ) "
LICENSE="FDL-1.3 GPL-3"
@@ -18,17 +19,21 @@ IUSE="doc"
RDEPEND="dev-lang/perl"
DEPEND="${RDEPEND}"
src_prepare() {
sed -e '/-m 644 COPYING/d' \
-e '/-m 644 INSTALL/d' \
-i Makefile || die
epatch "${FILESDIR}"/${P}-bash-completion.patch #bug 417953
}
PATCHES=(
"${FILESDIR}"/${P}-bash-completion.patch #bug 417953
"${FILESDIR}"/${P}-makefile.patch
)
src_install() {
emake prefix="${D}/usr" config="${D}/etc" \
compdir="${D}/usr/share/bash-completion" install
emake \
prefix="${ED}"/usr \
config="${ED}"/etc \
compdir="${D}"/$(get_bashcompdir) \
docsdir="${ED}"/usr/share/doc/${PF} \
install
use doc && dohtml -r "${WORKDIR}"/${PN}-doc-${PV}/*
if use doc; then
docinto html
dodoc -r "${WORKDIR}"/${PN}-doc-${PV}/.
fi
}

View File

@@ -0,0 +1,11 @@
--- a/Makefile
+++ b/Makefile
@@ -84,8 +84,6 @@
$(INSTALL) -m 644 TODO $(docsdir)
$(INSTALL) -m 644 README $(docsdir)
$(INSTALL) -m 644 AUTHORS $(docsdir)
- $(INSTALL) -m 644 COPYING $(docsdir)
- $(INSTALL) -m 644 INSTALL $(docsdir)
-$(INSTALL) -m 644 ChangeLog $(docsdir)
install_man: $(MAN1)