diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-04-05 21:17:31 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-04-05 21:17:31 +0100 |
commit | dc7cbdfa65fd814b3b9aa3c56257da201109e807 (patch) | |
tree | c85d72f6f31f21f178069c9d41d41a7c1ff4b362 /app-accessibility/brltty | |
parent | 0706fc6986773f4e4d391deff4ad5143c464ea4e (diff) |
gentoo resync : 05.04.2019
Diffstat (limited to 'app-accessibility/brltty')
-rw-r--r-- | app-accessibility/brltty/Manifest | 7 | ||||
-rw-r--r-- | app-accessibility/brltty/brltty-6.0-r1.ebuild | 216 | ||||
-rw-r--r-- | app-accessibility/brltty/files/brltty-6.0-udev.patch | 27 | ||||
-rw-r--r-- | app-accessibility/brltty/files/brltty.rc | 4 | ||||
-rw-r--r-- | app-accessibility/brltty/metadata.xml | 1 |
5 files changed, 251 insertions, 4 deletions
diff --git a/app-accessibility/brltty/Manifest b/app-accessibility/brltty/Manifest index 1828c69f1a51..71a6af3d408e 100644 --- a/app-accessibility/brltty/Manifest +++ b/app-accessibility/brltty/Manifest @@ -2,8 +2,11 @@ AUX brltty-5.2-fix-ldflags.patch 2168 BLAKE2B c75da04cfb57b550634a18f67c81fb0fef AUX brltty-5.2-respect-AR.patch 260 BLAKE2B 4bdf1c41a881e59477e9472a8e9f691bccce5c837b1d1358f405df9e485aab9041b8612dfffa78d30cf90814668e8234b947b43f933d80e8e00e5c618ae8e768 SHA512 2b8de99e98e257041d7a2131775a936166f183197dc02a242cb9efaebebc19afed45292defa9567f86f8ce71e32458743b8c2d3361b1b290f6c93df88e83b1ff AUX brltty-5.2-sysmacros.patch 458 BLAKE2B ed2f09ed3a137758603d0067ec18708bbfc24fb3cad90954905ebeac4900dd70b679ccfc1d64c6f23fc9d4c7de0275a760222f8dcd935086541ef16cfd9ac963 SHA512 8e1ea5351c963df01603ff2469ff01079896fac40fbc1b91bb88f976749b639b4c925382e041f402f1cfef8a16716fb46109650b173539d69131f1e275ee1392 AUX brltty-5.2-udev.patch 1025 BLAKE2B 8c83d2cf3dd09f4ee73d1dad104518449ca1136768945c879dfffa1774f7d11fac14dad53f3da840bebd77d72f10c2ed9ed6ebb69ab1ffb17bc69cc226296501 SHA512 3ef8e8ea2f7e03c88079b7cf91930ca0a86c0b383202d5e70c63419ead9e2e607812ad966e0eccce90615b3eed8600d71c63a0eabc1a01587ca959a29a484d8c -AUX brltty.rc 242 BLAKE2B 68fc8de846cdaff11b2b6377d49985c8cbad1342dad03e60f3a3ef2e8aeb728994c05f6b9bb9378e5434c1e4cd03ead0716abf7344dea3f993ac10d9c12edc23 SHA512 067dc15ca297774ad773512f57e0b828ce97a07ac7156e4c72fc25b8b045eeca313ae566564c954193be83c72928dc3a26e1fadc4b2cc1755c607f515590cb9a +AUX brltty-6.0-udev.patch 1033 BLAKE2B d5220b3351af4191ab78f122265296ed802209d0320ebde04c3e947ba736132f5c16db8be18f3e1964c39fe61aadb535d4f84f75d070f68caeea4ca3b3c3ee05 SHA512 0512fbfcd9e9085e37b3b935f8f5a002e82fb514aa56ad807819a39d9da16fbf3bc5f45540ae1ca754160a81957f62d5c5bc8acc6295ee1af971aa9acf5b915a +AUX brltty.rc 241 BLAKE2B 873b1344cc6dee3aa6272d9c8857b58a751200e77d7fa0d96f9ff992f2825267503db5fc11ea07d7064a0fa4fe78af637c41ced04212d063efb92183bb936c9f SHA512 d3b91fddbfa61e212537c58444585262d2781fa97ff7f8f4e9ab3c3ad937c680b230d805f7541e2701050e2b001d7d11f7e5937476568a3459d73bb36026f847 AUX brltty.tmpfiles.conf 31 BLAKE2B e51c4c6e98da2d68ebd2aca39d3015ca28b40dbee5528155f9efb87ef8ec5264b382c78acf748514bd1f3902dbedcd471f4e18b0361c6a924108a950c75aceb9 SHA512 3d52a11e0d266ac508ab5447b6515f006f610e3bcb2ec396c3fe4c58a68874c9568f7fd6a143829f69c1b87680f1157953eae9fe326f5db3723c7e4b46390bf7 DIST brltty-5.2.tar.xz 2532684 BLAKE2B 9b0555289177971abe12119f0604eebb196b8f493294741a31c684ebb5546eaccc0a729a8ca6b24e4075f0c29bf371e773743f02e0a102799c44c2293dc9894f SHA512 8e16701e9c9d776c76e3ad0cb4319b2753295fea229bd3f60cb0dffc0b6946037e6f98daafae873238c4eff90d4b8ddb697b7d425e700c5a098aba8fed9eed3f +DIST brltty-6.0.tar.xz 2879976 BLAKE2B 31bd45b63838d119d940492c615deb27ec47389c68afa39f19da3534324914695343344260799a10deae6ca3de41bedf9b0c1de1f78dbe01a89b694c2aa6e265 SHA512 07344fa902ad169967ca39d19b09dfea24e698011031dd63dce3eb997a4cb86622ee9427b216976b3ef60e5cbabb710a621621447c6bfa2313748fc1a1cf4b06 EBUILD brltty-5.2-r1.ebuild 5222 BLAKE2B c08dc651756c02ebbe30b3d55989c814ce9b049c08f5f775f2f2a2d369cbeb5681cf8eebbad09fa66825c391e94f54c56996bdbbfb2b333e4e8e9560b872e932 SHA512 3456c6d7bb6badda1f2cce1e6d6edaae677cd2d4eac62d3a5e67c9ad5a98b0383fed0d5e9fa6b65a4c17b853da26824806d828fc4861a255be32b9f89b43a006 -MISC metadata.xml 1502 BLAKE2B 75f1750b615a2d6d022ed682f65ce6d0d45908e0d5724a162220a915371ae357cd904b0c09083153fb0f07facbc89024604fe86e3386e58a7d409a82f3865835 SHA512 337bf98d4e2ffac2ea0721a042bd31958809de5089090b0a79d73457f700d57fb8ffe637f4ad9e896992e98a13fdbe1ac9a3f7758d8ad2703334db8edfb7c32c +EBUILD brltty-6.0-r1.ebuild 5553 BLAKE2B 315450e69be151d9d1db7cef82aa58d3449496324b243221d86fbbb37cb84ae889191d49c54d1cf228c9780a5a81f49031b900748dc5ac9b7de3213a55e5f9c3 SHA512 d4d0582f8360a932fb06222b834a517ff071ef5a7f4630ca3e003d6d707cfa49c627d713bd17fef88f53237fd49a63f5d6f0bc13dcae2371c790defd55e9d228 +MISC metadata.xml 1581 BLAKE2B dad24f7b2a02b83a33a5cff8513d22bb9977d2293d1c549347c5ea9c19166f771523c8d442f4c10e30f17827e2b501802ef545b528c16841faa50962644e5c30 SHA512 bd04635109012b7b2e1a605e6538dba54781cfa033b9fac49b1be1364eac02e9bb2ec55b4025a9a74477d7183cea89e4261db4ee3b9cc29eefc335b7b2939ccc diff --git a/app-accessibility/brltty/brltty-6.0-r1.ebuild b/app-accessibility/brltty/brltty-6.0-r1.ebuild new file mode 100644 index 000000000000..718a81cf76d6 --- /dev/null +++ b/app-accessibility/brltty/brltty-6.0-r1.ebuild @@ -0,0 +1,216 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python{2_7,3_{5,6,7}} ) +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 \ + autotools udev systemd python-r1 + +DESCRIPTION="Daemon that provides access to the Linux/Unix console for a blind person" +HOMEPAGE="http://brltty.com/" +SRC_URI="http://brltty.com/archive/${P}.tar.xz" + +LICENSE="GPL-2 LGPL-2.1" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~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 )" + +COMMON_DEP=" + 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/libXt + x11-libs/libXtst + )" +DEPEND="${COMMON_DEP}" +BDEPEND=" + virtual/pkgconfig + java? ( >=virtual/jdk-1.4 ) + nls? ( virtual/libintl ) + python? ( >=dev-python/cython-0.16[${PYTHON_USEDEP}] ) +" +RDEPEND="java? ( >=virtual/jre-1.4 ) + ${COMMON_DEP}" + +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" +} diff --git a/app-accessibility/brltty/files/brltty-6.0-udev.patch b/app-accessibility/brltty/files/brltty-6.0-udev.patch new file mode 100644 index 000000000000..e53b7a6aa664 --- /dev/null +++ b/app-accessibility/brltty/files/brltty-6.0-udev.patch @@ -0,0 +1,27 @@ +--- brltty-6.0/Autostart/Udev/rules ++++ brltty-6.0/Autostart/Udev/rules +@@ -276,20 +276,22 @@ + # FreedomScientific [Focus Blue] + ENV{PRODUCT}=="f4e/114/*", ENV{BRLTTY_BRAILLE_DRIVER}="fs", GOTO="brltty_usb_run" + ++# Seika rules are commented out, because they conflict with USB-to-serial ++# converters. + # Device: 10C4:EA60 + # Generic Identifier + # Vendor: Cygnal Integrated Products, Inc. + # Product: CP210x UART Bridge / myAVR mySmartUSB light + # BrailleMemo [Pocket] + # Seika [Braille Display] +-ENV{PRODUCT}=="10c4/ea60/*", ENV{BRLTTY_BRAILLE_DRIVER}="mm,sk", GOTO="brltty_usb_run" ++#ENV{PRODUCT}=="10c4/ea60/*", ENV{BRLTTY_BRAILLE_DRIVER}="mm,sk", GOTO="brltty_usb_run" + + # Device: 10C4:EA80 + # Generic Identifier + # Vendor: Cygnal Integrated Products, Inc. + # Product: CP210x UART Bridge + # Seika [Note Taker] +-ENV{PRODUCT}=="10c4/ea80/*", ENV{BRLTTY_BRAILLE_DRIVER}="sk", GOTO="brltty_usb_run" ++#ENV{PRODUCT}=="10c4/ea80/*", ENV{BRLTTY_BRAILLE_DRIVER}="sk", GOTO="brltty_usb_run" + + # Device: 1148:0301 + # BrailleMemo [Smart] diff --git a/app-accessibility/brltty/files/brltty.rc b/app-accessibility/brltty/files/brltty.rc index 0bc6c6c5375b..100dd29b778a 100644 --- a/app-accessibility/brltty/files/brltty.rc +++ b/app-accessibility/brltty/files/brltty.rc @@ -1,10 +1,10 @@ #!/sbin/openrc-run -# Copyright 1999-2013 Gentoo Foundation +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 command=/bin/brltty pidfile=/var/run/brltty.pid -command_args="-P $pidfile -q" +command_args="-P ${pidfile} -q" depend() { before * diff --git a/app-accessibility/brltty/metadata.xml b/app-accessibility/brltty/metadata.xml index 53e30d6595d9..b05083dfd091 100644 --- a/app-accessibility/brltty/metadata.xml +++ b/app-accessibility/brltty/metadata.xml @@ -10,6 +10,7 @@ <flag name="beeper">support the console tone generator</flag> <flag name="contracted-braille">support in-line contracted braille</flag> <flag name="fm">support for the sound card synthesizer</flag> + <flag name="louis">Use braille tranlator <pkg>dev-libs/liblouis</pkg></flag> <flag name="midi">support the musical instrument digital interface</flag> <flag name="pcm">support for sound card digital audio</flag> <flag name="speech">speech support</flag> |