commit:     ad141ad909c0f860e0cebe8ee9d5714eabc30141
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sat Sep 19 22:51:08 2020 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sat Sep 19 22:51:08 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ad141ad9

dev-lang/bas: Port to EAPI 7

Closes: https://bugs.gentoo.org/632438
Closes: https://bugs.gentoo.org/740956
Package-Manager: Portage-3.0.7, Repoman-3.0.1
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 dev-lang/bas/bas-2.4.ebuild               | 32 ++++++++++++++++---------------
 dev-lang/bas/files/bas-2.1-makefile.patch |  4 ++--
 2 files changed, 19 insertions(+), 17 deletions(-)

diff --git a/dev-lang/bas/bas-2.4.ebuild b/dev-lang/bas/bas-2.4.ebuild
index 6e07253f7a6..30a9f6103ab 100644
--- a/dev-lang/bas/bas-2.4.ebuild
+++ b/dev-lang/bas/bas-2.4.ebuild
@@ -1,8 +1,9 @@
-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=4
-inherit autotools eutils toolchain-funcs
+EAPI=7
+
+inherit autotools toolchain-funcs
 
 DESCRIPTION="An interpreter for the classic dialect of the programming 
language BASIC"
 HOMEPAGE="http://www.moria.de/~michael/bas/";
@@ -13,27 +14,28 @@ SLOT="0"
 KEYWORDS="~amd64 ~x86"
 IUSE="lr0"
 
-RDEPEND="sys-libs/ncurses
+RDEPEND="
+       sys-libs/ncurses
        virtual/libintl"
-DEPEND="${RDEPEND}
-       sys-devel/gettext"
+DEPEND="${RDEPEND}"
+BDEPEND="sys-devel/gettext"
 
-src_prepare() {
-       epatch \
-               "${FILESDIR}"/${PN}-2.1-makefile.patch
+PATCHES=( "${FILESDIR}"/${PN}-2.1-makefile.patch )
 
+src_prepare() {
+       default
+       mv configure.{in,ac} || die
        eautoconf
 }
 
 src_configure() {
        tc-export AR
-       econf \
-               $(use_enable lr0)
+       econf $(use_enable lr0)
 }
 
 src_install() {
-       emake DESTDIR="${D}" install
-       dodoc NEWS README
-       insinto /usr/share/doc/${PF}/pdf
-       doins bas.pdf
+       default
+
+       docinto pdf
+       dodoc bas.pdf
 }

diff --git a/dev-lang/bas/files/bas-2.1-makefile.patch 
b/dev-lang/bas/files/bas-2.1-makefile.patch
index 3be4bb09eaf..904ce3abcb4 100644
--- a/dev-lang/bas/files/bas-2.1-makefile.patch
+++ b/dev-lang/bas/files/bas-2.1-makefile.patch
@@ -4,8 +4,8 @@ Fixes makefile.in to respect AR during libbas build
 
 Patch by Kevin McCarthy <[email protected]>
 
---- Makefile.in
-+++ Makefile.in
+--- a/Makefile.in
++++ b/Makefile.in
 @@ -27,7 +27,7 @@
  libbas.a:     auto.o bas.o fs.o global.o token.o program.o \
                str.o value.o var.o

Reply via email to