Gentoo Archives: gentoo-commits

From: Alfredo Tupone <tupone@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ada/gnatcoll-bindings/
Date: Wed, 28 Aug 2019 16:34:16
Message-Id: 1567010033.f777575d54d36c56dea2a7cdd495292efba0c3e7.tupone@gentoo
1 commit: f777575d54d36c56dea2a7cdd495292efba0c3e7
2 Author: Tupone Alfredo <tupone <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 28 16:33:53 2019 +0000
4 Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 28 16:33:53 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f777575d
7
8 dev-ada/gnatcoll-bindings: stable 2018-r1
9
10 Package-Manager: Portage-2.3.69, Repoman-2.3.16
11 Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>
12
13 .../gnatcoll-bindings-2018-r1.ebuild | 2 +-
14 .../gnatcoll-bindings-2018.ebuild | 80 ----------------------
15 2 files changed, 1 insertion(+), 81 deletions(-)
16
17 diff --git a/dev-ada/gnatcoll-bindings/gnatcoll-bindings-2018-r1.ebuild b/dev-ada/gnatcoll-bindings/gnatcoll-bindings-2018-r1.ebuild
18 index 104ed2eaa33..131bd638518 100644
19 --- a/dev-ada/gnatcoll-bindings/gnatcoll-bindings-2018-r1.ebuild
20 +++ b/dev-ada/gnatcoll-bindings/gnatcoll-bindings-2018-r1.ebuild
21 @@ -15,7 +15,7 @@ SRC_URI="http://mirrors.cdn.adacore.com/art/5b0ce9cfc7a4475261f97ca5
22
23 LICENSE="GPL-3"
24 SLOT="0"
25 -KEYWORDS="~amd64 ~x86"
26 +KEYWORDS="amd64 x86"
27 IUSE="gnat_2016 gnat_2017 +gnat_2018 gnat_2019 gmp iconv python readline +shared
28 static-libs static-pic syslog"
29
30
31 diff --git a/dev-ada/gnatcoll-bindings/gnatcoll-bindings-2018.ebuild b/dev-ada/gnatcoll-bindings/gnatcoll-bindings-2018.ebuild
32 deleted file mode 100644
33 index 5d7f13c2235..00000000000
34 --- a/dev-ada/gnatcoll-bindings/gnatcoll-bindings-2018.ebuild
35 +++ /dev/null
36 @@ -1,80 +0,0 @@
37 -# Copyright 1999-2018 Gentoo Authors
38 -# Distributed under the terms of the GNU General Public License v2
39 -
40 -EAPI=6
41 -
42 -PYTHON_COMPAT=( python2_7 )
43 -inherit multilib multiprocessing python-single-r1
44 -
45 -MYP=${PN}-gpl-${PV}
46 -
47 -DESCRIPTION="GNAT Component Collection"
48 -HOMEPAGE="http://libre.adacore.com"
49 -SRC_URI="http://mirrors.cdn.adacore.com/art/5b0ce9cfc7a4475261f97ca5
50 - -> ${MYP}-src.tar.gz"
51 -
52 -LICENSE="GPL-3"
53 -SLOT="0"
54 -KEYWORDS="amd64 x86"
55 -IUSE="gnat_2016 gnat_2017 +gnat_2018 gmp iconv python readline +shared
56 - static-libs static-pic syslog"
57 -
58 -RDEPEND="python? ( ${PYTHON_DEPS} )
59 - dev-ada/gnatcoll-core[gnat_2016=,gnat_2017=,gnat_2018=]
60 - dev-ada/gnatcoll-core[shared?,static-libs?,static-pic?]
61 - gmp? ( dev-libs/gmp:* )"
62 -DEPEND="${RDEPEND}
63 - dev-ada/gprbuild[gnat_2016=,gnat_2017=,gnat_2018=]"
64 -
65 -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
66 -
67 -S="${WORKDIR}"/${MYP}-src
68 -
69 -src_compile() {
70 - build () {
71 - gprbuild -j$(makeopts_jobs) -m -p -v \
72 - -XGPR_BUILD=$2 -XGNATCOLL_CORE_BUILD=$2 \
73 - -XLIBRARY_TYPE=$2 -P $1/gnatcoll_$1.gpr -XBUILD="PROD" \
74 - -XGNATCOLL_ICONV_OPT= -XGNATCOLL_PYTHON_CFLAGS="-I$(python_get_includedir)" \
75 - -XGNATCOLL_PYTHON_LIBS=$(python_get_library_path) \
76 - -cargs:Ada ${ADAFLAGS} -cargs:C ${CFLAGS} || die "gprbuild failed"
77 - }
78 - for kind in shared static-libs static-pic ; do
79 - if use $kind; then
80 - lib=${kind%-libs}
81 - lib=${lib/shared/relocatable}
82 - for dir in gmp iconv python readline syslog ; do
83 - if use $dir; then
84 - build $dir $lib
85 - fi
86 - done
87 - fi
88 - done
89 -}
90 -
91 -src_install() {
92 - build () {
93 - gprinstall -p -f -XBUILD=PROD --prefix="${D}"/usr -XLIBRARY_TYPE=$2 \
94 - -XGPR_BUILD=$2 -XGNATCOLL_CORE_BUILD=$2 \
95 - -XGNATCOLL_ICONV_OPT= -P $1/gnatcoll_$1.gpr --build-name=$2
96 - }
97 - for kind in shared static-libs static-pic ; do
98 - if use $kind; then
99 - lib=${kind%-libs}
100 - lib=${lib/shared/relocatable}
101 - for dir in gmp iconv python readline syslog ; do
102 - if use $dir; then
103 - build $dir $lib
104 - fi
105 - done
106 - fi
107 - done
108 - if use iconv; then
109 - sed -i \
110 - -e "s:GNATCOLL_ICONV_BUILD:LIBRARY_TYPE:" \
111 - "${D}"/usr/share/gpr/gnatcoll_iconv.gpr \
112 - || die
113 - fi
114 - rm -r "${D}"/usr/share/gpr/manifests || die
115 - einstalldocs
116 -}