1 |
commit: 542f66ebefb8412d17b2f1283c8ecb2480fbfb0b |
2 |
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
3 |
AuthorDate: Sat Jul 3 19:36:11 2021 +0000 |
4 |
Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
5 |
CommitDate: Sat Jul 3 23:55:45 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=542f66eb |
7 |
|
8 |
dev-lang/aldor: add more || die |
9 |
|
10 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
11 |
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> |
12 |
|
13 |
dev-lang/aldor/aldor-1.2.0_p20190730-r1.ebuild | 33 ++++++++++++++------------ |
14 |
1 file changed, 18 insertions(+), 15 deletions(-) |
15 |
|
16 |
diff --git a/dev-lang/aldor/aldor-1.2.0_p20190730-r1.ebuild b/dev-lang/aldor/aldor-1.2.0_p20190730-r1.ebuild |
17 |
index 556184b32..563f8536a 100644 |
18 |
--- a/dev-lang/aldor/aldor-1.2.0_p20190730-r1.ebuild |
19 |
+++ b/dev-lang/aldor/aldor-1.2.0_p20190730-r1.ebuild |
20 |
@@ -18,6 +18,7 @@ SRC_URI=" |
21 |
emacs? ( http://hemmecke.de/aldor/aldor.el.nw ) |
22 |
" |
23 |
S="${WORKDIR}/${PN}-${COMMIT}/aldor" |
24 |
+ |
25 |
LICENSE="Apache-2.0" |
26 |
SLOT="0" |
27 |
KEYWORDS="~amd64" |
28 |
@@ -56,11 +57,13 @@ DOCS=( AUTHORS README.building README.binary-only README.library ../README.md ) |
29 |
|
30 |
src_unpack() { |
31 |
unpack "${P}.tar.gz" |
32 |
- if use doc ; then |
33 |
- cp "${DISTDIR}/libaldor.pdf.gz" "${S}" |
34 |
- gunzip "${S}/libaldor.pdf.gz" |
35 |
+ if use doc; then |
36 |
+ cp "${DISTDIR}/libaldor.pdf.gz" "${S}" || die |
37 |
+ gunzip "${S}/libaldor.pdf.gz" || die |
38 |
+ fi |
39 |
+ if use emacs; then |
40 |
+ cp "${DISTDIR}/aldor.el.nw" "${S}" || die |
41 |
fi |
42 |
- use emacs && cp "${DISTDIR}/aldor.el.nw" "${S}" |
43 |
} |
44 |
|
45 |
src_prepare() { |
46 |
@@ -89,21 +92,21 @@ src_configure() { |
47 |
} |
48 |
|
49 |
src_compile() { |
50 |
- if use doc ; then |
51 |
- pushd "${S}/aldorug" |
52 |
+ if use doc; then |
53 |
+ pushd "${S}/aldorug" || die |
54 |
emake aldorug.pdf || die "make aldorug.pdf failed" |
55 |
- popd |
56 |
+ popd || die |
57 |
|
58 |
- pushd "${S}/lib/aldor/tutorial" |
59 |
+ pushd "${S}/lib/aldor/tutorial" || die |
60 |
pdflatex tutorial.tex || die "make tutorial.pdf failed" |
61 |
- popd |
62 |
+ popd || die |
63 |
fi |
64 |
- if use emacs ; then |
65 |
- notangle "aldor.el.nw" > aldor.el |
66 |
- notangle -Rinit.el "aldor.el.nw" | sed -e '1s/^.*$/;; aldor mode/' > 64aldor-gentoo.el |
67 |
- if use doc ; then |
68 |
+ if use emacs; then |
69 |
+ notangle "aldor.el.nw" > aldor.el || die |
70 |
+ notangle -Rinit.el "aldor.el.nw" | sed -e '1s/^.*$/;; aldor mode/' > 64aldor-gentoo.el || die |
71 |
+ if use doc; then |
72 |
einfo "Documentation for the aldor emacs mode" |
73 |
- noweave "aldor.el.nw" > aldor-mode.tex |
74 |
+ noweave "aldor.el.nw" > aldor-mode.tex || die |
75 |
pdflatex aldor-mode.tex || die "make aldor-mode.pdf failed" |
76 |
fi |
77 |
fi |
78 |
@@ -113,7 +116,7 @@ src_compile() { |
79 |
src_install() { |
80 |
use doc && DOCS+=( aldorug/aldorug.pdf lib/aldor/tutorial/tutorial.pdf libaldor.pdf "${DISTDIR}/algebra.pdf" ) |
81 |
|
82 |
- if use emacs ; then |
83 |
+ if use emacs; then |
84 |
use doc && DOCS+=( aldor-mode.pdf ) |
85 |
#TODO: rename aldor.el |
86 |
elisp-site-file-install aldor.el |