summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2021-05-22 15:43:37 +0200
committerAlfredo Tupone <tupone@gentoo.org>2021-05-22 15:43:37 +0200
commitb209204565e5c0a134c778c9681e9560d6d49f25 (patch)
treefb41d3c649d70d2e4eedca1640037effe9944730 /dev-ada
parentsys-kernel/vanilla-sources: Automated version bump to {5.10.39,5.12.6} - remo... (diff)
downloadgentoo-b209204565e5c0a134c778c9681e9560d6d49f25.tar.gz
gentoo-b209204565e5c0a134c778c9681e9560d6d49f25.tar.bz2
gentoo-b209204565e5c0a134c778c9681e9560d6d49f25.zip
dev-ada/gnatcoll-bindings: enable gnat_2020 & remove old
Package-Manager: Portage-3.0.18, Repoman-3.0.2 Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'dev-ada')
-rw-r--r--dev-ada/gnatcoll-bindings/Manifest1
-rw-r--r--dev-ada/gnatcoll-bindings/gnatcoll-bindings-2020-r2.ebuild (renamed from dev-ada/gnatcoll-bindings/gnatcoll-bindings-2019-r2.ebuild)22
2 files changed, 18 insertions, 5 deletions
diff --git a/dev-ada/gnatcoll-bindings/Manifest b/dev-ada/gnatcoll-bindings/Manifest
index c38f9f737194..a6f2df013b49 100644
--- a/dev-ada/gnatcoll-bindings/Manifest
+++ b/dev-ada/gnatcoll-bindings/Manifest
@@ -1,2 +1 @@
DIST gnatcoll-bindings-20.0-20191009-1B2EA-src.tar.gz 139910 BLAKE2B 5441c277d5888b040930960ed656a1b1264c7de02834995c6040c891b99bf7e8773029b9f722d5a3ed30036e7bd441318989ce3f7839d47928af5f4f7c396f90 SHA512 2b723ba4327966dc06594ccff45da3a01f65b8f8b91130ddc44d1b727d23ccbfe35f082c73810418da9d0705f1dc8ca9b471748eecee42adce34be722a4a201b
-DIST gnatcoll-bindings-2019-20190430-1928C-src.tar.gz 138935 BLAKE2B c72398b51bf383b163ac10000c4dd5441334a6f24d7ad075d8115f25c030b43bc1dace6a1121e1e69add1eead93a5389aff09ef013deb4682ccb1d31bb85313f SHA512 6db1d35a1cdf5188001084750f7aa32b193768f8c3dfb6d7db8a8314c745fc054b0a6d2234a6dd64c5acd4b1bafffa7ce7f1080bd51fbb8bc88edfcc855b7a48
diff --git a/dev-ada/gnatcoll-bindings/gnatcoll-bindings-2019-r2.ebuild b/dev-ada/gnatcoll-bindings/gnatcoll-bindings-2020-r2.ebuild
index e4563f2e5c14..52cb19c29ba6 100644
--- a/dev-ada/gnatcoll-bindings/gnatcoll-bindings-2019-r2.ebuild
+++ b/dev-ada/gnatcoll-bindings/gnatcoll-bindings-2020-r2.ebuild
@@ -3,21 +3,25 @@
EAPI=7
-ADA_COMPAT=( gnat_201{6,7,8,9} )
+#PYTHON_COMPAT=( python2_7 )
+ADA_COMPAT=( gnat_201{6,7,8,9} gnat_2020 )
+#inherit ada multilib multiprocessing python-single-r1
inherit ada multilib multiprocessing
-MYP=${P}-20190430-1928C
+MYP=${PN}-20.0-20191009-1B2EA
DESCRIPTION="GNAT Component Collection"
HOMEPAGE="http://libre.adacore.com"
-SRC_URI="http://mirrors.cdn.adacore.com/art/5cdf8afa31e87a8f1d425054
+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"
+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?]
@@ -25,11 +29,17 @@ RDEPEND="
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 \
@@ -37,11 +47,14 @@ src_compile() {
-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
@@ -61,6 +74,7 @@ src_install() {
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