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