Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@××××××.net>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-lang/aldor/
Date: Tue, 03 Mar 2020 17:21:42
Message-Id: 1583256092.684d72097650eab195fd0587f5e083fb6d74ef0e.andrewammerlaan@gentoo
1 commit: 684d72097650eab195fd0587f5e083fb6d74ef0e
2 Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
3 AuthorDate: Tue Mar 3 17:21:32 2020 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
5 CommitDate: Tue Mar 3 17:21:32 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=684d7209
7
8 dev-lang/aldor: Fix S variable
9
10 Package-Manager: Portage-2.3.89, Repoman-2.3.20
11 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net>
12
13 dev-lang/aldor/aldor-1.2.0_p20190730.ebuild | 30 ++++++++++++++++++-----------
14 1 file changed, 19 insertions(+), 11 deletions(-)
15
16 diff --git a/dev-lang/aldor/aldor-1.2.0_p20190730.ebuild b/dev-lang/aldor/aldor-1.2.0_p20190730.ebuild
17 index 952e591..bb79cb1 100644
18 --- a/dev-lang/aldor/aldor-1.2.0_p20190730.ebuild
19 +++ b/dev-lang/aldor/aldor-1.2.0_p20190730.ebuild
20 @@ -6,17 +6,21 @@ EAPI="7"
21 COMMIT="13e5b90eecc79ec6704efb333c4c100187520e80"
22 AUTOTOOLS_AUTORECONF=1
23 AUTOTOOLS_IN_SOURCE_BUILD=1
24 +
25 inherit autotools elisp-common
26
27 DESCRIPTION="The Aldor Programming Language"
28 HOMEPAGE="http://pippijn.github.io/aldor"
29 -SRC_URI=" https://github.com/pippijn/aldor/archive/${COMMIT}.tar.gz -> ${P}.tar.gz
30 - doc? ( http://aldor.org/docs/libaldor.pdf.gz )
31 - emacs? ( http://hemmecke.de/aldor/aldor.el.nw )"
32 +SRC_URI="
33 + https://github.com/pippijn/aldor/archive/${COMMIT}.tar.gz -> ${P}.tar.gz
34 + doc? ( http://aldor.org/docs/libaldor.pdf.gz )
35 + emacs? ( http://hemmecke.de/aldor/aldor.el.nw )
36 +"
37
38 LICENSE="Apache-2.0"
39 SLOT="0"
40 KEYWORDS="~amd64"
41 +
42 IUSE="doc emacs"
43
44 RDEPEND="
45 @@ -30,9 +34,15 @@ DEPEND="
46 emacs? ( app-text/noweb )
47 "
48
49 -DOCS=( AUTHORS COPYRIGHT LICENSE )
50 +S="${WORKDIR}/${PN}-${COMMIT}/aldor"
51
52 -S="${WORKDIR}/${P}/aldor"
53 +DOCS=( AUTHORS README.building README.binary-only README.library ../README.md )
54 +
55 +src_unpack() {
56 + unpack "${P}.tar.gz"
57 + use doc && cp "${DISTDIR}/libaldor.pdf.gz" "${S}" && gunzip "${S}/libaldor.pdf.gz" || die
58 + use emacs && cp "${DISTDIR}/aldor.el.nw" "${S}" || die
59 +}
60
61 src_compile() {
62 if use doc ; then
63 @@ -40,20 +50,18 @@ src_compile() {
64 ( cd lib/aldor/tutorial
65 pdflatex tutorial.tex
66 pdflatex tutorial.tex ) || die "make tutorial.pdf failed"
67 - cp "${DISTDIR}/libaldor.pdf.gz" .
68 - gunzip libaldor.pdf.gz
69 tar xzf "${DISTDIR}/algebra.html.tar.gz"
70 fi
71
72 if use emacs ; then
73 - notangle "${DISTDIR}/aldor.el.nw" > aldor.el
74 - notangle -Rinit.el "${DISTDIR}/aldor.el.nw" | \
75 + notangle "aldor.el.nw" > aldor.el
76 + notangle -Rinit.el "aldor.el.nw" | \
77 sed -e '1s/^.*$/;; aldor mode/' > 64aldor-gentoo.el
78 if use doc ; then
79 einfo "Documentation for the aldor emacs mode"
80 - noweave "${DISTDIR}/aldor.el.nw" > aldor-mode.tex
81 - pdflatex aldor-mode.tex
82 + noweave "aldor.el.nw" > aldor-mode.tex
83 pdflatex aldor-mode.tex
84 + pdflatex aldor-mode.tex || die "make aldor-mode.pdf failed"
85 fi
86 fi
87 default