From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E54601382C5 for ; Tue, 16 Mar 2021 00:55:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 28628E07D7; Tue, 16 Mar 2021 00:55:23 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0D98DE07D7 for ; Tue, 16 Mar 2021 00:55:22 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C5088340EC7 for ; Tue, 16 Mar 2021 00:55:21 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2A9DD4A6 for ; Tue, 16 Mar 2021 00:55:20 +0000 (UTC) From: "Alessandro Barbieri" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alessandro Barbieri" Message-ID: <1615856118.34cd25319d156c12ba87f238e3c3fe4ab495788e.Alessandro-Barbieri@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: eclass/ X-VCS-Repository: repo/proj/guru X-VCS-Files: eclass/R-packages-guru.eclass X-VCS-Directories: eclass/ X-VCS-Committer: Alessandro-Barbieri X-VCS-Committer-Name: Alessandro Barbieri X-VCS-Revision: 34cd25319d156c12ba87f238e3c3fe4ab495788e X-VCS-Branch: dev Date: Tue, 16 Mar 2021 00:55:20 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 55890969-1ba1-45d1-9c18-91d3532f69ad X-Archives-Hash: 319c4f0f47faffeb991ecc3114658294 commit: 34cd25319d156c12ba87f238e3c3fe4ab495788e Author: Alessandro Barbieri gmail com> AuthorDate: Tue Mar 16 00:54:37 2021 +0000 Commit: Alessandro Barbieri gmail com> CommitDate: Tue Mar 16 00:55:18 2021 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=34cd2531 eclass: install documentation in DOCDIR Signed-off-by: Alessandro Barbieri gmail.com> eclass/R-packages-guru.eclass | 37 ++++++++++++++++++++++++++++--------- 1 file changed, 28 insertions(+), 9 deletions(-) diff --git a/eclass/R-packages-guru.eclass b/eclass/R-packages-guru.eclass index 6419cfec..8475f975 100644 --- a/eclass/R-packages-guru.eclass +++ b/eclass/R-packages-guru.eclass @@ -11,6 +11,13 @@ IUSE="byte-compile" DEPEND="dev-lang/R" RDEPEND="${DEPEND}" +dodocrm() { + if [ -e "${1}" ]; then + dodoc -r "${1}" + rm -rf "${1}" || die + fi +} + R-packages-guru_src_unpack() { unpack ${A} if [[ -d "${PN//_/.}" ]] && [[ ! -d "${P}" ]]; then @@ -18,15 +25,11 @@ R-packages-guru_src_unpack() { fi } -if has "${EAPI:-0}" 0 1 2 3 4 5; then - R-packages-guru_src_prepare() { - epatch_user - } -else - R-packages-guru_src_prepare() { - default - } -fi +R-packages-guru_src_prepare() { + rm -f LICENSE || die + default +} + R-packages-guru_src_compile() { MAKEFLAGS="CFLAGS=${CFLAGS// /\\ } CXXFLAGS=${CXXFLAGS// /\\ } FFLAGS=${FFLAGS// /\\ } FCFLAGS=${FCFLAGS// /\\ } LDFLAGS=${LDFLAGS// /\\ }" \ @@ -34,6 +37,22 @@ R-packages-guru_src_compile() { } R-packages-guru_src_install() { + cd "${WORKDIR}"/${PN//_/.} || die + + dodocrm examples || die +# dodocrm DESCRIPTION || die #keep this + dodocrm NEWS.md || die + dodocrm README.md || die + dodocrm html || die + docinto "${DOCSDIR}/html" + if [ -e doc ]; then + ls doc/*.html &>/dev/null && dodoc -r doc/*.html + rm -rf doc/*.html || die + docinto "${DOCSDIR}" + dodoc -r doc/. + rm -rf doc + fi + insinto /usr/$(get_libdir)/R/site-library doins -r "${WORKDIR}"/${PN//_/.} }