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 9D20D1382C5 for ; Wed, 10 Jun 2020 20:51:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CEF9DE0948; Wed, 10 Jun 2020 20:51:46 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 A1316E0948 for ; Wed, 10 Jun 2020 20:51:46 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 6342A34EEC8 for ; Wed, 10 Jun 2020 20:51:45 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 11C869C for ; Wed, 10 Jun 2020 20:51:44 +0000 (UTC) From: "Alfredo Tupone" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alfredo Tupone" Message-ID: <1591822292.0f984e407e1b200ce4e5cfce125fbcae9a06f5d4.tupone@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ada/xmlada/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ada/xmlada/Manifest dev-ada/xmlada/xmlada-2020.ebuild X-VCS-Directories: dev-ada/xmlada/ X-VCS-Committer: tupone X-VCS-Committer-Name: Alfredo Tupone X-VCS-Revision: 0f984e407e1b200ce4e5cfce125fbcae9a06f5d4 X-VCS-Branch: master Date: Wed, 10 Jun 2020 20:51:44 +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: c4899f6c-9b87-461a-b05c-fd67cb9e18e1 X-Archives-Hash: 5f43c0fa873f0a68d55af1312796dd66 commit: 0f984e407e1b200ce4e5cfce125fbcae9a06f5d4 Author: Alfredo Tupone gentoo org> AuthorDate: Wed Jun 10 20:51:00 2020 +0000 Commit: Alfredo Tupone gentoo org> CommitDate: Wed Jun 10 20:51:32 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0f984e40 dev-ada/xmlada: version bump to 2020 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Alfredo Tupone gentoo.org> dev-ada/xmlada/Manifest | 1 + dev-ada/xmlada/xmlada-2020.ebuild | 93 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 94 insertions(+) diff --git a/dev-ada/xmlada/Manifest b/dev-ada/xmlada/Manifest index d6dbc1705d1..f92ebd81209 100644 --- a/dev-ada/xmlada/Manifest +++ b/dev-ada/xmlada/Manifest @@ -1 +1,2 @@ DIST xmlada-2019-20190429-19B9D-src.tar.gz 1582603 BLAKE2B e2be3e7c0c8b843bfc808a3dd726235a82588caed8c919975a97ce34c72d6d634361bbc34208590210936add9e2f881b59d01168ef79abed1e489c50b27094d8 SHA512 f8e0e25b0aee9a7a18223ae7761603082af55134f062c767d0cd0dbf0dbcb2058fc7c57532b567fb2c6efa464a53ead57b300578e98962025866e5c3ad73e380 +DIST xmlada-2020-20200429-19A99-src.tar.gz 1533111 BLAKE2B e2c25e103c5c560cf7c9580118580e2952f3ef56c244b0f76c7f484e5629b684d5ee546d2d40520e1a4bf963271d360522423f4e7d81570f7dc1dbc8424c9147 SHA512 e53dd1fba504d2aa91ce29ea381c62adea12c5d8c72cd87396b903143279456cc6547c18035f6e988e95bd93607360075789532378f33cbe23bef9b49c8d984c diff --git a/dev-ada/xmlada/xmlada-2020.ebuild b/dev-ada/xmlada/xmlada-2020.ebuild new file mode 100644 index 00000000000..cbc536004e3 --- /dev/null +++ b/dev-ada/xmlada/xmlada-2020.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +ADA_COMPAT=( gnat_201{6,7,8,9} ) +inherit ada multiprocessing + +MYP=${P}-20200429-19A99-src + +DESCRIPTION="Set of modules that provide a simple manipulation of XML streams" +HOMEPAGE="http://libre.adacore.com/" +SRC_URI="https://community.download.adacore.com/v1/c799502295baf074ad17b48c50f621879c392c57?filename=${MYP}.tar.gz + -> ${MYP}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+shared static-libs static-pic" +REQUIRED_USE="|| ( shared static-libs static-pic ) + ${ADA_REQUIRED_USE}" + +RDEPEND="${ADA_DEPS}" +DEPEND="${RDEPEND} + dev-ada/gprbuild[${ADA_USEDEP}]" + +S="${WORKDIR}"/${MYP} + +PATCHES=( "${FILESDIR}"/${PN}-2019-gentoo.patch ) + +QA_FLAGS_IGNORED=( + /usr/lib/xmlada/xmlada_dom.relocatable/libxmlada_dom.so.2020 + /usr/lib/xmlada/xmlada_input.relocatable/libxmlada_input_sources.so.2020 + /usr/lib/xmlada/xmlada_sax.relocatable/libxmlada_sax.so.2020 + /usr/lib/xmlada/xmlada_schema.relocatable/libxmlada_schema.so.2020 + /usr/lib/xmlada/xmlada_unicode.relocatable/libxmlada_unicode.so.2020 +) + +src_configure() { + econf --prefix="${D}"/usr +} + +src_compile() { + build () { + echo gprbuild -j$(makeopts_jobs) -m -p -v -XLIBRARY_TYPE=$1 \ + -XBUILD=Production -XPROCESSORS=$(makeopts_jobs) xmlada.gpr \ + -largs ${LDFLAGS} \ + -cargs ${ADAFLAGS} + gprbuild -j$(makeopts_jobs) -m -p -v -XLIBRARY_TYPE=$1 \ + -XBUILD=Production -XPROCESSORS=$(makeopts_jobs) xmlada.gpr \ + -largs ${LDFLAGS} \ + -cargs ${ADAFLAGS} || die "gprbuild failed" + } + if use shared; then + build relocatable + fi + if use static-libs; then + build static + fi + if use static-pic; then + build static-pic + fi +} + +src_test() { + emake test + emake run_test | tee xmlada.testLog + grep -q DIFF xmlada.testLog && die +} + +src_install() { + build () { + gprinstall -XLIBRARY_TYPE=$1 -f -p -XBUILD=Production \ + -XPROCESSORS=$(makeopts_jobs) --prefix="${D}"/usr \ + --install-name=xmlada --build-var=LIBRARY_TYPE \ + --build-var=XMLADA_BUILD \ + --build-name=$1 xmlada.gpr || die "gprinstall failed" + } + if use shared; then + build relocatable + fi + if use static-libs; then + build static + fi + if use static-pic; then + build static-pic + fi + + einstalldocs + dodoc xmlada-roadmap.txt + rm -f "${D}"/usr/share/doc/${PN}/.buildinfo + rm -rf "${D}"/usr/share/gpr/manifests +}