summaryrefslogtreecommitdiff
path: root/dev-ada/libgpr
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-11-06 22:18:32 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-11-06 22:18:32 +0000
commit0e3680e4c16ff28839745eec6711889fc2e8d7e2 (patch)
tree6c53e6765a65faa5677ef9555e8b038b752cca85 /dev-ada/libgpr
parent9afce155a599e5f4518f3c7913b6424ac13be12e (diff)
gentoo auto-resync : 06:11:2023 - 22:18:31
Diffstat (limited to 'dev-ada/libgpr')
-rw-r--r--dev-ada/libgpr/Manifest1
-rw-r--r--dev-ada/libgpr/libgpr-23.0.0-r1.ebuild68
2 files changed, 69 insertions, 0 deletions
diff --git a/dev-ada/libgpr/Manifest b/dev-ada/libgpr/Manifest
index 903eebc3645c..5eec3742f8bd 100644
--- a/dev-ada/libgpr/Manifest
+++ b/dev-ada/libgpr/Manifest
@@ -1,4 +1,5 @@
AUX libgpr-2020-gentoo.patch 321 BLAKE2B fe3affe50712460474125d074936fd9db526c4392e6ecb8bbcb07091e9971042368ee134112d9550ffc9fd2a0ab23371e7bb760b3d8e53cd4ca0e54e0522f604 SHA512 2bcae85d30a41333664f17f097f31cf21b270c43092e823dda256098c928d4ccdab62f9d349b57f941b50bb676649aedf5f978a05f3afaf1ee234e4515c305b5
DIST gprbuild-23.0.0.tar.gz 952887 BLAKE2B a0de49e838dd41ca927d728dc2e7f23298bb3e7f865146ed6807e1da0f20fe9ce345d972ef93340f1a1fec91082ce14b575ad4e6642d759cb9d696602f291508 SHA512 d3b1af5295c0216eaa93e52b63ca51ceeaea324a3a3f40644e294f9048170f9294335e7e8ee2d77d99d4d9bb359267921632a01d43485d841b6e771143fb47a5
+EBUILD libgpr-23.0.0-r1.ebuild 1508 BLAKE2B ce3ff029d9509026e110de16a11bc919a090bc63e0ab8de9adced642ba3c4154941f5c2f4a9c7216a07f63afe0c49bb1168bf4f76c977e5fea5fedf20b0d9b32 SHA512 058e10cdc40c26b039b1f7daeced4e1446b2f95b9bee5b5ebaf87f282d574f63fdf49043015837dcd77eeafe13fdb64ea74f9778fae63c6263fedbf7b3e5a362
EBUILD libgpr-23.0.0.ebuild 1500 BLAKE2B 52f8693134d906e8c20d3145cf0d6f6648d0e4449d7305eef83b45f4aaf8ef275f4908027bcdd1b7b00d1d833cb29d4c5038ab12f473de692285499b9782458c SHA512 b85480195adeb43e8f8548f9ed0a466c9d7aaef8b12d40b34e262a91aa8b5ffeff9a8c5f81ef92bd41bd2ea4c67c4c5b04b2b73d39684a8c0297e1604e8bcd06
MISC metadata.xml 1021 BLAKE2B 448e77605bee95104afac31b48193217ee6c38af0b4e63cdee2c5d8e420a7f9b9a13c1302cfe49a109ab5c878808582a6f4a3ca3315e41b256f529d202bc1b4b SHA512 71427b65c100cba3e66d889124f27f1e378ad72559e7165ec93a4ffc68b7efe12db81ee5ec83aa92939b922d3efcfb3a5641c46db772a25bae21ce51acec5f47
diff --git a/dev-ada/libgpr/libgpr-23.0.0-r1.ebuild b/dev-ada/libgpr/libgpr-23.0.0-r1.ebuild
new file mode 100644
index 000000000000..fa4c535cf6f5
--- /dev/null
+++ b/dev-ada/libgpr/libgpr-23.0.0-r1.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+ADA_COMPAT=( gnat_2021 gcc_12 gcc_13)
+inherit ada multiprocessing
+
+MYPN=gprbuild
+MYP=${MYPN}-${PV}
+
+DESCRIPTION="Ada library to handle GPRbuild project files"
+HOMEPAGE="http://libre.adacore.com/"
+SRC_URI="https://github.com/AdaCore/${MYPN}/archive/refs/tags/v${PV}.tar.gz
+ -> ${MYP}.tar.gz"
+LICENSE="GPL-3"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~x86"
+IUSE="+shared static-libs static-pic"
+
+RDEPEND="dev-ada/xmlada:=[shared?,static-libs?,static-pic?,${ADA_USEDEP}]"
+DEPEND="${RDEPEND}
+ dev-ada/gprbuild[${ADA_USEDEP}]"
+REQUIRED_USE="${ADA_REQUIRED_USE}
+ || ( shared static-libs static-pic )"
+
+S="${WORKDIR}"/${MYP}
+
+PATCHES=( "${FILESDIR}"/${PN}-2020-gentoo.patch )
+
+src_prepare() {
+ default
+ sed -i -e '/Library_Name/s|gpr|gnatgpr|' gpr/gpr.gpr || die
+}
+
+src_configure() {
+ emake setup
+}
+
+src_compile() {
+ build () {
+ gprbuild -p -m -j$(makeopts_jobs) -XBUILD=production -v \
+ -XLIBRARY_TYPE=$1 -XXMLADA_BUILD=$1 \
+ gpr/gpr.gpr -cargs:C ${CFLAGS} -cargs:Ada ${ADAFLAGS} || die
+ }
+ 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_install() {
+ if use static-libs; then
+ emake prefix="${D}"/usr libgpr.install.static
+ fi
+ for kind in shared static-pic; do
+ if use ${kind}; then
+ emake prefix="${D}"/usr libgpr.install.${kind}
+ fi
+ done
+ rm -r "${D}"/usr/share/gpr/manifests || die
+ einstalldocs
+}