public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Mart Raudsepp" <leio@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-accessibility/brltty/
Date: Sun, 16 Aug 2020 07:52:40 +0000 (UTC)	[thread overview]
Message-ID: <1597564155.80f402602c6de344d3da225ed5ae9b83c36b1286.leio@gentoo> (raw)

commit:     80f402602c6de344d3da225ed5ae9b83c36b1286
Author:     Mart Raudsepp <leio <AT> gentoo <DOT> org>
AuthorDate: Sun Aug 16 07:38:24 2020 +0000
Commit:     Mart Raudsepp <leio <AT> gentoo <DOT> org>
CommitDate: Sun Aug 16 07:49:15 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=80f40260

app-accessibility/brltty: bump to 6.1, add py3.8

Package-Manager: Portage-2.3.103, Repoman-2.3.20
Signed-off-by: Mart Raudsepp <leio <AT> gentoo.org>

 app-accessibility/brltty/Manifest          |   1 +
 app-accessibility/brltty/brltty-6.1.ebuild | 217 +++++++++++++++++++++++++++++
 2 files changed, 218 insertions(+)

diff --git a/app-accessibility/brltty/Manifest b/app-accessibility/brltty/Manifest
index 5057b79d6e5..eeab6d53757 100644
--- a/app-accessibility/brltty/Manifest
+++ b/app-accessibility/brltty/Manifest
@@ -1 +1,2 @@
 DIST brltty-6.0.tar.xz 2879976 BLAKE2B 31bd45b63838d119d940492c615deb27ec47389c68afa39f19da3534324914695343344260799a10deae6ca3de41bedf9b0c1de1f78dbe01a89b694c2aa6e265 SHA512 07344fa902ad169967ca39d19b09dfea24e698011031dd63dce3eb997a4cb86622ee9427b216976b3ef60e5cbabb710a621621447c6bfa2313748fc1a1cf4b06
+DIST brltty-6.1.tar.xz 3394852 BLAKE2B 03e6358721dcd5c3bdee3301a1ed827a690128ec339669543279c7e9a115bef6c5d8630e4af2d0b214b9c7c3eaa9001ab4c54ae7fb899cb3bc675985f51d6933 SHA512 030ef60ef7a9a60dc2fba2a64ea0a0868395eee6f2f86876b4e4111e804a05b44f798a154a69a8f5e0f6358130993c360a550f7decac0535450f9cf939231eaf

diff --git a/app-accessibility/brltty/brltty-6.1.ebuild b/app-accessibility/brltty/brltty-6.1.ebuild
new file mode 100644
index 00000000000..3940a5d9c5f
--- /dev/null
+++ b/app-accessibility/brltty/brltty-6.1.ebuild
@@ -0,0 +1,217 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6,7,8} )
+FINDLIB_USE="ocaml"
+JAVA_PKG_WANT_SOURCE="1.8"
+JAVA_PKG_WANT_TARGET="1.8"
+
+inherit findlib eutils multilib toolchain-funcs java-pkg-opt-2 flag-o-matic usr-ldscript \
+	autotools udev systemd python-r1
+
+DESCRIPTION="Daemon that provides access to the Linux/Unix console for a blind person"
+HOMEPAGE="https://brltty.app/"
+SRC_URI="https://brltty.app/archive/${P}.tar.xz"
+
+LICENSE="GPL-2 LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~x86"
+IUSE="+api +beeper bluetooth +contracted-braille doc +fm gpm iconv icu
+		java louis +midi ncurses nls ocaml +pcm policykit python
+		usb systemd +speech tcl xml X"
+REQUIRED_USE="doc? ( api )
+	java? ( api )
+	ocaml? ( api )
+	python? ( api ${PYTHON_REQUIRED_USE} )
+	tcl? ( api )"
+
+DEPEND="
+	app-accessibility/at-spi2-core:2
+	dev-libs/libpcre2[pcre32]
+	sys-apps/dbus
+	bluetooth? ( net-wireless/bluez )
+	gpm? ( >=sys-libs/gpm-1.20 )
+	iconv? ( virtual/libiconv )
+	icu? ( dev-libs/icu:= )
+	louis? ( dev-libs/liblouis:= )
+	midi? ( media-libs/alsa-lib )
+	ncurses? ( sys-libs/ncurses:0= )
+	pcm? ( media-libs/alsa-lib )
+	policykit? ( sys-auth/polkit )
+	python? ( ${PYTHON_DEPS} )
+	speech? (
+		app-accessibility/espeak
+		app-accessibility/flite
+		app-accessibility/speech-dispatcher
+	)
+	systemd? ( sys-apps/systemd )
+	tcl? ( >=dev-lang/tcl-8.4.15:0= )
+	usb? ( virtual/libusb:0 )
+	xml? ( dev-libs/expat )
+	X? (
+		x11-libs/libX11
+		x11-libs/libXaw
+		x11-libs/libXfixes
+		x11-libs/libXt
+		x11-libs/libXtst
+	)"
+RDEPEND="${DEPEND}
+	java? ( >=virtual/jre-1.4 )
+"
+BDEPEND="
+	virtual/pkgconfig
+	java? ( >=virtual/jdk-1.4 )
+	nls? ( virtual/libintl )
+	python? ( >=dev-python/cython-0.16[${PYTHON_USEDEP}] )
+"
+
+HTML_DOCS=( "${S}"/Documents/Manual-BrlAPI/. )
+
+PATCHES=(
+	"${FILESDIR}"/${PN}-6.0-udev.patch
+	"${FILESDIR}"/${PN}-5.2-respect-AR.patch
+)
+
+src_prepare() {
+	default
+
+	java-pkg-opt-2_src_prepare
+
+	# We run eautoconf instead of using eautoreconf because brltty uses
+	# a custom build system that uses autoconf without the rest of the
+	# autotools.
+	eautoconf
+	use python && python_copy_sources
+}
+
+src_configure() {
+	tc-export AR LD PKG_CONFIG
+
+	export JAVAC=""
+	export JAVA_JNI_FLAGS=""
+	if use java; then
+		export JAVA_HOME="$(java-config -g JAVA_HOME)"
+		export JAVAC_HOME="${JAVA_HOME}/bin"
+		export JAVA_JNI_FLAGS="$(java-pkg_get-jni-cflags)"
+		export JAVAC="$(java-pkg_get-javac) -encoding UTF-8 $(java-pkg_javac-args)"
+	fi
+
+	# override prefix in order to install into /
+	# braille terminal needs to be available as soon in the boot process as
+	# possible
+	# Also override localstatedir so that the lib/brltty directory is installed
+	# correctly.
+	# Disable stripping since we do that ourselves.
+	local myconf=(
+		--prefix="${EPREFIX}"/
+		--localedir="${EPREFIX}"/usr/share/locale
+		--includedir="${EPREFIX}"/usr/include
+		--localstatedir="${EPREFIX}"/var
+		--disable-stripping
+		--with-install-root="${D}"
+		--with-writable-directory="${EPREFIX}"/run/brltty
+		$(use_enable api)
+		$(use_with beeper beep-package)
+		$(use_enable contracted-braille)
+		$(use_with fm fm-package)
+		$(use_enable gpm)
+		$(use_enable iconv)
+		$(use_enable icu)
+		$(use_enable java java-bindings)
+		$(use_enable louis liblouis)
+		$(use_with midi midi-package)
+		$(use_enable nls i18n)
+		$(use_enable ocaml ocaml-bindings)
+		$(use_with pcm pcm-package)
+		$(use_enable policykit polkit)
+		$(use_enable python python-bindings)
+		$(use_enable speech speech-support)
+		$(use_with systemd service-package)
+		$(use_enable tcl tcl-bindings)
+		$(use_enable xml expat)
+		$(use_enable X x)
+		$(use_with bluetooth bluetooth-package)
+		$(use_with ncurses curses)
+		$(use_with usb usb-package) )
+
+	econf "${myconf[@]}"
+
+	if use python; then
+		python_configure() {
+			econf "${myconf[@]}"
+		}
+		python_foreach_impl run_in_build_dir python_configure
+	fi
+}
+
+src_compile() {
+	emake JAVA_JNI_FLAGS="${JAVA_JNI_FLAGS}" JAVAC="${JAVAC}"
+
+	if use python; then
+		python_build() {
+			cd "Bindings/Python" || die
+			emake
+		}
+		python_foreach_impl run_in_build_dir python_build
+	fi
+}
+
+src_install() {
+	if use ocaml; then
+		findlib_src_preinst
+	fi
+
+	emake OCAML_LDCONF= install
+
+	if use python; then
+		python_install() {
+			cd "Bindings/Python" || die
+			emake install
+		}
+		python_foreach_impl run_in_build_dir python_install
+	fi
+
+	if use java; then
+		java-pkg_doso Bindings/Java/libbrlapi_java.so
+		java-pkg_dojar Bindings/Java/brlapi.jar
+	fi
+
+	insinto /etc
+	doins Documents/brltty.conf
+	udev_newrules Autostart/Udev/rules 70-brltty.rules
+	newinitd "${FILESDIR}"/brltty.rc brltty
+	systemd_dounit Autostart/Systemd/brltty@.service
+	systemd_dotmpfilesd "${FILESDIR}/${PN}.tmpfiles.conf"
+
+	if use api ; then
+		local libdir="$(get_libdir)"
+		mkdir -p "${ED}"/usr/${libdir}/ || die
+		mv "${ED}"/${libdir}/*.a "${ED}"/usr/${libdir}/ || die
+		gen_usr_ldscript libbrlapi.so
+	fi
+
+	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
+	if use doc; then
+		dodoc BrlAPI-*.txt
+		HTML_DOCS="Manual-BRLTTY" einstalldocs
+	fi
+
+	keepdir /var/lib/BrlAPI
+	rmdir "${ED}/run/brltty" || die
+	rmdir "${ED}/run" || die
+}
+
+pkg_postinst() {
+	elog
+	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
+	elog "rc-update add brltty boot"
+}


             reply	other threads:[~2020-08-16  7:52 UTC|newest]

Thread overview: 71+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-16  7:52 Mart Raudsepp [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-04-26  2:36 [gentoo-commits] repo/gentoo:master commit in: app-accessibility/brltty/ Sam James
2025-03-02 15:45 Sam James
2024-12-17 17:46 Andreas Sturmlechner
2024-08-09 10:35 Pacho Ramos
2024-08-09 10:35 Pacho Ramos
2024-06-02  8:19 Sam James
2024-02-28 14:04 Michał Górny
2024-01-11  9:38 Sam James
2023-12-29 19:04 Arthur Zamarin
2023-12-25  8:19 Sam James
2023-12-25  7:30 Sam James
2023-12-16 10:59 Arthur Zamarin
2023-12-16 10:59 Arthur Zamarin
2023-12-16  9:10 Sam James
2023-11-29  4:10 Sam James
2023-11-29  4:10 Sam James
2023-11-29  4:10 Sam James
2023-10-13  2:44 Sam James
2023-08-25 22:21 Sam James
2023-01-26  4:40 Sam James
2023-01-26  4:40 Sam James
2022-11-07  8:11 Sam James
2022-11-07  7:08 Sam James
2022-11-06 19:06 Sam James
2022-11-06  7:41 Sam James
2022-10-02  4:42 William Hubbs
2022-10-01  3:55 Sam James
2022-05-26  5:30 WANG Xuerui
2022-03-09 23:46 Sam James
2022-03-07  3:47 Sam James
2022-03-02  9:08 Agostino Sarubbo
2022-03-01 11:42 Jakov Smolić
2022-03-01 11:29 Agostino Sarubbo
2022-03-01 11:28 Agostino Sarubbo
2022-02-15 18:31 Matt Turner
2022-01-31  2:36 Yixun Lan
2022-01-29 22:23 William Hubbs
2022-01-29 22:13 William Hubbs
2022-01-29 19:26 William Hubbs
2022-01-29  7:10 Sam James
2022-01-28 18:50 William Hubbs
2022-01-28 18:45 William Hubbs
2022-01-28 17:24 William Hubbs
2022-01-28  9:32 Agostino Sarubbo
2022-01-24 21:09 Agostino Sarubbo
2022-01-24 14:47 Sam James
2022-01-24 14:42 Sam James
2022-01-24  8:17 Agostino Sarubbo
2021-12-01  6:37 Yixun Lan
2021-10-31  3:06 Sam James
2021-04-19  2:10 Matt Turner
2021-04-03 18:28 Mike Gilbert
2020-08-19 22:40 Sam James
2020-05-11 16:49 Agostino Sarubbo
2020-05-09  7:40 Agostino Sarubbo
2020-05-06  7:18 Sergei Trofimovich
2020-05-03 21:55 Sergei Trofimovich
2020-04-19  8:15 Mart Raudsepp
2020-03-20 21:53 Matt Turner
2020-02-10 20:32 Michał Górny
2019-08-11 11:20 David Seifert
2019-08-03 13:14 Aaron Bauman
2019-05-19  0:09 Michael Palimaka
2019-03-27 15:21 Lars Wendler
2019-03-27 15:03 Lars Wendler
2018-09-28  9:45 Matt Turner
2017-12-09 14:21 Pacho Ramos
2017-04-19  8:03 David Seifert
2016-05-06 22:11 William Hubbs
2015-11-09 21:51 Pacho Ramos

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1597564155.80f402602c6de344d3da225ed5ae9b83c36b1286.leio@gentoo \
    --to=leio@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox