From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 73507138350 for ; Sun, 8 Mar 2020 16:21:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 55124E095A; Sun, 8 Mar 2020 16:21:26 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 30E92E095A for ; Sun, 8 Mar 2020 16:21:26 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2A4A034F6A7 for ; Sun, 8 Mar 2020 16:21:25 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D571417B for ; Sun, 8 Mar 2020 16:21:21 +0000 (UTC) From: "Andrew Ammerlaan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrew Ammerlaan" Message-ID: <1583286268.ddc30e856ca7ccaf89192d4eb5c809587a75d410.andrewammerlaan@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-lang/aldor/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-lang/aldor/aldor-1.2.0_p20190730.ebuild dev-lang/aldor/metadata.xml X-VCS-Directories: dev-lang/aldor/ X-VCS-Committer: andrewammerlaan X-VCS-Committer-Name: Andrew Ammerlaan X-VCS-Revision: ddc30e856ca7ccaf89192d4eb5c809587a75d410 X-VCS-Branch: master Date: Sun, 8 Mar 2020 16:21:21 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: d7f149b8-5784-4741-916e-41baa0c024b3 X-Archives-Hash: 6f3a0b353309e5a4ae1441bf301dba44 commit: ddc30e856ca7ccaf89192d4eb5c809587a75d410 Author: Alessandro Barbieri gmail com> AuthorDate: Wed Mar 4 01:44:28 2020 +0000 Commit: Andrew Ammerlaan riseup net> CommitDate: Wed Mar 4 01:44:28 2020 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ddc30e85 dev-lang/aldor: many changes, WIP Package-Manager: Portage-2.3.91, Repoman-2.3.20 Signed-off-by: Alessandro Barbieri gmail.com> dev-lang/aldor/aldor-1.2.0_p20190730.ebuild | 62 +++++++++++++++++++++-------- dev-lang/aldor/metadata.xml | 6 +++ 2 files changed, 52 insertions(+), 16 deletions(-) diff --git a/dev-lang/aldor/aldor-1.2.0_p20190730.ebuild b/dev-lang/aldor/aldor-1.2.0_p20190730.ebuild index bb79cb1..e962d85 100644 --- a/dev-lang/aldor/aldor-1.2.0_p20190730.ebuild +++ b/dev-lang/aldor/aldor-1.2.0_p20190730.ebuild @@ -4,9 +4,8 @@ EAPI="7" COMMIT="13e5b90eecc79ec6704efb333c4c100187520e80" -AUTOTOOLS_AUTORECONF=1 -AUTOTOOLS_IN_SOURCE_BUILD=1 +#TODO: figure out if a java eclass is needed inherit autotools elisp-common DESCRIPTION="The Aldor Programming Language" @@ -21,13 +20,24 @@ LICENSE="Apache-2.0" SLOT="0" KEYWORDS="~amd64" -IUSE="doc emacs" +IUSE="boehm-gc doc emacs java" -RDEPEND=" +#is junit dep. only for test? +#TODO: choose a slot for junit +CDEPEND=" + boehm-gc? ( dev-libs/boehm-gc ) emacs? ( app-editors/emacs:= ) + java? ( dev-java/junit ) +" +RDEPEND=" + ${CDEPEND} + java? ( virtual/jre:1.8 ) " DEPEND=" - ${RDEPEND} + ${CDEPEND} + java? ( virtual/jdk:1.8 ) +" +BDEPEND=" virtual/yacc doc? ( virtual/latex-base ) @@ -40,23 +50,42 @@ DOCS=( AUTHORS README.building README.binary-only README.library ../README.md ) src_unpack() { unpack "${P}.tar.gz" - use doc && cp "${DISTDIR}/libaldor.pdf.gz" "${S}" && gunzip "${S}/libaldor.pdf.gz" || die + if use doc ; then + cp "${DISTDIR}/libaldor.pdf.gz" "${S}" + gunzip "${S}/libaldor.pdf.gz" + fi use emacs && cp "${DISTDIR}/aldor.el.nw" "${S}" || die } +src_prepare() { + #TODO: respect CFLAGS and remove Werror + eapply_user + eautoreconf +} + +src_configure() { + local myconf=( + --disable-static + --enable-libraries + --enable-shared + $(use_enable java) + $(use_with java java-junit) + $(use_with boehm-gc) + ) + econf "${myconf[@]}" +} + src_compile() { if use doc ; then - ( cd aldorug; emake aldorug.pdf ) || die "make aldorug.pdf failed" - ( cd lib/aldor/tutorial + ( cd "${S}/aldorug"; emake aldorug.pdf ) || die "make aldorug.pdf failed" + ( cd "${S}/lib/aldor/tutorial" pdflatex tutorial.tex pdflatex tutorial.tex ) || die "make tutorial.pdf failed" - tar xzf "${DISTDIR}/algebra.html.tar.gz" fi - + cd "${S}" if use emacs ; then notangle "aldor.el.nw" > aldor.el - notangle -Rinit.el "aldor.el.nw" | \ - sed -e '1s/^.*$/;; aldor mode/' > 64aldor-gentoo.el + notangle -Rinit.el "aldor.el.nw" | sed -e '1s/^.*$/;; aldor mode/' > 64aldor-gentoo.el if use doc ; then einfo "Documentation for the aldor emacs mode" noweave "aldor.el.nw" > aldor-mode.tex @@ -64,15 +93,16 @@ src_compile() { pdflatex aldor-mode.tex || die "make aldor-mode.pdf failed" fi fi + cd "${S}" default } src_install() { - if use doc ; then - DOCS+=( aldorug/aldorug.pdf lib/aldor/tutorial/tutorial.pdf libaldor.pdf ) - fi + use doc && DOCS+=( aldorug/aldorug.pdf lib/aldor/tutorial/tutorial.pdf libaldor.pdf ) + if use emacs ; then - DOCS+=( aldor-mode.pdf ) + use doc && DOCS+=( aldor-mode.pdf ) + #TODO: rename aldor.el elisp-site-file-install aldor.el elisp-site-file-install 64aldor-gentoo.el fi diff --git a/dev-lang/aldor/metadata.xml b/dev-lang/aldor/metadata.xml index 4b9f701..fb22608 100644 --- a/dev-lang/aldor/metadata.xml +++ b/dev-lang/aldor/metadata.xml @@ -11,4 +11,10 @@ The Aldor language combines imperative, functional, and object-oriented features pippijn/aldor + + Use Boehm Garbage Collector instead of built-in + + + +