1 |
commit: 4ac43a527d53faebcbc76a88dfc1fde1b40d1e80 |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 25 14:54:56 2021 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 25 14:54:56 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4ac43a52 |
7 |
|
8 |
sci-visualization/gle: [QA] Major cleanup |
9 |
|
10 |
Package-Manager: Portage-3.0.19, Repoman-3.0.3 |
11 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
12 |
|
13 |
sci-visualization/gle/gle-4.2.5-r2.ebuild | 61 ++++++++++++++++--------------- |
14 |
1 file changed, 31 insertions(+), 30 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 ff7853dd3b7..185bd857cbb 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,34 +1,39 @@ |
21 |
# Copyright 1999-2021 Gentoo Authors |
22 |
# Distributed under the terms of the GNU General Public License v2 |
23 |
|
24 |
-EAPI=6 |
25 |
-inherit elisp-common flag-o-matic autotools |
26 |
+EAPI=7 |
27 |
+ |
28 |
+inherit autotools elisp-common flag-o-matic |
29 |
+ |
30 |
+MY_P=${PN}-graphics-${PV} |
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 |
-SLOT="0" |
38 |
+S="${WORKDIR}/${MY_P}" |
39 |
+ |
40 |
LICENSE="BSD-2 emacs? ( GPL-2 )" |
41 |
-IUSE="X jpeg png tiff doc emacs vim-syntax" |
42 |
+SLOT="0" |
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:0= |
48 |
- X? ( x11-libs/libX11 ) |
49 |
+ sys-libs/ncurses:= |
50 |
+ emacs? ( >=app-editors/emacs-23.1:* ) |
51 |
jpeg? ( virtual/jpeg:0 ) |
52 |
- png? ( media-libs/libpng:0= ) |
53 |
- tiff? ( media-libs/tiff:0 ) |
54 |
- doc? ( dev-texlive/texlive-latexextra ) |
55 |
- emacs? ( >=app-editors/emacs-23.1:* )" |
56 |
- |
57 |
+ png? ( media-libs/libpng:= ) |
58 |
+ tiff? ( media-libs/tiff:= ) |
59 |
+ X? ( x11-libs/libX11 )" |
60 |
RDEPEND="${DEPEND} |
61 |
app-text/ghostscript-gpl |
62 |
virtual/latex-base |
63 |
- vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )" |
64 |
- |
65 |
-S="${WORKDIR}"/${MY_P} |
66 |
+ vim-syntax? ( |
67 |
+ || ( |
68 |
+ app-editors/vim |
69 |
+ app-editors/gvim |
70 |
+ ) |
71 |
+ )" |
72 |
+BDEPEND="doc? ( dev-texlive/texlive-latexextra )" |
73 |
|
74 |
PATCHES=( |
75 |
"${FILESDIR}"/${P}-parallel.patch |
76 |
@@ -58,36 +63,32 @@ src_configure() { |
77 |
|
78 |
src_compile() { |
79 |
emake |
80 |
- if use doc; then |
81 |
- emake -j1 doc |
82 |
- fi |
83 |
+ use doc && emake -j1 doc |
84 |
+ |
85 |
if use emacs; then |
86 |
- cd contrib/editors/highlighting |
87 |
- mv ${PN}-emacs.el ${PN}-mode.el |
88 |
- elisp-compile ${PN}-mode.el || die |
89 |
+ cd contrib/editors/highlighting || die |
90 |
+ mv ${PN}-emacs.el ${PN}-mode.el || die |
91 |
+ elisp-compile ${PN}-mode.el |
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 |
99 |
+ rm -rf "${ED}"/usr/share/doc/gle-graphics || die |
100 |
dodoc README.txt |
101 |
|
102 |
- if use doc; then |
103 |
- insinto /usr/share/doc/${PF} |
104 |
- doins build/doc/gle-manual.pdf |
105 |
- fi |
106 |
+ use doc && dodoc build/doc/gle-manual.pdf |
107 |
|
108 |
if use emacs; then |
109 |
- elisp-install ${PN} contrib/editors/highlighting/gle-mode.{el,elc} || die |
110 |
- elisp-site-file-install "${FILESDIR}"/64gle-gentoo.el || die |
111 |
+ elisp-install ${PN} contrib/editors/highlighting/gle-mode.{el,elc} |
112 |
+ elisp-site-file-install "${FILESDIR}"/64gle-gentoo.el |
113 |
fi |
114 |
|
115 |
if use vim-syntax ; then |
116 |
dodir /usr/share/vim/vimfiles/{ftplugins,indent,syntax} |
117 |
cd contrib/editors/highlighting/vim || die |
118 |
- chmod 644 ftplugin/* indent/* syntax/* |
119 |
+ chmod 644 ftplugin/* indent/* syntax/* || die |
120 |
insinto /usr/share/vim/vimfiles |
121 |
doins -r ftplugin indent syntax |
122 |
fi |