app-accessibility/nfbtrans: EAPI 7, eutils--

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2021-04-03 16:53:48 +01:00
parent f05a6a5a6a
commit a1ba44b30c
@@ -1,41 +1,43 @@
# Copyright 1999-2020 Gentoo Authors
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
EAPI=7
inherit eutils toolchain-funcs
inherit toolchain-funcs
DESCRIPTION="braille translator from the National Federation of the Blind"
DESCRIPTION="Braille translator from the National Federation of the Blind"
HOMEPAGE="http://www.nfb.org/nfbtrans"
SRC_URI="http://www.nfb.org/Images/nfb/Products_Technology/nfbtr774.zip"
S="${WORKDIR}"
LICENSE="public-domain"
SLOT="0"
KEYWORDS="amd64 ppc x86"
IUSE=""
DEPEND=" >=app-arch/unzip-5.50-r2"
RDEPEND=""
S=${WORKDIR}
BDEPEND=" >=app-arch/unzip-5.50-r2"
PATCHES=(
"${FILESDIR}"/${P}-gentoo-fix.patch
"${FILESDIR}"/${P}-getline-fix.patch
"${FILESDIR}"/${P}-respect-ldflags.patch
"${FILESDIR}"/${P}-gentoo-fix.patch
"${FILESDIR}"/${P}-getline-fix.patch
"${FILESDIR}"/${P}-respect-ldflags.patch
)
src_prepare() {
mv MAKEFILE Makefile || die
mv SPANISH.ZIP spanish.zip || die
emake lowercase
default
emake lowercase
}
src_compile() {
emake CC=$(tc-getCC) \
emake \
CC="$(tc-getCC)" \
LIBS= \
CFLAGS="${CFLAGS} -DLINUX" LDFLAGS="${LDFLAGS}" all
CFLAGS="${CFLAGS} -DLINUX" \
LDFLAGS="${LDFLAGS}" \
all
}
src_install() {