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 A359613997D for ; Sun, 10 Nov 2019 10:30:46 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1AD9AE0A6D; Sun, 10 Nov 2019 10:30:26 +0000 (UTC) Received: from smtp.gentoo.org (smtp.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 EB642E09FD for ; Sun, 10 Nov 2019 10:30:25 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 53C4834CC48 for ; Sat, 9 Nov 2019 20:52:36 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5DF4276A for ; Sat, 9 Nov 2019 20:52:34 +0000 (UTC) From: "Aaron Bauman" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Aaron Bauman" Message-ID: <1573332727.ef84a98b9675b991b28fc33f9e4f5b39746cab01.bman@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-tex/lgrind/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-tex/lgrind/lgrind-3.67-r3.ebuild X-VCS-Directories: dev-tex/lgrind/ X-VCS-Committer: bman X-VCS-Committer-Name: Aaron Bauman X-VCS-Revision: ef84a98b9675b991b28fc33f9e4f5b39746cab01 X-VCS-Branch: master Date: Sat, 9 Nov 2019 20:52:34 +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: b942e881-b67b-4156-b75a-eeaa120ac948 X-Archives-Hash: 3e8bb8f17bf0330762629ea41758189c commit: ef84a98b9675b991b28fc33f9e4f5b39746cab01 Author: Aaron Bauman gentoo org> AuthorDate: Sat Nov 9 20:52:07 2019 +0000 Commit: Aaron Bauman gentoo org> CommitDate: Sat Nov 9 20:52:07 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef84a98b dev-tex/lgrind: bump EAPI and stuff Signed-off-by: Aaron Bauman gentoo.org> dev-tex/lgrind/lgrind-3.67-r3.ebuild | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/dev-tex/lgrind/lgrind-3.67-r3.ebuild b/dev-tex/lgrind/lgrind-3.67-r3.ebuild index 7c92be12ec1..bf0507cc896 100644 --- a/dev-tex/lgrind/lgrind-3.67-r3.ebuild +++ b/dev-tex/lgrind/lgrind-3.67-r3.ebuild @@ -1,9 +1,9 @@ # Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=0 +EAPI=7 -inherit latex-package toolchain-funcs eutils +inherit latex-package toolchain-funcs DESCRIPTION="A pretty printer for various programming languages with tex output." SRC_URI="https://dev.gentoo.org/~dilfridge/distfiles/${P}.tgz" @@ -15,12 +15,12 @@ IUSE="examples" S=${WORKDIR}/${PN} -src_unpack() { - unpack ${A} - cd "${S}" - echo 'CFLAGS+=-DDEFSFILE=\"$(DEFSFILE)\" -DVERSION=\"$(VERSION)\"' > source/Makefile - echo 'lgrind: lgrind.o lgrindef.o regexp.o' >> source/Makefile - epatch "${FILESDIR}/${P}-fgets.patch" +PATCHES=( "${FILESDIR}/${P}-fgets.patch" ) + +src_prepare() { + echo 'CFLAGS+=-DDEFSFILE=\"$(DEFSFILE)\" -DVERSION=\"$(VERSION)\"' > source/Makefile || die "Fixing Makefile failed" + echo 'lgrind: lgrind.o lgrindef.o regexp.o' >> source/Makefile || die "Fixing Makefile failed" + default } src_compile() { @@ -28,7 +28,7 @@ src_compile() { latex-package_src_compile cd "${S}"/source - emake DEFSFILE="/usr/share/texmf/tex/latex/${PN}/lgrindef" VERSION="${PV}" || die + emake DEFSFILE="/usr/share/texmf/tex/latex/${PN}/lgrindef" VERSION="${PV}" } src_install() { @@ -42,10 +42,12 @@ src_install() { # and finally, the documentation dodoc FAQ README + if use examples ; then docinto examples dodoc example/* fi + cd "${S}"/source doman lgrind.1 lgrindef.5 }