pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

devel/alire: update alire to 2.0.0 release



Module Name:	pkgsrc-wip
Committed By:	Dmytro Kazankov <dmytro.kazankov%gmail.com@localhost>
Pushed By:	dkazankov
Date:		Thu Mar 14 09:41:19 2024 +0200
Changeset:	d4a9054dddb73fd9c8f68718c41f800eb871afbe

Added Files:
	alire/DESCR
	alire/Makefile
	alire/PLIST
	alire/buildlink3.mk
	alire/distinfo
	alire/files/buildlink.cgpr
	alire/patches/patch-alire.gpr
	alire/patches/patch-alire__common.gpr
	alire/patches/patch-alr.gpr
	alire/patches/patch-alr__env.gpr
	alire/patches/patch-src_alire_alire-platforms.ads
	alire/patches/patch-src_alire_os__netbsd_alire-check__absolute__path.adb
	alire/patches/patch-src_alire_os__netbsd_alire-platforms-current__netbsd.adb
	alire/patches/patch-src_alire_os__netbsd_alire-platforms-folders__netbsd.adb
	alire/version.mk

Log Message:
devel/alire: update alire to 2.0.0 release

Package updated to 2.0.0 release

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=d4a9054dddb73fd9c8f68718c41f800eb871afbe

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 alire/DESCR                                        |   5 +
 alire/Makefile                                     |  79 ++++++++++++
 alire/PLIST                                        |   2 +
 alire/buildlink3.mk                                |  14 ++
 alire/distinfo                                     |  70 ++++++++++
 alire/files/buildlink.cgpr                         | 143 +++++++++++++++++++++
 alire/patches/patch-alire.gpr                      |  24 ++++
 alire/patches/patch-alire__common.gpr              |  14 ++
 alire/patches/patch-alr.gpr                        |  14 ++
 alire/patches/patch-alr__env.gpr                   |  14 ++
 alire/patches/patch-src_alire_alire-platforms.ads  |  14 ++
 ...lire_os__netbsd_alire-check__absolute__path.adb |  14 ++
 ..._os__netbsd_alire-platforms-current__netbsd.adb |  47 +++++++
 ..._os__netbsd_alire-platforms-folders__netbsd.adb |  41 ++++++
 alire/version.mk                                   |   3 +
 15 files changed, 498 insertions(+)

diffs:
diff --git a/alire/DESCR b/alire/DESCR
new file mode 100644
index 0000000000..b177247a4a
--- /dev/null
+++ b/alire/DESCR
@@ -0,0 +1,5 @@
+ALIRE: Ada LIbrary REpository
+
+A catalog of ready-to-use Ada libraries plus a command-line tool (alr) to
+obtain, build, and incorporate them into your own projects. It aims to
+fulfill a similar role to Rust's cargo or OCaml's opam.
diff --git a/alire/Makefile b/alire/Makefile
new file mode 100644
index 0000000000..fc41d810f7
--- /dev/null
+++ b/alire/Makefile
@@ -0,0 +1,79 @@
+# $NetBSD: Makefile,v 1.1 2024/03/12 17:53:15 wiz Exp $
+
+.include "version.mk"
+PKGNAME=alire-${ALIRE_VERSION}
+
+CATEGORIES=	devel
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/alire-project/alire
+COMMENT=	Ada LIbrary REpository
+LICENSE=	gnu-gpl-v3
+
+USE_LANGUAGES=	c ada
+
+.include "../../mk/bsd.prefs.mk"
+
+DISTNAME=	${PKGNAME}
+GITHUB_PROJECT=	alire
+GITHUB_TYPE=	tag
+GITHUB_TAG=	v${ALIRE_VERSION}
+MASTER_SITES=	${MASTER_SITE_GITHUB:=alire-project/}
+
+GITHUB_SUBMODULES+=	mosteo	aaa	dff61d2615cc6332fa6205267bae19b4d044b9da	deps/aaa
+GITHUB_SUBMODULES+=	mosteo	ada-toml	da4e59c382ceb0de6733d571ecbab7ea4919b33d	deps/ada-toml
+GITHUB_SUBMODULES+=	mosteo	ajunitgen	e5d01db5e7834d15c4066f0a8e33d780deae3cc9	deps/ajunitgen
+GITHUB_SUBMODULES+=	mosteo	ansi-ada	dc770a5a6cdaad8668c32b0cd4625a7d648f8ca2	deps/ansi
+GITHUB_SUBMODULES+=	alire-project	clic	56bbdc008e16996b6f76e443fd0165a240de1b13	deps/clic
+GITHUB_SUBMODULES+=	mosteo	dirty_booleans	05c40d88ecfe109e575ec8b21dd6ffa2e61df1dc	deps/dirty_booleans
+GITHUB_SUBMODULES+=	mosteo	diskflags	60729edf31816aca0036b13b2794c39a9bd0172e	deps/diskflags
+GITHUB_SUBMODULES+=	alire-project	gnatcoll-core	4e663b87a028252e7e074f054f8f453661397166	deps/gnatcoll-slim
+GITHUB_SUBMODULES+=	mosteo	minirest	9a9c660f9c6f27f5ef75417e7fac7061dff14d78	deps/minirest
+GITHUB_SUBMODULES+=	mosteo	optional	1aa0e20bf7cd010c4b59e6ab7cc4b089790b796e	deps/optional
+GITHUB_SUBMODULES+=	alire-project	semantic_versioning	cc2148cf9c8934fb557b5ae49a3f7947194fa7ee	deps/semantic_versioning
+GITHUB_SUBMODULES+=	HeisenbugLtd	si_units	9329d2591b82440ccc859a53f1380ac07ea4194d	deps/si_units
+GITHUB_SUBMODULES+=	alire-project	simple_logging	3505dc645f3eef6799a486aae223d37e88cfc4d5	deps/simple_logging
+GITHUB_SUBMODULES+=	Fabien-Chouteau	spdx_ada	2df9b1182544359c751544e52e14c94830d99fa6	deps/spdx
+GITHUB_SUBMODULES+=	mosteo	stopwatch	f607a63b714f09bbf6126de9851cbc21cf8666c9	deps/stopwatch
+GITHUB_SUBMODULES+=	mosteo	toml_slicer	3e5cbdb5673b85a1da6344a41764ef1cbafe3289	deps/toml_slicer
+GITHUB_SUBMODULES+=	mosteo	umwi	32496c15fe4fbb6cdab54ea11fbb0815549d2d48	deps/umwi
+GITHUB_SUBMODULES+=	mosteo	uri-ada	02a0780d7757e9e79b3410c3a34960655cacea3d	deps/uri-ada
+GITHUB_SUBMODULES+=	alire-project	xmlezout	1fcbd0b9303d044d8f09a8ef652afa8c0400ee8b	deps/xmlezout
+
+GCC_REQD+=	13
+
+.include "../../devel/gprbuild/buildlink3.mk"
+
+CGPRDIR=	${WRKDIR}
+
+SUBST_CLASSES+=			buildlink
+SUBST_STAGE.buildlink=		post-configure
+SUBST_FILES.buildlink=		../buildlink.cgpr
+SUBST_MESSAGE.buildlink=	Set work directory path in config project
+SUBST_VARS.buildlink=		WRKDIR
+
+MAKE_ENV+=		ALIRE_OS=netbsd
+MAKE_PROGRAM=		gprbuild
+MAKE_FILE=		alr_env
+MAKE_FLAGS=		-j0 -p -P
+BUILD_MAKE_FLAGS=	--config=${CGPRDIR}/buildlink.cgpr
+
+GENERATE_PLIST+= \
+	cd ${DESTDIR}${PREFIX} && \
+	${FIND} bin \( -type f -or -type l \) -print | ${SORT};
+
+pre-configure:
+	${RUN} ${CP} ${PKGDIR}/files/buildlink.cgpr ${CGPRDIR}/
+
+do-build:
+	${RUN} \
+	cd ${WRKSRC} \
+	&& env ${MAKE_ENV} \
+	    ${MAKE_PROGRAM} ${MAKE_FLAGS} ${MAKE_FILE} ${BUILD_MAKE_FLAGS}
+
+do-install:
+	${RUN} \
+	cd ${WRKSRC} \
+	&& mkdir -p ${DESTDIR}${PREFIX}/bin \
+	&& install -m0755 bin/alr ${DESTDIR}${PREFIX}/bin
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/alire/PLIST b/alire/PLIST
new file mode 100644
index 0000000000..c781c96d46
--- /dev/null
+++ b/alire/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2024/03/12 17:53:15 wiz Exp $
+bin/alr
diff --git a/alire/buildlink3.mk b/alire/buildlink3.mk
new file mode 100644
index 0000000000..8a243e732e
--- /dev/null
+++ b/alire/buildlink3.mk
@@ -0,0 +1,14 @@
+# $NetBSD: buildlink3.mk,v 1.1 2024/03/12 17:53:15 wiz Exp $
+
+BUILDLINK_TREE+=	alire
+
+.if !defined(ALIRE_BUILDLINK3_MK)
+ALIRE_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.alire+=	alire>=2.0.0
+BUILDLINK_PKGSRCDIR.alire=	../../devel/alire
+BUILDLINK_DEPMETHOD.alire?=	build
+
+.endif
+
+BUILDLINK_TREE+=	-alire
diff --git a/alire/distinfo b/alire/distinfo
new file mode 100644
index 0000000000..d87965aa58
--- /dev/null
+++ b/alire/distinfo
@@ -0,0 +1,70 @@
+$NetBSD: distinfo,v 1.1 2024/03/12 17:53:15 wiz Exp $
+
+BLAKE2s (Fabien-Chouteau-spdx_ada-2df9b1182544359c751544e52e14c94830d99fa6.tar.gz) = 71fed7aa5ff086e48af4ba202d000a42a1dd8b1c211aa39e77dac90b5bf31d23
+SHA512 (Fabien-Chouteau-spdx_ada-2df9b1182544359c751544e52e14c94830d99fa6.tar.gz) = 7d0be4c1459bef185f0ef7af9ae047bded574f3598d01601fb19fa568890859a04bdfd19394934fd4b21d4d3b41d6adf27a86c72c4db4398938f74e069a52301
+Size (Fabien-Chouteau-spdx_ada-2df9b1182544359c751544e52e14c94830d99fa6.tar.gz) = 18704 bytes
+BLAKE2s (HeisenbugLtd-si_units-9329d2591b82440ccc859a53f1380ac07ea4194d.tar.gz) = d391da7d4caea76fcb2c9c00636e0801fcbc1ee440765740a37b19b9620ebd0d
+SHA512 (HeisenbugLtd-si_units-9329d2591b82440ccc859a53f1380ac07ea4194d.tar.gz) = 2fb6890c2151e7913a89c636dc8aea72dfea76013207bc5c6d6667d7669a0a941491ec824a47c147e4815629817f590d6280eca7395701f08ba63be2391f2a09
+Size (HeisenbugLtd-si_units-9329d2591b82440ccc859a53f1380ac07ea4194d.tar.gz) = 16752 bytes
+BLAKE2s (alire-2.0.0.tar.gz) = 067bc5d06c117c90de3bb7abd2f98193757dab90f887f849cbaa0f9493d771b5
+SHA512 (alire-2.0.0.tar.gz) = 85c0a4348b40a81600c169f872b2a04cd0422f9cfbd256df1ee4f7af35afa5571d6e7b052c8374fde5ce8cfc7c2428b9b781af4f353e1691a12c25fb66df660d
+Size (alire-2.0.0.tar.gz) = 967859 bytes
+BLAKE2s (alire-project-clic-56bbdc008e16996b6f76e443fd0165a240de1b13.tar.gz) = 2b724d036ac82e057ad9b99b04e55075852222a2ed212687db8bbb2860bcef0b
+SHA512 (alire-project-clic-56bbdc008e16996b6f76e443fd0165a240de1b13.tar.gz) = 08773b52a763ea35e344940f9ca7685753bfbb88c2ae08a5212df176e5245757ea478da17b7a298aa980099bcb01928811be364da971c9e313d46822d01ebd07
+Size (alire-project-clic-56bbdc008e16996b6f76e443fd0165a240de1b13.tar.gz) = 63530 bytes
+BLAKE2s (alire-project-gnatcoll-core-4e663b87a028252e7e074f054f8f453661397166.tar.gz) = 6768e645a9b4a529e1731dc26b7f95438b6636167d2fbeda41ec66e94285b286
+SHA512 (alire-project-gnatcoll-core-4e663b87a028252e7e074f054f8f453661397166.tar.gz) = 6822af200212fdc9c2a5eb97688b0600dba6e239db8a09717b722480331c32a85c4ad197996dfef704c43ee762ccd7edf41538bceb8206c4d309821892741c47
+Size (alire-project-gnatcoll-core-4e663b87a028252e7e074f054f8f453661397166.tar.gz) = 491258 bytes
+BLAKE2s (alire-project-semantic_versioning-cc2148cf9c8934fb557b5ae49a3f7947194fa7ee.tar.gz) = adace7158e65646e01a4cfb322c01e5945ecac39b7f6e64d46996e57a5c879f8
+SHA512 (alire-project-semantic_versioning-cc2148cf9c8934fb557b5ae49a3f7947194fa7ee.tar.gz) = f7cf9e245b8c781444f6a0aa0c799ce5aae0347c39751a0b0d41d1950643b711f3ab06f670876ba8b64903d4177d514ca9369f349c1344de6ff6a811b3667373
+Size (alire-project-semantic_versioning-cc2148cf9c8934fb557b5ae49a3f7947194fa7ee.tar.gz) = 29295 bytes
+BLAKE2s (alire-project-simple_logging-3505dc645f3eef6799a486aae223d37e88cfc4d5.tar.gz) = 06c782f7fb4413c82fcb264c74daac34891852b0f0a835164e258db1ed72dbe6
+SHA512 (alire-project-simple_logging-3505dc645f3eef6799a486aae223d37e88cfc4d5.tar.gz) = 96605c73de9b6e54aab1f7bae8b43ee9f73b4d7aa5a566ab565d528214f37b66d3497bc33c5ee46f9f31c7c81e74fdb9baeac9422dc967bd0cbc990edcf30759
+Size (alire-project-simple_logging-3505dc645f3eef6799a486aae223d37e88cfc4d5.tar.gz) = 11073 bytes
+BLAKE2s (alire-project-xmlezout-1fcbd0b9303d044d8f09a8ef652afa8c0400ee8b.tar.gz) = 2f46db76f84c36336f5fd4752f117d7e40a57fbc9132579bf9e09e7006f934bb
+SHA512 (alire-project-xmlezout-1fcbd0b9303d044d8f09a8ef652afa8c0400ee8b.tar.gz) = 382b30da00e2529e695293dac61a631d40ea52194ff247fcae67d84d91330f4e307b35b7cf42ec4c7ddf5971e66c692e79e5eb6152b80392962a532b0121987a
+Size (alire-project-xmlezout-1fcbd0b9303d044d8f09a8ef652afa8c0400ee8b.tar.gz) = 12451 bytes
+BLAKE2s (mosteo-aaa-dff61d2615cc6332fa6205267bae19b4d044b9da.tar.gz) = 4c73fa06841e1914bfcad598b85a7e83385d18689c11d5ed6abe55330667d278
+SHA512 (mosteo-aaa-dff61d2615cc6332fa6205267bae19b4d044b9da.tar.gz) = 0789f8069e30b9db598dedd9da8e9f2018f4056e945fafc3d198c04a00da9f7e161bfec801ebcc7db002b00e453b8bd920aecaa5289b1b0ab46902b9bf3786e8
+Size (mosteo-aaa-dff61d2615cc6332fa6205267bae19b4d044b9da.tar.gz) = 24980 bytes
+BLAKE2s (mosteo-ada-toml-da4e59c382ceb0de6733d571ecbab7ea4919b33d.tar.gz) = dd02bc61cebb277ef3de3e38adefcd466b0ee23a264bff1101c546a3b629b976
+SHA512 (mosteo-ada-toml-da4e59c382ceb0de6733d571ecbab7ea4919b33d.tar.gz) = fc5ab58c8d6bf7cf9fc4ef06bbe1800115f879587302c6c26fcd76704a5f239683c0d42af2ee2a6dcae9551e7d9c5a7d6ed2acec53130c2e75f6dced3953ad26
+Size (mosteo-ada-toml-da4e59c382ceb0de6733d571ecbab7ea4919b33d.tar.gz) = 51582 bytes
+BLAKE2s (mosteo-ajunitgen-e5d01db5e7834d15c4066f0a8e33d780deae3cc9.tar.gz) = ab4a2bab7de5699bef25f3f02183290dbc142fc7d6b33a2f04e89328e6bf2be8
+SHA512 (mosteo-ajunitgen-e5d01db5e7834d15c4066f0a8e33d780deae3cc9.tar.gz) = 8ecafc993f9baa1b89c4963aa385a76b759930b89321d6b512c0d54efe85910735d2326a2ac420bb2dc1680916544d7b71009425a0f1e36808295825b63ec0cd
+Size (mosteo-ajunitgen-e5d01db5e7834d15c4066f0a8e33d780deae3cc9.tar.gz) = 5484 bytes
+BLAKE2s (mosteo-ansi-ada-dc770a5a6cdaad8668c32b0cd4625a7d648f8ca2.tar.gz) = 492b1f73a39f3b0bca9bbba24cc06341a520204ae41a0efdeacd632aac3943a4
+SHA512 (mosteo-ansi-ada-dc770a5a6cdaad8668c32b0cd4625a7d648f8ca2.tar.gz) = 716b24fd7929f7ce61cc2b7b5cd2e54e279abb7dd17be86cafa4b9bd4c2c83b92a743c485595c1e9564975a5f081a1bc992b1676769a33076d7af06da3033c7e
+Size (mosteo-ansi-ada-dc770a5a6cdaad8668c32b0cd4625a7d648f8ca2.tar.gz) = 6855 bytes
+BLAKE2s (mosteo-dirty_booleans-05c40d88ecfe109e575ec8b21dd6ffa2e61df1dc.tar.gz) = 6c28271da39af9a9d2b088abb943b101458ac3537428736792541318f3338a07
+SHA512 (mosteo-dirty_booleans-05c40d88ecfe109e575ec8b21dd6ffa2e61df1dc.tar.gz) = 9b57cba9b26618c58354ee134f458fd093e7cfd97ec171b272c3113497ffd5c9719fc14fa6f600619e18e65f31f943e9aad838195af12a4d5874d377c757d614
+Size (mosteo-dirty_booleans-05c40d88ecfe109e575ec8b21dd6ffa2e61df1dc.tar.gz) = 4495 bytes
+BLAKE2s (mosteo-diskflags-60729edf31816aca0036b13b2794c39a9bd0172e.tar.gz) = 1d86372520da72a4a65cce3f4eea79b4ea8d5955d9c77c6703e6b35595a00906
+SHA512 (mosteo-diskflags-60729edf31816aca0036b13b2794c39a9bd0172e.tar.gz) = 64a092dcaba0055147970b93e6905c6e8cd0e9f3a1704e91f37db5f4048b1d8b3d623bd5cf2d6cea129807006a9630765dc9f4510cd2e44fde4a951897eb082b
+Size (mosteo-diskflags-60729edf31816aca0036b13b2794c39a9bd0172e.tar.gz) = 14637 bytes
+BLAKE2s (mosteo-minirest-9a9c660f9c6f27f5ef75417e7fac7061dff14d78.tar.gz) = 9516bcb28859526a0d234d2d86305d9bd7e5108f434330622d5ef467f9a245a4
+SHA512 (mosteo-minirest-9a9c660f9c6f27f5ef75417e7fac7061dff14d78.tar.gz) = 100cf427793728b2dffc1b80fd910feccf3a81529d75bbeb34ca324169a35d8013998d03d1659734fbfd51cde2a58cbd93402492dfe16ba3aafa8eea92e7dc14
+Size (mosteo-minirest-9a9c660f9c6f27f5ef75417e7fac7061dff14d78.tar.gz) = 7084 bytes
+BLAKE2s (mosteo-optional-1aa0e20bf7cd010c4b59e6ab7cc4b089790b796e.tar.gz) = 4389cd052d31324c4bb1c3cd333b5bf17091861a1ce34d4b232b429493a0cde0
+SHA512 (mosteo-optional-1aa0e20bf7cd010c4b59e6ab7cc4b089790b796e.tar.gz) = 0b1a8c09d0b262bca09ed29db5edce59ff5a1b35dbe5c8153c9ab3815a6c573fd0f4bc96b4848d9b27c03cf136b467bda2498b0ea47389ed6aae9fb57ec812e9
+Size (mosteo-optional-1aa0e20bf7cd010c4b59e6ab7cc4b089790b796e.tar.gz) = 6220 bytes
+BLAKE2s (mosteo-stopwatch-f607a63b714f09bbf6126de9851cbc21cf8666c9.tar.gz) = 87a0f8fb5467b87de634bbd06fcf66405ddf8c72eb088ab493ed62f211e3a990
+SHA512 (mosteo-stopwatch-f607a63b714f09bbf6126de9851cbc21cf8666c9.tar.gz) = ec64522466b68ebec010cb53e3cbfb38db2090cf9fd82ce7d1fdc2af63c5a32b3c1d08ce37c1fe57d4ff5edbd428efb8d235e18f25b4c1ba99663216fb488710
+Size (mosteo-stopwatch-f607a63b714f09bbf6126de9851cbc21cf8666c9.tar.gz) = 3250 bytes
+BLAKE2s (mosteo-toml_slicer-3e5cbdb5673b85a1da6344a41764ef1cbafe3289.tar.gz) = 327fdd3e04b1d6e0ac6c97cd438adf06c2f17e8268341b35570bf2396d374599
+SHA512 (mosteo-toml_slicer-3e5cbdb5673b85a1da6344a41764ef1cbafe3289.tar.gz) = d792c2e55012a25c3b19e2172e6d0d7866aaea2fe5af47f558529fbfdae6f5582bd0e0d4539f88f0aa004dcff783223856a0699828c1045c2d4887d95f85064f
+Size (mosteo-toml_slicer-3e5cbdb5673b85a1da6344a41764ef1cbafe3289.tar.gz) = 5262 bytes
+BLAKE2s (mosteo-umwi-32496c15fe4fbb6cdab54ea11fbb0815549d2d48.tar.gz) = 21a78d4423d7f2589f20dc526b6f41e9e46d7bb048c16711572228ea88f52dcb
+SHA512 (mosteo-umwi-32496c15fe4fbb6cdab54ea11fbb0815549d2d48.tar.gz) = 1f882a3403d4a4d3f5d0a25db02cdc982f23f47e5b5904e2b42d2dc39fa12cb1e371fa3c0c19c31800996d45f676afb9b1189d0e060ec4ca7c4d205dae3c1c69
+Size (mosteo-umwi-32496c15fe4fbb6cdab54ea11fbb0815549d2d48.tar.gz) = 437897 bytes
+BLAKE2s (mosteo-uri-ada-02a0780d7757e9e79b3410c3a34960655cacea3d.tar.gz) = a6472407535c2e2395c6dba586b65643a7289f32c6af7a847fc237ec1dd0f6af
+SHA512 (mosteo-uri-ada-02a0780d7757e9e79b3410c3a34960655cacea3d.tar.gz) = d84eb9bd63da554eb640bc0c78ded538f787e10bd7e1a17e9e505ffda84d6c99e86d855afb9964fe005559b9050fba9c9fdc3f51b5a11d390394e56a25154496
+Size (mosteo-uri-ada-02a0780d7757e9e79b3410c3a34960655cacea3d.tar.gz) = 6287 bytes
+SHA1 (patch-alire.gpr) = 571c790ca413b971dd5d676ced8188ed1761b687
+SHA1 (patch-alire__common.gpr) = e1cba2d47d48557b3002ad1f8ced0a5ba6af69f2
+SHA1 (patch-alr.gpr) = 5068ad3dc2efef1aa33dbc57debea6e872f9f70f
+SHA1 (patch-alr__env.gpr) = ec6b800d341aff7cf308457f0dda60bb5cc6a508
+SHA1 (patch-src_alire_alire-platforms.ads) = 49c9173a337855e143c4388ca4510054006d4f11
+SHA1 (patch-src_alire_os__netbsd_alire-check__absolute__path.adb) = f7893dabd3d51d64c708aa690d0c46136ffebc67
+SHA1 (patch-src_alire_os__netbsd_alire-platforms-current__netbsd.adb) = 735f37293b1c7fb6c0d95445f879e00da8e624b5
+SHA1 (patch-src_alire_os__netbsd_alire-platforms-folders__netbsd.adb) = 9b294ef8f2cf109fb8a9687561fc0c03e84fad84
diff --git a/alire/files/buildlink.cgpr b/alire/files/buildlink.cgpr
new file mode 100644
index 0000000000..6f75ccdbfe
--- /dev/null
+++ b/alire/files/buildlink.cgpr
@@ -0,0 +1,143 @@
+configuration project default is
+   for Target use "x86_64-netbsd";
+   for Canonical_Target use "x86_64-netbsd";
+   for Inherit_Source_Path ("C++") use ("C");
+   for Inherit_Source_Path ("Asm_Cpp") use ("Asm");
+   for Default_Language use "Ada";
+   
+   for Archive_Builder  use ("ar", "cr");
+   for Archive_Builder_Append_Option use ("q");
+   for Archive_Indexer  use ("ranlib");
+   for Archive_Suffix   use ".a";
+   
+   for Symbolic_Link_Supported use "true";
+   for Library_Major_Minor_Id_Supported use "true";
+   for Library_Builder  use "@WRKDIR@/.buildlink/libexec/gprbuild/gprlib";
+   for Library_Support  use "full";
+   for Shared_Library_Prefix use "lib";
+   for Shared_Library_Minimum_Switches use ("-shared");
+   for Library_Version_Switches use ("-Wl,-soname,");
+
+   for Shared_Library_Suffix use ".so";
+   for Library_Auto_Init_Supported use "true";
+   for Run_Path_Option  use ("-Wl,-z,origin,-rpath,");
+   for Run_Path_Origin use "$ORIGIN";
+   for Library_Encapsulated_Supported use "true";
+   for Library_Encapsulated_Options use ("-shared", "-static-libgcc");
+   
+   for Toolchain_Version ("Ada") use "GNAT 13.2.0";
+   for Runtime_Dir       ("Ada") use "@WRKDIR@/.buildlink/gcc13-gnat/lib/gcc/x86_64--netbsd/13.2.0";
+
+   package Builder is
+      for Executable_Suffix use "";
+   end Builder;
+
+   package Compiler is
+      for Driver                   ("Ada") use "@WRKDIR@/.gcc/bin/gcc";
+      for Driver              ("C") use "@WRKDIR@/.gcc/bin/gcc";
+      for Driver              ("C++") use "@WRKDIR@/.gcc/bin/g++";
+      for Language_Kind            ("Ada") use "unit_based";
+      for Dependency_Kind          ("Ada") use "ALI_File";
+      for Leading_Required_Switches        ("Ada") use
+      ("-c", "-x", "ada", "-gnatA")
+             & Compiler'Leading_Required_Switches ("Ada");
+
+      for Mapping_File_Switches    ("Ada") use ("-gnatem=");
+      for Mapping_Spec_Suffix      ("Ada") use "%s";
+      for Mapping_Body_Suffix      ("Ada") use "%b";
+      for Config_File_Switches     ("Ada") use ("-gnatec=");
+      for Include_Path_File     ("Ada") use "ADA_PRJ_INCLUDE_FILE";
+      
+      for Multi_Unit_Switches ("Ada") use ("-gnateI");
+      for Multi_Unit_Object_Separator ("Ada") use "~";
+      for Config_Body_File_Name ("Ada") use
+           "pragma Source_File_Name_Project (%u, Body_File_Name => ""%f"");";
+      for Config_Spec_File_Name ("Ada") use
+           "pragma Source_File_Name_Project (%u, Spec_File_Name => ""%f"");";
+      for Config_Body_File_Name_Index ("Ada") use
+           "pragma Source_File_Name_Project (%u, Body_File_Name => ""%f"", Index => %i);";
+      for Config_Spec_File_Name_Index ("Ada") use
+           "pragma Source_File_Name_Project (%u, Spec_File_Name => ""%f"", Index => %i);";
+      for Config_Body_File_Name_Pattern ("Ada") use
+           "pragma Source_File_Name_Project " &
+           "  (Body_File_Name  => ""*%b""," &
+           "   Casing          => %c," &
+           "   Dot_Replacement => ""%d"");";
+      for Config_Spec_File_Name_Pattern ("Ada") use
+           "pragma Source_File_Name_Project " &
+           "  (Spec_File_Name  => ""*%s""," &
+           "   Casing          => %c," &
+           "   Dot_Replacement => ""%d"");";
+      for Config_File_Unique    ("Ada") use "False";
+      for Leading_Required_Switches ("Ada") use
+        Compiler'Leading_Required_Switches ("Ada") & ("--RTS=@WRKDIR@/.buildlink/gcc13-gnat/lib/gcc/x86_64--netbsd/13.2.0");
+        
+      for Leading_Required_Switches   ("C") use
+         ("-c", "-x", "c") & Compiler'Leading_Required_Switches ("C");
+      for Include_Switches_Via_Spec   ("C") use ("cc1", "-I");
+      for Max_Command_Line_Length use "8192";
+      for Response_File_Format    ("C") use "GCC_GNU";
+      for Dependency_Switches ("C") use ("-MMD", "-MF", "");
+      for PIC_Option ("C") use ("-fPIC");
+      
+      for Leading_Required_Switches   ("C++") use
+        ("-c", "-x", "c++") &
+        Compiler'Leading_Required_Switches ("C++");
+      for Dependency_Switches ("C++") use ("-MMD", "-MF", "");
+      for Include_Switches_Via_Spec ("C++") use ("cc1plus", "-I");
+      for Max_Command_Line_Length use "8192";
+      for Response_File_Format    ("C++") use "GCC_GNU";
+      for PIC_Option      ("C++") use ("-fPIC");
+   end Compiler;
+
+   package Naming is
+      for Spec_Suffix ("Ada") use ".ads";
+      for Body_Suffix ("Ada") use ".adb";
+
+      for Body_Suffix ("Asm") use ".s";
+      for Body_Suffix ("Asm2") use ".asm";
+      for Body_Suffix ("Asm_Cpp") use ".S";
+
+      for Body_Suffix ("C") use ".c";
+      for Spec_Suffix ("C") use ".h";
+
+      for Spec_Suffix ("C++") use ".hh";
+      for Body_Suffix ("C++") use ".cpp";
+
+      for Body_Suffix ("Fortran") use ".f";
+
+      for Casing use "lowercase";
+      for Dot_Replacement use "-";
+   end Naming;
+
+   package Binder is
+      for Objects_Path_File     ("Ada") use "ADA_PRJ_OBJECTS_FILE";
+      for Driver         ("Ada") use
+          "@WRKDIR@/.buildlink/libexec/gprbuild/gprbind";
+      for Required_Switches ("Ada") use
+        Binder'Required_Switches ("Ada") & ("--RTS=@WRKDIR@/.buildlink/gcc13-gnat/lib/gcc/x86_64--netbsd/13.2.0");
+   end Binder;
+   
+   package Linker is
+      for Map_File_Option         use "-Wl,-Map,";
+      for Driver use Compiler'Driver ("Ada");
+      for Driver use Compiler'Driver ("C++");
+      for Response_File_Format use "GNU";
+      for Max_Command_Line_Length use "8192";
+   end Linker;
+
+   package Clean is
+      for Source_Artifact_Extensions ("Ada") use (".dg", ".rep");
+      for Object_Artifact_Extensions ("Ada") use (".s", ".ci", ".gcno", ".su");
+
+      for Source_Artifact_Extensions ("C")   use (".gli");
+      for Object_Artifact_Extensions ("C")   use (".s", "ci", ".gcno", ".su");
+
+      for Source_Artifact_Extensions ("C++") use (".gli");
+      for Object_Artifact_Extensions ("C++") use (".s", "ci", ".gcno", ".su");
+      --  Remove the files generated by gnatinspect (in the context of GPS)
+      for Artifacts_In_Object_Dir use Clean'Artifacts_In_Object_Dir
+         & ("gnatinspect.*");
+   end Clean;
+   
+end default;
diff --git a/alire/patches/patch-alire.gpr b/alire/patches/patch-alire.gpr
new file mode 100644
index 0000000000..676350ee15
--- /dev/null
+++ b/alire/patches/patch-alire.gpr
@@ -0,0 +1,24 @@
+$NetBSD: patch-alire.gpr,v 1.1 2024/03/12 17:53:16 wiz Exp $
+
+Add NetBSD support
+
+--- alire.gpr.orig	2023-10-19 15:04:21.000000000 +0000
++++ alire.gpr
+@@ -28,6 +28,7 @@ library project Alire is
+ 
+    case Alire_Common.Host_Os is
+       when "freebsd" => Src_Dirs := Src_Dirs & ("src/alire/os_freebsd");
++      when "netbsd" => Src_Dirs := Src_Dirs & ("src/alire/os_netbsd");
+       when "linux"   => Src_Dirs := Src_Dirs & ("src/alire/os_linux");
+       when "macos"   => Src_Dirs := Src_Dirs & ("src/alire/os_macos");
+       when "windows" => Src_Dirs := Src_Dirs & ("src/alire/os_windows");
+@@ -38,6 +39,9 @@ library project Alire is
+          when "freebsd" =>
+             for body ("Alire.Platforms.Current") use "alire-platforms-current__freebsd.adb";
+             for body ("Alire.Platforms.Folders") use "alire-platforms-folders__freebsd.adb";
++         when "netbsd" =>
++            for body ("Alire.Platforms.Current") use "alire-platforms-current__netbsd.adb";
++            for body ("Alire.Platforms.Folders") use "alire-platforms-folders__netbsd.adb";
+          when "linux" =>
+             for body ("Alire.Platforms.Current") use "alire-platforms-current__linux.adb";
+             for body ("Alire.Platforms.Folders") use "alire-platforms-folders__linux.adb";
diff --git a/alire/patches/patch-alire__common.gpr b/alire/patches/patch-alire__common.gpr
new file mode 100644
index 0000000000..3ad0064e4f
--- /dev/null
+++ b/alire/patches/patch-alire__common.gpr
@@ -0,0 +1,14 @@
+$NetBSD: patch-alire__common.gpr,v 1.1 2024/03/12 17:53:16 wiz Exp $
+
+Add NetBSD support
+
+--- alire_common.gpr.orig	2023-10-19 15:04:21.000000000 +0000
++++ alire_common.gpr
+@@ -4,6 +4,7 @@ abstract project Alire_Common is
+ 
+    type Host_OSes is ("linux",
+                       "freebsd",
++                      "netbsd",
+                       "macos",
+                       "windows");
+ 
diff --git a/alire/patches/patch-alr.gpr b/alire/patches/patch-alr.gpr
new file mode 100644
index 0000000000..3be95b7bbe
--- /dev/null
+++ b/alire/patches/patch-alr.gpr
@@ -0,0 +1,14 @@
+$NetBSD: patch-alr.gpr,v 1.1 2024/03/12 17:53:16 wiz Exp $
+
+Add NetBSD support
+
+--- alr.gpr.orig	2023-10-19 15:04:21.000000000 +0000
++++ alr.gpr
+@@ -14,6 +14,7 @@ project Alr is
+ 
+    case Alire_Common.Host_Os is
+       when "freebsd" => Src_Dirs := Src_Dirs & ("src/alr/os_linux");
++      when "netbsd" => Src_Dirs := Src_Dirs & ("src/alr/os_linux");
+       when "linux"   => Src_Dirs := Src_Dirs & ("src/alr/os_linux");
+       when "macos"   => Src_Dirs := Src_Dirs & ("src/alr/os_macos");
+       when "windows" => Src_Dirs := Src_Dirs & ("src/alr/os_windows");
diff --git a/alire/patches/patch-alr__env.gpr b/alire/patches/patch-alr__env.gpr
new file mode 100644
index 0000000000..79f268fb71
--- /dev/null
+++ b/alire/patches/patch-alr__env.gpr
@@ -0,0 +1,14 @@
+$NetBSD: patch-alr__env.gpr,v 1.1 2024/03/12 17:53:16 wiz Exp $
+
+Add NetBSD support
+
+--- alr_env.gpr.orig	2023-10-19 15:04:21.000000000 +0000
++++ alr_env.gpr
+@@ -36,6 +36,7 @@ aggregate project Alr_Env is
+ 
+    case Alire_Common.Host_Os is
+       when "freebsd" => for External ("GNATCOLL_OS") use "unix";
++      when "netbsd" => for External ("GNATCOLL_OS") use "unix";
+       when "linux"   => for External ("GNATCOLL_OS") use "unix";
+       when "macos"   => for External ("GNATCOLL_OS") use "osx";
+       when "windows" => for External ("GNATCOLL_OS") use "windows";
diff --git a/alire/patches/patch-src_alire_alire-platforms.ads b/alire/patches/patch-src_alire_alire-platforms.ads
new file mode 100644
index 0000000000..487d596e01
--- /dev/null
+++ b/alire/patches/patch-src_alire_alire-platforms.ads
@@ -0,0 +1,14 @@
+$NetBSD: patch-src_alire_alire-platforms.ads,v 1.1 2024/03/12 17:53:16 wiz Exp $
+
+Add NetBSD support
+
+--- src/alire/alire-platforms.ads.orig	2023-10-19 15:04:21.000000000 +0000
++++ src/alire/alire-platforms.ads
+@@ -21,6 +21,7 @@ package Alire.Platforms with Preelaborat
+    --  See e.g. https://stackoverflow.com/a/45125525/761390
+ 
+    type Operating_Systems is (FreeBSD,
++                              NetBSD,
+                               Linux,
+                               MacOS,
+                               Windows,
diff --git a/alire/patches/patch-src_alire_os__netbsd_alire-check__absolute__path.adb b/alire/patches/patch-src_alire_os__netbsd_alire-check__absolute__path.adb
new file mode 100644
index 0000000000..9325d7dcc7
--- /dev/null
+++ b/alire/patches/patch-src_alire_os__netbsd_alire-check__absolute__path.adb
@@ -0,0 +1,14 @@
+$NetBSD: patch-src_alire_os__netbsd_alire-check__absolute__path.adb,v 1.1 2024/03/12 17:53:16 wiz Exp $
+
+Add NetBSD support
+
+--- /dev/null	2023-12-27 21:54:28.155585723 +0200
++++ src/alire/os_netbsd/alire-check_absolute_path.adb	2023-10-19 18:04:21.000000000 +0300
+@@ -0,0 +1,7 @@
++separate (Alire)
++function Check_Absolute_Path (Path : Any_Path) return Boolean is
++begin
++   return (Path'Length >= 1
++            and then
++           Path (Path'First) = GNAT.OS_Lib.Directory_Separator);
++end Check_Absolute_Path;
diff --git a/alire/patches/patch-src_alire_os__netbsd_alire-platforms-current__netbsd.adb b/alire/patches/patch-src_alire_os__netbsd_alire-platforms-current__netbsd.adb
new file mode 100644
index 0000000000..61d5f671ef
--- /dev/null
+++ b/alire/patches/patch-src_alire_os__netbsd_alire-platforms-current__netbsd.adb
@@ -0,0 +1,47 @@
+$NetBSD: patch-src_alire_os__netbsd_alire-platforms-current__netbsd.adb,v 1.1 2024/03/12 17:53:16 wiz Exp $
+
+Add NetBSD support
+
+--- /dev/null	2024-03-04 23:32:58.950570486 +0200
++++ src/alire/os_netbsd/alire-platforms-current__netbsd.adb	2024-03-04 23:47:58.197854852 +0200
+@@ -0,0 +1,40 @@
++
++package body Alire.Platforms.Current is
++
++   --  NetBSD implementation (identical to FreeBSD)
++
++   ---------------------------
++   -- Detected_Distribution --
++   ---------------------------
++
++   function Detected_Distribution return Platforms.Distributions
++   is (Platforms.Distribution_Unknown);
++
++   -----------------------
++   -- Distribution_Root --
++   -----------------------
++
++   function Distribution_Root return Absolute_Path
++   is ("/");
++
++   ----------------------
++   -- Load_Environment --
++   ----------------------
++
++   procedure Load_Environment (Ctx : in out Alire.Environment.Context)
++   is null;
++
++   ----------------------
++   -- Operating_System --
++   ----------------------
++
++   function Operating_System return Alire.Platforms.Operating_Systems
++   is (Alire.Platforms.NetBSD);
++
++   ----------------
++   -- Initialize --
++   ----------------
++
++   procedure Initialize is null;
++
++end Alire.Platforms.Current;
diff --git a/alire/patches/patch-src_alire_os__netbsd_alire-platforms-folders__netbsd.adb b/alire/patches/patch-src_alire_os__netbsd_alire-platforms-folders__netbsd.adb
new file mode 100644
index 0000000000..e6ba1bf6ca
--- /dev/null
+++ b/alire/patches/patch-src_alire_os__netbsd_alire-platforms-folders__netbsd.adb
@@ -0,0 +1,41 @@
+$NetBSD: patch-src_alire_os__netbsd_alire-platforms-folders__netbsd.adb,v 1.1 2024/03/12 17:53:16 wiz Exp $
+
+Add NetBSD support
+
+--- /dev/null	2024-03-04 23:32:58.950570486 +0200
++++ src/alire/os_netbsd/alire-platforms-folders__netbsd.adb	2024-03-04 23:27:09.298953043 +0200
+@@ -0,0 +1,34 @@
++with Ada.Directories;
++
++with Alire.Platforms.Common;
++
++package body Alire.Platforms.Folders is
++
++   --  Linux implementation
++
++   -----------
++   -- Cache --
++   -----------
++
++   function Cache return Absolute_Path is (Common.XDG_Data_Home);
++
++   -----------
++   -- Config--
++   -----------
++
++   function Config return Absolute_Path is (Common.XDG_Config_Home);
++
++   ----------
++   -- Home --
++   ----------
++
++   function Home return Absolute_Path is (Common.Unix_Home_Folder);
++
++   ----------
++   -- Temp --
++   ----------
++
++   function Temp return Absolute_Path
++   is (Ada.Directories.Full_Name (Common.Unix_Temp_Folder));
++
++end Alire.Platforms.Folders;
diff --git a/alire/version.mk b/alire/version.mk
new file mode 100644
index 0000000000..9d1285091d
--- /dev/null
+++ b/alire/version.mk
@@ -0,0 +1,3 @@
+# $NetBSD: version.mk,v 1.1 2024/03/12 17:53:15 wiz Exp $
+
+ALIRE_VERSION:=	2.0.0


Home | Main Index | Thread Index | Old Index