EAPI=5
-PYTHON_COMPAT=( python2_7 python3_4 python3_5 )
+PYTHON_COMPAT=( python2_7 python3_3 python3_4 python3_5 )
FINDLIB_USE="ocaml"
inherit findlib eutils multilib toolchain-funcs java-pkg-opt-2 flag-o-matic \
LICENSE="GPL-2 LGPL-2.1"
SLOT="0"
-KEYWORDS="alpha amd64 ~arm ~arm64 hppa ia64 ppc ppc64 x86"
+KEYWORDS="alpha amd64 ~arm hppa ia64 ppc ppc64 x86"
IUSE="+api +beeper bluetooth +contracted-braille doc +fm gpm iconv icu
java +midi ncurses nls ocaml +pcm python usb +speech
tcl X"
REQUIRED_USE="doc? ( api )
java? ( api )
ocaml? ( api )
- python? ( api ${PYTHON_REQUIRED_USE} )
+ python? ( api )
tcl? ( api )"
COMMON_DEP="bluetooth? ( net-wireless/bluez )
iconv? ( virtual/libiconv )
icu? ( dev-libs/icu:= )
python? ( ${PYTHON_DEPS} )
- ncurses? ( sys-libs/ncurses:0= )
+ ncurses? ( sys-libs/ncurses:= )
nls? ( virtual/libintl )
tcl? ( >=dev-lang/tcl-8.4.15:0= )
usb? ( virtual/libusb:0 )
epatch "${FILESDIR}"/${P}-fix-ldflags.patch \
"${FILESDIR}"/${P}-udev.patch \
"${FILESDIR}"/${P}-respect-AR.patch \
- "${FILESDIR}"/${P}-major.patch
+ "${FILESDIR}"/${P}-sysmacros.patch
java-pkg-opt-2_src_prepare
}
src_configure() {
+ filter-flags "_*_SOURCE*"
+ append-cppflags -D_DEFAULT_SOURCE
+ has_version ">=sys-libs/glibc-2.25-r5" && append-cppflags -DHAVE_SYS_SYSMACROS_H
+ has_version "sys-libs/ncurses[tinfo]" && append-libs -ltinfo
+
tc-export AR LD PKG_CONFIG
# override prefix in order to install into /
# braille terminal needs to be available as soon in the boot process as
--- /dev/null
+--- a/Programs/system_linux.c 2017-12-02 12:54:34.098643832 -0800
++++ b/Programs/system_linux.c 2017-12-02 12:59:00.683592161 -0800
+@@ -24,6 +24,9 @@
+ #include <fcntl.h>
+ #include <sys/ioctl.h>
+ #include <sys/stat.h>
++#ifdef HAVE_SYS_SYSMACROS_H
++#include <sys/sysmacros.h> /* major() w/newer glibc */
++#endif
+
+ #include "log.h"
+ #include "file.h"
+--- a/Programs/brlapi_client.c 2017-12-02 14:29:37.524205316 -0800
++++ b/Programs/brlapi_client.c 2017-12-02 14:32:45.679948051 -0800
+@@ -73,6 +73,9 @@
+ #include <linux/tty.h>
+ #include <linux/vt.h>
+ #define MAXIMUM_VIRTUAL_CONSOLE MAX_NR_CONSOLES
++#ifdef HAVE_SYS_SYSMACROS_H
++#include <sys/sysmacros.h> /* major() w/newer glibc */
++#endif
+ #endif /* linux */
+
+ #ifdef __OpenBSD__