Gentoo Archives: gentoo-commits

From: Alessandro Barbieri <lssndrbarbieri@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-lang/aldor/
Date: Tue, 25 Feb 2020 06:45:06
Message-Id: 1582613059.83a18d8b5c91eaa82bb6ee0f526cbbd0cd088b5d.Alessandro-Barbieri@gentoo
1 commit: 83a18d8b5c91eaa82bb6ee0f526cbbd0cd088b5d
2 Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
3 AuthorDate: Tue Feb 25 06:44:19 2020 +0000
4 Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
5 CommitDate: Tue Feb 25 06:44:19 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=83a18d8b
7
8 dev-lang/aldor: new package
9
10 Package-Manager: Portage-2.3.89, Repoman-2.3.20
11 Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
12
13 dev-lang/aldor/Manifest | 2 +
14 dev-lang/aldor/aldor-1.2.0_p20190730.ebuild | 82 +++++++++++++++++++++++++++++
15 dev-lang/aldor/metadata.xml | 14 +++++
16 3 files changed, 98 insertions(+)
17
18 diff --git a/dev-lang/aldor/Manifest b/dev-lang/aldor/Manifest
19 new file mode 100644
20 index 0000000..3a7e98b
21 --- /dev/null
22 +++ b/dev-lang/aldor/Manifest
23 @@ -0,0 +1,2 @@
24 +DIST aldor.el.nw 50217 BLAKE2B 12c822b608d995832028cc6c67126c71f05e50d941c0b22fd82fd95a1f968e64150f721982ff8e42f897811c17d2ee0b3135f5c9f57701f99bdce1f8be3fb82c SHA512 6a01873530269ff21afd494a00a8159e48e6199e9aff38259156b8ee8ce21256394629225d857d7d087fd02d1bed3d0de76812656f294f9eb322bed594f4d65e
25 +DIST libaldor.pdf.gz 434487 BLAKE2B 629dbf284db72afb98a8bc1a44df63dc0a3394fdd4361ec48a0d4811f8e931384fc257ad8f3931b7966aee25b0a015062ef8c8ab4e0ebf5978b5deda58c00ab6 SHA512 9ed1f067dd4ee11e5a440f31a9a29eb9248fcfb4349005f42c230a97190853d17e423ce677894a478644ca4964d0ba857465adfe405092c1e6512ced452eedc3
26
27 diff --git a/dev-lang/aldor/aldor-1.2.0_p20190730.ebuild b/dev-lang/aldor/aldor-1.2.0_p20190730.ebuild
28 new file mode 100644
29 index 0000000..5a4414c
30 --- /dev/null
31 +++ b/dev-lang/aldor/aldor-1.2.0_p20190730.ebuild
32 @@ -0,0 +1,82 @@
33 +# Copyright 1999-2020 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI="7"
37 +
38 +EGIT_REPO_URI="https://github.com/pippijn/aldor.git"
39 +EGIT_COMMIT="13e5b90"
40 +AUTOTOOLS_AUTORECONF=1
41 +AUTOTOOLS_IN_SOURCE_BUILD=1
42 +
43 +inherit git-r3 autotools elisp-common
44 +
45 +DESCRIPTION="The Aldor Programming Language"
46 +HOMEPAGE="http://pippijn.github.io/aldor"
47 +SRC_URI="doc? ( http://aldor.org/docs/libaldor.pdf.gz )
48 + emacs? ( http://hemmecke.de/aldor/aldor.el.nw )"
49 +
50 +LICENSE="Apache-2.0"
51 +SLOT="0"
52 +KEYWORDS=""
53 +IUSE="doc emacs"
54 +
55 +RDEPEND="emacs? ( app-editors/emacs:= )"
56 +DEPEND="${RDEPEND}
57 + virtual/yacc
58 + doc? ( virtual/latex-base )
59 + emacs? ( app-text/noweb )"
60 +
61 +DOCS=( AUTHORS COPYRIGHT LICENSE )
62 +
63 +S="${WORKDIR}/${P}/aldor"
64 +
65 +src_compile() {
66 + if use doc ; then
67 + ( cd aldorug; emake aldorug.pdf ) || die "make aldorug.pdf failed"
68 + ( cd lib/aldor/tutorial
69 + pdflatex tutorial.tex
70 + pdflatex tutorial.tex ) || die "make tutorial.pdf failed"
71 + cp "${DISTDIR}/libaldor.pdf.gz" .
72 + gunzip libaldor.pdf.gz
73 + tar xzf "${DISTDIR}/algebra.html.tar.gz"
74 + fi
75 +
76 + if use emacs ; then
77 + notangle "${DISTDIR}/aldor.el.nw" > aldor.el
78 + notangle -Rinit.el "${DISTDIR}/aldor.el.nw" | \
79 + sed -e '1s/^.*$/;; aldor mode/' > 64aldor-gentoo.el
80 + if use doc ; then
81 + einfo "Documentation for the aldor emacs mode"
82 + noweave "${DISTDIR}/aldor.el.nw" > aldor-mode.tex
83 + pdflatex aldor-mode.tex
84 + pdflatex aldor-mode.tex
85 + fi
86 + fi
87 + default
88 +}
89 +
90 +src_install() {
91 + if use doc ; then
92 + DOCS+=( aldorug/aldorug.pdf lib/aldor/tutorial/tutorial.pdf libaldor.pdf )
93 + fi
94 + if use emacs ; then
95 + DOCS+=( aldor-mode.pdf )
96 + elisp-site-file-install aldor.el
97 + elisp-site-file-install 64aldor-gentoo.el
98 + fi
99 + default
100 +
101 + # Add information about ALDORROOT to environmental variables
102 + cat > 99aldor <<- EOF
103 + ALDORROOT="${EPREFIX}/usr"
104 + EOF
105 + doenvd 99aldor
106 +}
107 +
108 +pkg_postinst() {
109 + use emacs && elisp-site-regen
110 +}
111 +
112 +pkg_prerm() {
113 + [ -f "${SITELISP}/site-gentoo.el" ] && elisp-site-regen
114 +}
115
116 diff --git a/dev-lang/aldor/metadata.xml b/dev-lang/aldor/metadata.xml
117 new file mode 100644
118 index 0000000..4b9f701
119 --- /dev/null
120 +++ b/dev-lang/aldor/metadata.xml
121 @@ -0,0 +1,14 @@
122 +<?xml version="1.0" encoding="UTF-8"?>
123 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
124 +<pkgmetadata>
125 + <longdescription>Aldor is a programming language. It is the successor of A# as the extension language of the Axiom computer algebra system.
126 +
127 +The Aldor language combines imperative, functional, and object-oriented features. It has an elaborate dependent type system, allowing types to be used as first-class values. Aldor's syntax is heavily influenced by Pascal, but it is optionally indentation-sensitive, like Python. In its current implementation, it is compiled, but an interactive listener is provided.</longdescription>
128 + <maintainer type="person">
129 + <email>lssndrbarbieri@×××××.com</email>
130 + <name>Alessandro Barbieri</name>
131 + </maintainer>
132 + <upstream>
133 + <remote-id type="github">pippijn/aldor</remote-id>
134 + </upstream>
135 +</pkgmetadata>