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 DF4EC1382C5 for ; Fri, 1 Jan 2021 10:10:22 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 37DA1E0827; Fri, 1 Jan 2021 10:10:22 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.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 0F6A1E0827 for ; Fri, 1 Jan 2021 10:10:22 +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 81976340E3D for ; Fri, 1 Jan 2021 10:10:20 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E2C584C for ; Fri, 1 Jan 2021 10:10:18 +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: <1609495801.0ef06777f92aeb050948e8a9eca5070436fcc12f.tupone@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ada/gnatcoll-bindings/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ada/gnatcoll-bindings/gnatcoll-bindings-2019-r2.ebuild dev-ada/gnatcoll-bindings/gnatcoll-bindings-2020-r1.ebuild X-VCS-Directories: dev-ada/gnatcoll-bindings/ X-VCS-Committer: tupone X-VCS-Committer-Name: Alfredo Tupone X-VCS-Revision: 0ef06777f92aeb050948e8a9eca5070436fcc12f X-VCS-Branch: master Date: Fri, 1 Jan 2021 10:10:18 +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: e504e4b3-6b30-4323-8441-5656e35e631d X-Archives-Hash: 334228275b7081499c9cb556ca51c0d1 commit: 0ef06777f92aeb050948e8a9eca5070436fcc12f Author: Alfredo Tupone gentoo org> AuthorDate: Fri Jan 1 10:09:28 2021 +0000 Commit: Alfredo Tupone gentoo org> CommitDate: Fri Jan 1 10:10:01 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ef06777 dev-ada/gnatcoll-bindings: remove python usage Package-Manager: Portage-3.0.9, Repoman-3.0.2 Signed-off-by: Alfredo Tupone gentoo.org> .../gnatcoll-bindings-2019-r2.ebuild | 79 ++++++++++++++++++ .../gnatcoll-bindings-2020-r1.ebuild | 93 ++++++++++++++++++++++ 2 files changed, 172 insertions(+) diff --git a/dev-ada/gnatcoll-bindings/gnatcoll-bindings-2019-r2.ebuild b/dev-ada/gnatcoll-bindings/gnatcoll-bindings-2019-r2.ebuild new file mode 100644 index 00000000000..b3c1737ca2f --- /dev/null +++ b/dev-ada/gnatcoll-bindings/gnatcoll-bindings-2019-r2.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2021 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 multilib multiprocessing + +MYP=${P}-20190430-1928C + +DESCRIPTION="GNAT Component Collection" +HOMEPAGE="http://libre.adacore.com" +SRC_URI="http://mirrors.cdn.adacore.com/art/5cdf8afa31e87a8f1d425054 + -> ${MYP}-src.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="gmp iconv readline +shared static-libs static-pic syslog" + +RDEPEND=" + ${ADA_DEPS} + dev-ada/gnatcoll-core[${ADA_USEDEP},shared?,static-libs?,static-pic?] + gmp? ( dev-libs/gmp:* )" +DEPEND="${RDEPEND} + dev-ada/gprbuild[${ADA_USEDEP}]" + +REQUIRED_USE=" + ${ADA_REQUIRED_USE}" + +S="${WORKDIR}"/${MYP}-src + +src_compile() { + build () { + gprbuild -j$(makeopts_jobs) -m -p -v \ + -XGPR_BUILD=$2 -XGNATCOLL_CORE_BUILD=$2 \ + -XLIBRARY_TYPE=$2 -P $1/gnatcoll_$1.gpr -XBUILD="PROD" \ + -XGNATCOLL_ICONV_OPT= \ + -cargs:Ada ${ADAFLAGS} -cargs:C ${CFLAGS} || die "gprbuild failed" + } + for kind in shared static-libs static-pic ; do + if use $kind; then + lib=${kind%-libs} + lib=${lib/shared/relocatable} + for dir in gmp iconv readline syslog ; do + if use $dir; then + build $dir $lib + fi + done + fi + done +} + +src_install() { + build () { + gprinstall -p -f -XBUILD=PROD --prefix="${D}"/usr -XLIBRARY_TYPE=$2 \ + -XGPR_BUILD=$2 -XGNATCOLL_CORE_BUILD=$2 \ + -XGNATCOLL_ICONV_OPT= -P $1/gnatcoll_$1.gpr --build-name=$2 + } + for kind in shared static-libs static-pic ; do + if use $kind; then + lib=${kind%-libs} + lib=${lib/shared/relocatable} + for dir in gmp iconv readline syslog ; do + if use $dir; then + build $dir $lib + fi + done + fi + done + if use iconv; then + sed -i \ + -e "s:GNATCOLL_ICONV_BUILD:LIBRARY_TYPE:" \ + "${D}"/usr/share/gpr/gnatcoll_iconv.gpr \ + || die + fi + rm -r "${D}"/usr/share/gpr/manifests || die + einstalldocs +} diff --git a/dev-ada/gnatcoll-bindings/gnatcoll-bindings-2020-r1.ebuild b/dev-ada/gnatcoll-bindings/gnatcoll-bindings-2020-r1.ebuild new file mode 100644 index 00000000000..e6fbbad6182 --- /dev/null +++ b/dev-ada/gnatcoll-bindings/gnatcoll-bindings-2020-r1.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +#PYTHON_COMPAT=( python2_7 ) +ADA_COMPAT=( gnat_201{6,7,8,9} ) +#inherit ada multilib multiprocessing python-single-r1 +inherit ada multilib multiprocessing + +MYP=${PN}-20.0-20191009-1B2EA + +DESCRIPTION="GNAT Component Collection" +HOMEPAGE="http://libre.adacore.com" +SRC_URI="https://community.download.adacore.com/v1/3c54db553121bf88877e2f56ac4fca36765186eb?filename=${MYP}-src.tar.gz + -> ${MYP}-src.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +#IUSE="gmp iconv python readline +shared static-libs static-pic syslog" +IUSE="gmp iconv readline +shared static-libs static-pic syslog" + +#RDEPEND="python? ( ${PYTHON_DEPS} ) +RDEPEND=" + ${ADA_DEPS} + dev-ada/gnatcoll-core[${ADA_USEDEP},shared?,static-libs?,static-pic?] + gmp? ( dev-libs/gmp:* )" +DEPEND="${RDEPEND} + dev-ada/gprbuild[${ADA_USEDEP}]" + +#REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} ) +REQUIRED_USE=" + ${ADA_REQUIRED_USE}" + +S="${WORKDIR}"/${MYP}-src + +pkg_setup() { +# use python && python-single-r1_pkg_setup + ada_pkg_setup +} + +src_compile() { + build () { + gprbuild -j$(makeopts_jobs) -m -p -v \ + -XGPR_BUILD=$2 -XGNATCOLL_CORE_BUILD=$2 \ + -XLIBRARY_TYPE=$2 -P $1/gnatcoll_$1.gpr -XBUILD="PROD" \ + -XGNATCOLL_ICONV_OPT= \ + -cargs:Ada ${ADAFLAGS} -cargs:C ${CFLAGS} || die "gprbuild failed" +# -XGNATCOLL_ICONV_OPT= -XGNATCOLL_PYTHON_CFLAGS="-I$(python_get_includedir)" \ +# -XGNATCOLL_PYTHON_LIBS=$(python_get_library_path) \ + } + for kind in shared static-libs static-pic ; do + if use $kind; then + lib=${kind%-libs} + lib=${lib/shared/relocatable} +# for dir in gmp iconv python readline syslog ; do + for dir in gmp iconv readline syslog ; do + if use $dir; then + build $dir $lib + fi + done + fi + done +} + +src_install() { + build () { + gprinstall -p -f -XBUILD=PROD --prefix="${D}"/usr -XLIBRARY_TYPE=$2 \ + -XGPR_BUILD=$2 -XGNATCOLL_CORE_BUILD=$2 \ + -XGNATCOLL_ICONV_OPT= -P $1/gnatcoll_$1.gpr --build-name=$2 + } + for kind in shared static-libs static-pic ; do + if use $kind; then + lib=${kind%-libs} + lib=${lib/shared/relocatable} +# for dir in gmp iconv python readline syslog ; do + for dir in gmp iconv readline syslog ; do + if use $dir; then + build $dir $lib + fi + done + fi + done + if use iconv; then + sed -i \ + -e "s:GNATCOLL_ICONV_BUILD:LIBRARY_TYPE:" \ + "${D}"/usr/share/gpr/gnatcoll_iconv.gpr \ + || die + fi + rm -r "${D}"/usr/share/gpr/manifests || die + einstalldocs +}