summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2019-08-08 21:35:24 +0200
committerUlrich Müller <ulm@gentoo.org>2019-08-08 21:36:34 +0200
commitc6e0e902966bbf67aed4887343e38cc5a778db9e (patch)
tree324ba936f4946192c8970405ec1d816bdfec31a6 /app-editors/jove
parentsys-apps/xdg-desktop-portal: arm64 stable (bug #691614) (diff)
downloadgentoo-c6e0e902966bbf67aed4887343e38cc5a778db9e.tar.gz
gentoo-c6e0e902966bbf67aed4887343e38cc5a778db9e.tar.bz2
gentoo-c6e0e902966bbf67aed4887343e38cc5a778db9e.zip
app-editors/jove: Fix compilation with glibc-2.30.
glibc-2.30 no longer provides stropts.h, which shouldn't have been included in the first place. Suppress its loading (in iproc.c) by defining _XOPEN_STREAMS=-1. Bump EAPI to 7. Closes: https://bugs.gentoo.org/691760 Package-Manager: Portage-2.3.71, Repoman-2.3.17 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'app-editors/jove')
-rw-r--r--app-editors/jove/jove-4.16.0.73-r1.ebuild51
1 files changed, 51 insertions, 0 deletions
diff --git a/app-editors/jove/jove-4.16.0.73-r1.ebuild b/app-editors/jove/jove-4.16.0.73-r1.ebuild
new file mode 100644
index 000000000000..3ff695ea5c7a
--- /dev/null
+++ b/app-editors/jove/jove-4.16.0.73-r1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit toolchain-funcs
+
+DESCRIPTION="Jonathan's Own Version of Emacs, a light emacs-like editor without LISP bindings"
+HOMEPAGE="ftp://ftp.cs.toronto.edu/cs/ftp/pub/hugh/jove-dev/"
+SRC_URI="ftp://ftp.cs.toronto.edu/cs/ftp/pub/hugh/jove-dev/${PN}${PV}.tgz"
+
+LICENSE="JOVE"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="doc"
+
+RDEPEND="sys-libs/ncurses:0="
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+S="${WORKDIR}/${PN}${PV}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-4.16.0.70.3.1-getline.patch
+ "${FILESDIR}"/${P}-build.patch
+ "${FILESDIR}"/${P}-sendmail.patch
+ "${FILESDIR}"/${P}-doc.patch
+)
+
+src_compile() {
+ tc-export CC
+
+ emake OPTFLAGS="${CFLAGS}" \
+ SYSDEFS="-DSYSVR4 -D_XOPEN_SOURCE=500 -D_XOPEN_STREAMS=-1" \
+ TERMCAPLIB="$("$(tc-getPKG_CONFIG)" --libs ncurses)"
+
+ if use doc; then
+ # Full manual (*not* man page)
+ emake doc/jove.man
+ fi
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ keepdir /var/lib/jove/preserve
+
+ dodoc README
+ if use doc; then
+ dodoc doc/jove.man
+ fi
+}