summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Grozin <grozin@gentoo.org>2021-05-25 21:14:58 +0700
committerAndrey Grozin <grozin@gentoo.org>2021-05-25 21:15:55 +0700
commit70b5458dd9b7b09c8e95d23dfd99c213d66d9d13 (patch)
treeda29835fdd8f42645687ce65e7c6a41e3d67aade /sci-visualization
parentnet-im/discord-bin: version bump to 0.0.15 (diff)
downloadgentoo-70b5458dd9b7b09c8e95d23dfd99c213d66d9d13.tar.gz
gentoo-70b5458dd9b7b09c8e95d23dfd99c213d66d9d13.tar.bz2
gentoo-70b5458dd9b7b09c8e95d23dfd99c213d66d9d13.zip
sci-visualization/gle: use -std=c++14
Closes: https://bugs.gentoo.org/789831 Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Andrey Grozin <grozin@gentoo.org>
Diffstat (limited to 'sci-visualization')
-rw-r--r--sci-visualization/gle/gle-4.2.5-r2.ebuild102
1 files changed, 102 insertions, 0 deletions
diff --git a/sci-visualization/gle/gle-4.2.5-r2.ebuild b/sci-visualization/gle/gle-4.2.5-r2.ebuild
new file mode 100644
index 000000000000..ff7853dd3b71
--- /dev/null
+++ b/sci-visualization/gle/gle-4.2.5-r2.ebuild
@@ -0,0 +1,102 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit elisp-common flag-o-matic autotools
+
+DESCRIPTION="Graphics Layout Engine"
+HOMEPAGE="http://glx.sourceforge.net/"
+MY_P=${PN}-graphics-${PV}
+MAN_V=4.2.2
+SRC_URI="mirror://sourceforge/glx/${MY_P}f-src.tar.gz"
+SLOT="0"
+LICENSE="BSD-2 emacs? ( GPL-2 )"
+IUSE="X jpeg png tiff doc emacs vim-syntax"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+
+DEPEND="
+ sys-libs/ncurses:0=
+ X? ( x11-libs/libX11 )
+ jpeg? ( virtual/jpeg:0 )
+ png? ( media-libs/libpng:0= )
+ tiff? ( media-libs/tiff:0 )
+ doc? ( dev-texlive/texlive-latexextra )
+ emacs? ( >=app-editors/emacs-23.1:* )"
+
+RDEPEND="${DEPEND}
+ app-text/ghostscript-gpl
+ virtual/latex-base
+ vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )"
+
+S="${WORKDIR}"/${MY_P}
+
+PATCHES=(
+ "${FILESDIR}"/${P}-parallel.patch
+ "${FILESDIR}"/${P}-c++14.patch
+ "${FILESDIR}"/${P}-jpeg-9c.patch
+)
+
+src_prepare() {
+ default
+ eaclocal
+ eautoconf
+}
+
+src_configure() {
+ # CPPFLAGS are understood as C++ flags
+ append-cppflags ${CXXFLAGS}
+ append-cppflags -std=c++14
+ econf \
+ --without-rpath \
+ --without-qt \
+ --with-manip \
+ $(use_with X x) \
+ $(use_with jpeg) \
+ $(use_with png) \
+ $(use_with tiff)
+}
+
+src_compile() {
+ emake
+ if use doc; then
+ emake -j1 doc
+ fi
+ if use emacs; then
+ cd contrib/editors/highlighting
+ mv ${PN}-emacs.el ${PN}-mode.el
+ elisp-compile ${PN}-mode.el || die
+ fi
+}
+
+src_install() {
+ # -jN failed to install some data files
+ emake -j1 DESTDIR="${D}" install
+ rm -rf "${ED}"/usr/share/doc/gle-graphics
+ dodoc README.txt
+
+ if use doc; then
+ insinto /usr/share/doc/${PF}
+ doins build/doc/gle-manual.pdf
+ fi
+
+ if use emacs; then
+ elisp-install ${PN} contrib/editors/highlighting/gle-mode.{el,elc} || die
+ elisp-site-file-install "${FILESDIR}"/64gle-gentoo.el || die
+ fi
+
+ if use vim-syntax ; then
+ dodir /usr/share/vim/vimfiles/{ftplugins,indent,syntax}
+ cd contrib/editors/highlighting/vim || die
+ chmod 644 ftplugin/* indent/* syntax/*
+ insinto /usr/share/vim/vimfiles
+ doins -r ftplugin indent syntax
+ fi
+}
+
+pkg_postinst() {
+ use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}