Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New package: gprbuild-25.0.0 #53605

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions common/shlibs
Original file line number Diff line number Diff line change
Expand Up @@ -4550,3 +4550,9 @@ libshiboken6.so.6.7 libshiboken6-6.7.2_1
libopencore-amrnb.so.0 opencore-amr-0.1.6_1
libopencore-amrwb.so.0 opencore-amr-0.1.6_1
libilbc.so.3 libilbc-3.0.4_1
libxmlada_schema.so.18.0w xmlada-25.0.0_1
libxmlada_dom.so.18.0w xmlada-25.0.0_1
libxmlada_sax.so.18.0w xmlada-25.0.0_1
libxmlada_unicode.so.18.0w xmlada-25.0.0_1
libxmlada_input_sources.so.18.0w xmlada-25.0.0_1
libgnatprj.so libgpr-25.0.0_1
34 changes: 34 additions & 0 deletions srcpkgs/gprbuild-bootstrap/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Template file for 'gprbuild-bootstrap'
pkgname=gprbuild-bootstrap
version=25.0.0
revision=1
short_desc="Advanced build system for multi-language programs - bootstrap package"
maintainer="Estevan Castilho <[email protected]>"
license=GPL-3.0-or-later
homepage="https://github.com/AdaCore/gprbuild"
distfiles="
https://github.com/AdaCore/gprbuild/archive/refs/tags/v${version}.tar.gz>gprbuild-${version}.tar.gz
https://github.com/AdaCore/xmlada/archive/refs/tags/v${version}.tar.gz>xmlada-${version}.tar.gz
https://github.com/AdaCore/gprconfig_kb/archive/refs/tags/v${version}.tar.gz>gprconfig_kb-${version}.tar.gz"
checksum="
d12f94c1ec0b6e219f6b162f71f57129d22426e7798092f5f85b9ec2cc818bf1
dbb5984a0931311c7a787a679ef4cfaeeedd357474a585dc170140ef2251dcca
802e6d38a3b110897924a9c16e143cb86360f2dde94bb5b9144c7c391e37b121"

hostmakedepends="gcc-ada"

do_build() {
cd "gprbuild-${version}"
./bootstrap.sh \
--with-xmlada="../xmlada-${version}" \
--with-kb="../gprconfig_kb-${version}" \
--build
}

do_install() {
cd "gprbuild-${version}"
./bootstrap.sh \
--with-kb="../gprconfig_kb-${version}" \
--prefix="$DESTDIR/usr" \
--install
}
49 changes: 49 additions & 0 deletions srcpkgs/gprbuild/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Template file for 'gprbuild'
pkgname=gprbuild
version=25.0.0
revision=1
build_style=gnu-configure
short_desc="Advanced build system for multi-language programs"
maintainer="Estevan Castilho <[email protected]>"
license=GPL-3.0-or-later
homepage="https://github.com/AdaCore/gprbuild"
distfiles="https://github.com/AdaCore/gprbuild/archive/refs/tags/v${version}.tar.gz"
checksum="d12f94c1ec0b6e219f6b162f71f57129d22426e7798092f5f85b9ec2cc818bf1"

hostmakedepends="gcc-ada gprbuild-bootstrap which"
makedepends="xmlada-devel"
depends="gprconfig_kb"

subpackages="libgpr libgpr-devel"

make_build_target="all libgpr.build"
make_install_target="install libgpr.install"

do_configure() {
make prefix="$DESTDIR/usr" setup
}

libgpr_package() {
license+=" WITH GCC-exception-3.1"
short_desc+=" - library"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
cd "$DESTDIR"
# vmove isn't the biggest fan of globs on parent directories
for file in usr/lib/gpr/*/*/*.so*; do
vmove "$file"
done
}
}

libgpr-devel_package() {
license+=" WITH GCC-exception-3.1"
short_desc+=" - library - development files"
depends="libgpr>=${version}_${revision}"
pkg_install() {
vmove "usr/lib/*.so"
vmove usr/lib/gpr
vmove usr/share/gpr
vmove usr/include
}
}
16 changes: 16 additions & 0 deletions srcpkgs/gprconfig_kb/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Template file for 'gprconfig_kb'
pkgname=gprconfig_kb
version=25.0.0
revision=1
short_desc="Knowledge base for configuring GPR toolchains"
maintainer="Estevan Castilho <[email protected]>"
license=GPL-3.0-or-later
homepage="https://github.com/AdaCore/gprconfig_kb"
distfiles="https://github.com/AdaCore/gprconfig_kb/archive/refs/tags/v${version}.tar.gz"
checksum="802e6d38a3b110897924a9c16e143cb86360f2dde94bb5b9144c7c391e37b121"

do_install() {
destination="$DESTDIR/usr/share/gprconfig"
mkdir -p "$destination"
cp -rv db/* "$destination"
}
1 change: 1 addition & 0 deletions srcpkgs/libgpr
1 change: 1 addition & 0 deletions srcpkgs/libgpr-devel
1 change: 1 addition & 0 deletions srcpkgs/xmlada-devel
32 changes: 32 additions & 0 deletions srcpkgs/xmlada/patches/fix-autoconf-flag-confusion.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
diff --git a/Makefile.in b/Makefile.in
index e03b63c..880262b 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -16,9 +16,9 @@ GPRBUILD_OPTIONS=
PROCESSORS?=0
GPRBUILD=@gprbuild@ -j${PROCESSORS} -m ${GPRBUILD_OPTIONS}
GPRINSTALL=@gprinstall@
-TARGET=@target@
-TARGET_ALIAS=@target_alias@
-HOST=@host@
+TARGET=@host@
+TARGET_ALIAS=@host_alias@
+HOST=@build@

# Compiler mode: one of "distrib", "Debug", "Production", "profile", "coverage"
MODE=@BUILD_TYPE@
diff --git a/aclocal.m4 b/aclocal.m4
index 39392bc..e17b338 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -91,8 +91,8 @@ project Lib is
end Lib;
EOF

- if test "x$host_alias" != "x$target_alias"; then
- $gprbuild --target=$target_alias -c -q -P$tmp/lib 2>/dev/null
+ if test "x$build_alias" != "x$host_alias"; then
+ $gprbuild --target=$host_alias -c -q -P$tmp/lib 2>/dev/null
else
$gprbuild -c -q -P$tmp/lib 2>/dev/null
fi
36 changes: 36 additions & 0 deletions srcpkgs/xmlada/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Template file for 'xmlada'
pkgname=xmlada
version=25.0.0
revision=1
build_style=gnu-configure
short_desc="XML parser for Ada"
maintainer="Estevan Castilho <[email protected]>"
license="GPL-3.0-or-later WITH GCC-exception-3.1"
homepage="https://github.com/AdaCore/xmlada"
distfiles="https://github.com/AdaCore/xmlada/archive/refs/tags/v${version}.tar.gz"
checksum="dbb5984a0931311c7a787a679ef4cfaeeedd357474a585dc170140ef2251dcca"

hostmakedepends="gcc-ada autoconf gprbuild-bootstrap"

configure_args+=" --enable-shared"

do_configure() {
autoreconf -fi
./configure $configure_args
}

xmlada-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
cd "$DESTDIR"
# vmove isn't the biggest fan of globs on parent directories
for file in usr/lib/xmlada/*/*.{ali,a}; do
vmove "$file"
done
vmove "usr/lib/*.so"
vmove usr/share/gpr
vmove usr/include
vmove usr/share/examples/xmlada
}
}
Loading