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