From 793051719e3e31e63bc8d863d1b90e51f942e67d Mon Sep 17 00:00:00 2001 From: "Estevan Castilho (Tevo)" Date: Fri, 20 Dec 2024 02:08:39 +0000 Subject: [PATCH 1/4] New package: gprbuild-bootstrap-25.0.0 --- srcpkgs/gprbuild-bootstrap/template | 34 +++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 srcpkgs/gprbuild-bootstrap/template diff --git a/srcpkgs/gprbuild-bootstrap/template b/srcpkgs/gprbuild-bootstrap/template new file mode 100644 index 00000000000000..3133d64174e85c --- /dev/null +++ b/srcpkgs/gprbuild-bootstrap/template @@ -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 " +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 +} From 99f537ac9b090c6accaa85ec5750e92a47aa48b1 Mon Sep 17 00:00:00 2001 From: "Estevan Castilho (Tevo)" Date: Fri, 20 Dec 2024 02:10:55 +0000 Subject: [PATCH 2/4] New package: xmlada-25.0.0 --- common/shlibs | 5 +++ srcpkgs/xmlada-devel | 1 + .../patches/fix-autoconf-flag-confusion.patch | 32 +++++++++++++++++ srcpkgs/xmlada/template | 36 +++++++++++++++++++ 4 files changed, 74 insertions(+) create mode 120000 srcpkgs/xmlada-devel create mode 100644 srcpkgs/xmlada/patches/fix-autoconf-flag-confusion.patch create mode 100644 srcpkgs/xmlada/template diff --git a/common/shlibs b/common/shlibs index e0bba1a4f23171..37f46190a50146 100644 --- a/common/shlibs +++ b/common/shlibs @@ -4550,3 +4550,8 @@ 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 diff --git a/srcpkgs/xmlada-devel b/srcpkgs/xmlada-devel new file mode 120000 index 00000000000000..2f2d27d92b8ead --- /dev/null +++ b/srcpkgs/xmlada-devel @@ -0,0 +1 @@ +xmlada \ No newline at end of file diff --git a/srcpkgs/xmlada/patches/fix-autoconf-flag-confusion.patch b/srcpkgs/xmlada/patches/fix-autoconf-flag-confusion.patch new file mode 100644 index 00000000000000..4b74bee17a89fe --- /dev/null +++ b/srcpkgs/xmlada/patches/fix-autoconf-flag-confusion.patch @@ -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 diff --git a/srcpkgs/xmlada/template b/srcpkgs/xmlada/template new file mode 100644 index 00000000000000..613e0454d5caa2 --- /dev/null +++ b/srcpkgs/xmlada/template @@ -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 " +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 + } +} From edd548c1d4f53ce84946be74cd74f58f4eae9c66 Mon Sep 17 00:00:00 2001 From: "Estevan Castilho (Tevo)" Date: Sat, 21 Dec 2024 01:42:44 +0000 Subject: [PATCH 3/4] New package: gprconfig_kb-25.0.0 --- srcpkgs/gprconfig_kb/template | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 srcpkgs/gprconfig_kb/template diff --git a/srcpkgs/gprconfig_kb/template b/srcpkgs/gprconfig_kb/template new file mode 100644 index 00000000000000..9fa01eb70c27e1 --- /dev/null +++ b/srcpkgs/gprconfig_kb/template @@ -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 " +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" +} From 04720e590b8182d62043e2050878db044183e37d Mon Sep 17 00:00:00 2001 From: "Estevan Castilho (Tevo)" Date: Fri, 20 Dec 2024 02:11:10 +0000 Subject: [PATCH 4/4] New package: gprbuild-25.0.0 --- common/shlibs | 1 + srcpkgs/gprbuild/template | 49 +++++++++++++++++++++++++++++++++++++++ srcpkgs/libgpr | 1 + srcpkgs/libgpr-devel | 1 + 4 files changed, 52 insertions(+) create mode 100644 srcpkgs/gprbuild/template create mode 120000 srcpkgs/libgpr create mode 120000 srcpkgs/libgpr-devel diff --git a/common/shlibs b/common/shlibs index 37f46190a50146..ab0e4ae4418efb 100644 --- a/common/shlibs +++ b/common/shlibs @@ -4555,3 +4555,4 @@ 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 diff --git a/srcpkgs/gprbuild/template b/srcpkgs/gprbuild/template new file mode 100644 index 00000000000000..9b30226450a325 --- /dev/null +++ b/srcpkgs/gprbuild/template @@ -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 " +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 + } +} diff --git a/srcpkgs/libgpr b/srcpkgs/libgpr new file mode 120000 index 00000000000000..5cd80f8ab7fe46 --- /dev/null +++ b/srcpkgs/libgpr @@ -0,0 +1 @@ +gprbuild \ No newline at end of file diff --git a/srcpkgs/libgpr-devel b/srcpkgs/libgpr-devel new file mode 120000 index 00000000000000..5cd80f8ab7fe46 --- /dev/null +++ b/srcpkgs/libgpr-devel @@ -0,0 +1 @@ +gprbuild \ No newline at end of file