mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-21 21:17:37 -08:00
dev-ada/libgpr: add 26.0.0
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
This commit is contained in:
parent
c9ec0d5ee0
commit
ce602fb6ea
@ -1 +1,2 @@
|
||||
DIST gprbuild-25.0.0.tar.gz 940774 BLAKE2B b2a2895db767b55e459351ea6fbeb91a771b6e39672217d53fb2b4aeea4f42aa093760448da715ffb0b7da54c50b4b55f0034910ebfdfc52a8cde7dad7533ef0 SHA512 eb2d7072194323cae90acd0c8683eeb6a806ef6ff2ed4d3496e8b94c5b63dae8a428ec428a3610b380df7e122d7a00d9e9634ef06b5369b165536c99209602ce
|
||||
DIST gprbuild-26.0.0.tar.gz 922278 BLAKE2B ae055fd7427c926dd5bedb1de96d7070e4e3c4f395a6147cb8832eb2fca47d51dfd90f5e95d7012dffdece8b17e0a93673a6a8e825717e315cfc3602fb926f8f SHA512 e5a5dcaf0162154793b23655a9804453498b230a377ae45eabe67f51e15ff69194d98a6b6839fd2ebb0d136e3128e47d296da10ea7be67bec8dbed1d016a1777
|
||||
|
||||
11
dev-ada/libgpr/files/libgpr-26.0.0-gcc16.patch
Normal file
11
dev-ada/libgpr/files/libgpr-26.0.0-gcc16.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- a/gpr/src/gpr-compilation-process.adb 2025-12-02 20:16:02.856971670 +0100
|
||||
+++ b/gpr/src/gpr-compilation-process.adb 2025-12-02 20:16:18.920776145 +0100
|
||||
@@ -41,7 +41,7 @@
|
||||
-- A set of key=value
|
||||
|
||||
package Prj_Maps is new Containers.Indefinite_Ordered_Maps
|
||||
- (String, Env_Maps.Map, Env_Maps."<", Env_Maps."=");
|
||||
+ (String, Env_Maps.Map, "<", Env_Maps."=");
|
||||
-- A set of project+language=map
|
||||
|
||||
function "<" (Left, Right : Id) return Boolean is
|
||||
59
dev-ada/libgpr/libgpr-26.0.0.ebuild
Normal file
59
dev-ada/libgpr/libgpr-26.0.0.ebuild
Normal file
@ -0,0 +1,59 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
ADA_COMPAT=( gcc_{15..16} )
|
||||
inherit ada multiprocessing
|
||||
|
||||
MYPN=gprbuild
|
||||
MYP=${MYPN}-${PV}
|
||||
|
||||
DESCRIPTION="Ada library to handle GPRbuild project files"
|
||||
HOMEPAGE="https://github.com/AdaCore/gprbuild"
|
||||
SRC_URI="https://github.com/AdaCore/${MYPN}/archive/refs/tags/v${PV}.tar.gz
|
||||
-> ${MYP}.tar.gz"
|
||||
|
||||
S="${WORKDIR}"/${MYP}
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
IUSE="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}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-2020-gentoo.patch
|
||||
"${FILESDIR}"/${P}-gcc16.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
|
||||
}
|
||||
build relocatable
|
||||
use static-libs && build static
|
||||
use static-pic && build static-pic
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake prefix="${D}"/usr libgpr.install.shared
|
||||
use static-libs && emake prefix="${D}"/usr libgpr.install.static
|
||||
use static-pic && emake prefix="${D}"/usr libgpr.install.static-pic
|
||||
rm -r "${D}"/usr/share/gpr/manifests || die
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user