1 |
commit: 70b5458dd9b7b09c8e95d23dfd99c213d66d9d13 |
2 |
Author: Andrey Grozin <grozin <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 25 14:14:58 2021 +0000 |
4 |
Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 25 14:15:55 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=70b5458d |
7 |
|
8 |
sci-visualization/gle: use -std=c++14 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/789831 |
11 |
Package-Manager: Portage-3.0.18, Repoman-3.0.3 |
12 |
Signed-off-by: Andrey Grozin <grozin <AT> gentoo.org> |
13 |
|
14 |
sci-visualization/gle/gle-4.2.5-r2.ebuild | 102 ++++++++++++++++++++++++++++++ |
15 |
1 file changed, 102 insertions(+) |
16 |
|
17 |
diff --git a/sci-visualization/gle/gle-4.2.5-r2.ebuild b/sci-visualization/gle/gle-4.2.5-r2.ebuild |
18 |
new file mode 100644 |
19 |
index 00000000000..ff7853dd3b7 |
20 |
--- /dev/null |
21 |
+++ b/sci-visualization/gle/gle-4.2.5-r2.ebuild |
22 |
@@ -0,0 +1,102 @@ |
23 |
+# Copyright 1999-2021 Gentoo Authors |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI=6 |
27 |
+inherit elisp-common flag-o-matic autotools |
28 |
+ |
29 |
+DESCRIPTION="Graphics Layout Engine" |
30 |
+HOMEPAGE="http://glx.sourceforge.net/" |
31 |
+MY_P=${PN}-graphics-${PV} |
32 |
+MAN_V=4.2.2 |
33 |
+SRC_URI="mirror://sourceforge/glx/${MY_P}f-src.tar.gz" |
34 |
+SLOT="0" |
35 |
+LICENSE="BSD-2 emacs? ( GPL-2 )" |
36 |
+IUSE="X jpeg png tiff doc emacs vim-syntax" |
37 |
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
38 |
+ |
39 |
+DEPEND=" |
40 |
+ sys-libs/ncurses:0= |
41 |
+ X? ( x11-libs/libX11 ) |
42 |
+ jpeg? ( virtual/jpeg:0 ) |
43 |
+ png? ( media-libs/libpng:0= ) |
44 |
+ tiff? ( media-libs/tiff:0 ) |
45 |
+ doc? ( dev-texlive/texlive-latexextra ) |
46 |
+ emacs? ( >=app-editors/emacs-23.1:* )" |
47 |
+ |
48 |
+RDEPEND="${DEPEND} |
49 |
+ app-text/ghostscript-gpl |
50 |
+ virtual/latex-base |
51 |
+ vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )" |
52 |
+ |
53 |
+S="${WORKDIR}"/${MY_P} |
54 |
+ |
55 |
+PATCHES=( |
56 |
+ "${FILESDIR}"/${P}-parallel.patch |
57 |
+ "${FILESDIR}"/${P}-c++14.patch |
58 |
+ "${FILESDIR}"/${P}-jpeg-9c.patch |
59 |
+) |
60 |
+ |
61 |
+src_prepare() { |
62 |
+ default |
63 |
+ eaclocal |
64 |
+ eautoconf |
65 |
+} |
66 |
+ |
67 |
+src_configure() { |
68 |
+ # CPPFLAGS are understood as C++ flags |
69 |
+ append-cppflags ${CXXFLAGS} |
70 |
+ append-cppflags -std=c++14 |
71 |
+ econf \ |
72 |
+ --without-rpath \ |
73 |
+ --without-qt \ |
74 |
+ --with-manip \ |
75 |
+ $(use_with X x) \ |
76 |
+ $(use_with jpeg) \ |
77 |
+ $(use_with png) \ |
78 |
+ $(use_with tiff) |
79 |
+} |
80 |
+ |
81 |
+src_compile() { |
82 |
+ emake |
83 |
+ if use doc; then |
84 |
+ emake -j1 doc |
85 |
+ fi |
86 |
+ if use emacs; then |
87 |
+ cd contrib/editors/highlighting |
88 |
+ mv ${PN}-emacs.el ${PN}-mode.el |
89 |
+ elisp-compile ${PN}-mode.el || die |
90 |
+ fi |
91 |
+} |
92 |
+ |
93 |
+src_install() { |
94 |
+ # -jN failed to install some data files |
95 |
+ emake -j1 DESTDIR="${D}" install |
96 |
+ rm -rf "${ED}"/usr/share/doc/gle-graphics |
97 |
+ dodoc README.txt |
98 |
+ |
99 |
+ if use doc; then |
100 |
+ insinto /usr/share/doc/${PF} |
101 |
+ doins build/doc/gle-manual.pdf |
102 |
+ fi |
103 |
+ |
104 |
+ if use emacs; then |
105 |
+ elisp-install ${PN} contrib/editors/highlighting/gle-mode.{el,elc} || die |
106 |
+ elisp-site-file-install "${FILESDIR}"/64gle-gentoo.el || die |
107 |
+ fi |
108 |
+ |
109 |
+ if use vim-syntax ; then |
110 |
+ dodir /usr/share/vim/vimfiles/{ftplugins,indent,syntax} |
111 |
+ cd contrib/editors/highlighting/vim || die |
112 |
+ chmod 644 ftplugin/* indent/* syntax/* |
113 |
+ insinto /usr/share/vim/vimfiles |
114 |
+ doins -r ftplugin indent syntax |
115 |
+ fi |
116 |
+} |
117 |
+ |
118 |
+pkg_postinst() { |
119 |
+ use emacs && elisp-site-regen |
120 |
+} |
121 |
+ |
122 |
+pkg_postrm() { |
123 |
+ use emacs && elisp-site-regen |
124 |
+} |