summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarty E. Plummer <hanetzer@startmail.com>2018-03-22 06:54:34 -0500
committerAaron Bauman <bman@gentoo.org>2018-03-26 16:19:42 -0400
commit6326de87e9f6e14fe2cd72839e21a4cb45534b18 (patch)
tree284a60025bad4d0c82a192a1504dd29139629706 /app-accessibility/brltty/brltty-5.2-r1.ebuild
parentnet-misc/teamviewer: Bump to 13.1.3026 (diff)
downloadgentoo-6326de87e9f6e14fe2cd72839e21a4cb45534b18.tar.gz
gentoo-6326de87e9f6e14fe2cd72839e21a4cb45534b18.tar.bz2
gentoo-6326de87e9f6e14fe2cd72839e21a4cb45534b18.zip
app-accessibility/brltty: bump to EAPI 6
Also readjusted the epatch call to an eapply call, added HTML_DOCS/einstalldocs as dohtml is deprecated on EAPI=6, and adjusted the keepdir call to point at the correct directory. Package-Manager: Portage-2.3.24, Repoman-2.3.6 Closes: https://github.com/gentoo/gentoo/pull/7590
Diffstat (limited to 'app-accessibility/brltty/brltty-5.2-r1.ebuild')
-rw-r--r--app-accessibility/brltty/brltty-5.2-r1.ebuild43
1 files changed, 24 insertions, 19 deletions
diff --git a/app-accessibility/brltty/brltty-5.2-r1.ebuild b/app-accessibility/brltty/brltty-5.2-r1.ebuild
index 8b9f34c0e4f9..3622819ef62d 100644
--- a/app-accessibility/brltty/brltty-5.2-r1.ebuild
+++ b/app-accessibility/brltty/brltty-5.2-r1.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
+EAPI=6
PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
FINDLIB_USE="ocaml"
@@ -42,11 +42,17 @@ DEPEND="virtual/pkgconfig
RDEPEND="java? ( >=virtual/jre-1.4 )
${COMMON_DEP}"
+HTML_DOCS=( "${S}"/Documents/Manual-BrlAPI/. )
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-5.2-fix-ldflags.patch
+ "${FILESDIR}"/${PN}-5.2-udev.patch
+ "${FILESDIR}"/${PN}-5.2-respect-AR.patch
+ "${FILESDIR}"/${PN}-5.2-sysmacros.patch
+)
+
src_prepare() {
- epatch "${FILESDIR}"/${P}-fix-ldflags.patch \
- "${FILESDIR}"/${P}-udev.patch \
- "${FILESDIR}"/${P}-respect-AR.patch \
- "${FILESDIR}"/${P}-sysmacros.patch
+ default
java-pkg-opt-2_src_prepare
@@ -163,30 +169,29 @@ src_install() {
libdir="$(get_libdir)"
mkdir -p "${D}"/usr/${libdir}/
- mv "${D}"/${libdir}/*.a "${D}"/usr/${libdir}/
+ mv "${D}"/${libdir}/*.a "${D}"/usr/${libdir}/ || die
gen_usr_ldscript libbrlapi.so
- cd Documents
- mv Manual-BRLTTY/English/BRLTTY.txt BRLTTY-en.txt
- mv Manual-BRLTTY/French/BRLTTY.txt BRLTTY-fr.txt
- mv Manual-BrlAPI/English/BrlAPI.txt BrlAPI-en.txt
+ cd Documents || die
+ mv Manual-BRLTTY/English/BRLTTY.txt BRLTTY-en.txt || die
+ mv Manual-BRLTTY/French/BRLTTY.txt BRLTTY-fr.txt || die
+ mv Manual-BrlAPI/English/BrlAPI.txt BrlAPI-en.txt || die
dodoc CONTRIBUTORS ChangeLog HISTORY README* TODO BRLTTY-*.txt
- dohtml -r Manual-BRLTTY
if use doc; then
- dohtml -r Manual-BrlAPI
dodoc BrlAPI-*.txt
+ HTML_DOCS="Manual-BRLTTY" einstalldocs
fi
- keepdir /var/lib/brlapi
- rmdir "${D}/run/brltty"
- rmdir "${D}/run"
+ keepdir /var/lib/BrlAPI
+ rmdir "${D}/run/brltty" || die
+ rmdir "${D}/run" || die
}
pkg_postinst() {
elog
- elog please be sure "${ROOT}"etc/brltty.conf is correct for your system.
+ elog "please be sure ${ROOT}etc/brltty.conf is correct for your system."
elog
- elog To make brltty start on boot, type this command as root:
+ elog "To make brltty start on boot, type this command as root:"
elog
- elog rc-update add brltty boot
+ elog "rc-update add brltty boot"
}