pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
devel/gnatcoll-bindings: Add 24.0.0
Module Name: pkgsrc-wip
Committed By: Dmytro Kazankov <dmytro.kazankov%gmail.com@localhost>
Pushed By: dkazankov
Date: Tue May 21 12:29:59 2024 +0300
Changeset: 6036b6c6abf8c98223310dfd02c1a43f0f13202e
Added Files:
gnatcoll-bindings/DESCR
gnatcoll-bindings/Makefile
gnatcoll-bindings/PLIST
gnatcoll-bindings/buildlink3.mk
gnatcoll-bindings/distinfo
gnatcoll-bindings/options.mk
gnatcoll-bindings/patches/patch-Makefile
gnatcoll-bindings/patches/patch-version_information
Log Message:
devel/gnatcoll-bindings: Add 24.0.0
* The GNAT Components Collection - Bindings Ada library.
* Development package - only static libraries are provided.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=6036b6c6abf8c98223310dfd02c1a43f0f13202e
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
gnatcoll-bindings/DESCR | 4 +
gnatcoll-bindings/Makefile | 40 +++++++
gnatcoll-bindings/PLIST | 119 +++++++++++++++++++++
gnatcoll-bindings/buildlink3.mk | 20 ++++
gnatcoll-bindings/distinfo | 7 ++
gnatcoll-bindings/options.mk | 53 +++++++++
gnatcoll-bindings/patches/patch-Makefile | 76 +++++++++++++
.../patches/patch-version_information | 9 ++
8 files changed, 328 insertions(+)
diffs:
diff --git a/gnatcoll-bindings/DESCR b/gnatcoll-bindings/DESCR
new file mode 100644
index 0000000000..a4d0cfca76
--- /dev/null
+++ b/gnatcoll-bindings/DESCR
@@ -0,0 +1,4 @@
+The GNAT Components Collection (GNATcoll) - Bindings
+
+This is the bindings module of the GNAT Components Collection.
+Please refer to individual components for more details.
diff --git a/gnatcoll-bindings/Makefile b/gnatcoll-bindings/Makefile
new file mode 100644
index 0000000000..aaa6d8cdcc
--- /dev/null
+++ b/gnatcoll-bindings/Makefile
@@ -0,0 +1,40 @@
+# $NetBSD: Makefile,v 1.0 2024/05/13 13:00:00 dkazankov Exp $
+
+GNATCOLL_VERSION= 24.0.0
+
+PKGNAME= gnatcoll-bindings-${GNATCOLL_VERSION}
+DISTNAME= gnatcoll-bindings-${PKGVERSION_NOREV}
+CATEGORIES= devel
+MASTER_SITES= ${MASTER_SITE_GITHUB:=AdaCore/}
+GITHUB_PROJECT= gnatcoll-bindings
+GITHUB_TAG= v${PKGVERSION_NOREV}
+
+HOMEPAGE= https://github.com/AdaCore/gnatcoll-bindings
+COMMENT= The GNAT Components Collection (GNATcoll) - Bindings
+LICENSE= gnu-gpl-v3
+
+USE_TOOLS+= gmake
+
+.include "../../mk/bsd.prefs.mk"
+
+USE_LANGUAGES= c ada
+GCC_REQD+= 13
+
+.include "options.mk"
+
+MAKE_FLAGS+= BINDINGS=${BINDINGS:Q}
+MAKE_FLAGS+= prefix=${DESTDIR}${PREFIX} BUILD=PROD ENABLE_SHARED=no
+
+GENERATE_PLIST+= \
+ cd ${DESTDIR}${PREFIX} && \
+ ${FIND} include lib share \( -type f -or -type l \) -print | ${SORT};
+
+.include "../../wip/gprbuild/buildlink3.mk"
+.include "../../wip/xmlada/buildlink3.mk"
+.include "../../wip/gprlib/buildlink3.mk"
+.include "../../wip/gnatcoll-core/buildlink3.mk"
+
+PYTHON_VERSIONS_ACCEPTED= 312 311 310 39 38 27
+.include "../../lang/python/tool.mk"
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/gnatcoll-bindings/PLIST b/gnatcoll-bindings/PLIST
new file mode 100644
index 0000000000..034c8511a0
--- /dev/null
+++ b/gnatcoll-bindings/PLIST
@@ -0,0 +1,119 @@
+@comment $NetBSD: PLIST,v 1.0 2024/05/06 13:00:00 dkazankov Exp $
+include/gnatcoll_gmp/gmp_support.c
+include/gnatcoll_gmp/gnatcoll-gmp-integers-io.adb
+include/gnatcoll_gmp/gnatcoll-gmp-integers-io.ads
+include/gnatcoll_gmp/gnatcoll-gmp-integers-misc.adb
+include/gnatcoll_gmp/gnatcoll-gmp-integers-misc.ads
+include/gnatcoll_gmp/gnatcoll-gmp-integers-number_theoretic.adb
+include/gnatcoll_gmp/gnatcoll-gmp-integers-number_theoretic.ads
+include/gnatcoll_gmp/gnatcoll-gmp-integers-random.adb
+include/gnatcoll_gmp/gnatcoll-gmp-integers-random.ads
+include/gnatcoll_gmp/gnatcoll-gmp-integers-root_extraction.adb
+include/gnatcoll_gmp/gnatcoll-gmp-integers-root_extraction.ads
+include/gnatcoll_gmp/gnatcoll-gmp-integers.adb
+include/gnatcoll_gmp/gnatcoll-gmp-integers.ads
+include/gnatcoll_gmp/gnatcoll-gmp-lib.ads
+include/gnatcoll_gmp/gnatcoll-gmp-mpz_even_p.c
+include/gnatcoll_gmp/gnatcoll-gmp-mpz_odd_p.c
+include/gnatcoll_gmp/gnatcoll-gmp-mpz_sign.c
+include/gnatcoll_gmp/gnatcoll-gmp-random_state.adb
+include/gnatcoll_gmp/gnatcoll-gmp-random_state.ads
+include/gnatcoll_gmp/gnatcoll-gmp-rational_numbers.adb
+include/gnatcoll_gmp/gnatcoll-gmp-rational_numbers.ads
+include/gnatcoll_gmp/gnatcoll-gmp.ads
+include/gnatcoll_iconv/gnatcoll-iconv.adb
+include/gnatcoll_iconv/gnatcoll-iconv.ads
+include/gnatcoll_iconv/iconv_support.c
+include/gnatcoll_lzma/gnatcoll-coders-lzma-thin.ads
+include/gnatcoll_lzma/gnatcoll-coders-lzma.adb
+include/gnatcoll_lzma/gnatcoll-coders-lzma.ads
+include/gnatcoll_omp/a-cvgpso.adb
+include/gnatcoll_omp/a-cvgpso.ads
+include/gnatcoll_omp/gnatcoll-omp-generic_array_sort.adb
+include/gnatcoll_omp/gnatcoll-omp-generic_array_sort.ads
+include/gnatcoll_omp/gnatcoll-omp-generic_constrained_array_sort.adb
+include/gnatcoll_omp/gnatcoll-omp-generic_constrained_array_sort.ads
+include/gnatcoll_omp/gnatcoll-omp.ads
+include/gnatcoll_omp/sort_omp.c
+include/gnatcoll_readline/gnatcoll-readline.adb
+include/gnatcoll_readline/gnatcoll-readline.ads
+include/gnatcoll_syslog/gnatcoll-traces-syslog.adb
+include/gnatcoll_syslog/gnatcoll-traces-syslog.ads
+include/gnatcoll_syslog/syslog_support.c
+include/gnatcoll_zlib/gnatcoll-coders-zlib-thin.adb
+include/gnatcoll_zlib/gnatcoll-coders-zlib-thin.ads
+include/gnatcoll_zlib/gnatcoll-coders-zlib.adb
+include/gnatcoll_zlib/gnatcoll-coders-zlib.ads
+lib/gnatcoll_gmp.static-pic/gnatcoll-gmp-integers-io.ali
+lib/gnatcoll_gmp.static-pic/gnatcoll-gmp-integers-misc.ali
+lib/gnatcoll_gmp.static-pic/gnatcoll-gmp-integers-number_theoretic.ali
+lib/gnatcoll_gmp.static-pic/gnatcoll-gmp-integers-random.ali
+lib/gnatcoll_gmp.static-pic/gnatcoll-gmp-integers-root_extraction.ali
+lib/gnatcoll_gmp.static-pic/gnatcoll-gmp-integers.ali
+lib/gnatcoll_gmp.static-pic/gnatcoll-gmp-lib.ali
+lib/gnatcoll_gmp.static-pic/gnatcoll-gmp-random_state.ali
+lib/gnatcoll_gmp.static-pic/gnatcoll-gmp-rational_numbers.ali
+lib/gnatcoll_gmp.static-pic/gnatcoll-gmp.ali
+lib/gnatcoll_gmp.static-pic/libgnatcoll_gmp.a
+lib/gnatcoll_gmp.static/gnatcoll-gmp-integers-io.ali
+lib/gnatcoll_gmp.static/gnatcoll-gmp-integers-misc.ali
+lib/gnatcoll_gmp.static/gnatcoll-gmp-integers-number_theoretic.ali
+lib/gnatcoll_gmp.static/gnatcoll-gmp-integers-random.ali
+lib/gnatcoll_gmp.static/gnatcoll-gmp-integers-root_extraction.ali
+lib/gnatcoll_gmp.static/gnatcoll-gmp-integers.ali
+lib/gnatcoll_gmp.static/gnatcoll-gmp-lib.ali
+lib/gnatcoll_gmp.static/gnatcoll-gmp-random_state.ali
+lib/gnatcoll_gmp.static/gnatcoll-gmp-rational_numbers.ali
+lib/gnatcoll_gmp.static/gnatcoll-gmp.ali
+lib/gnatcoll_gmp.static/libgnatcoll_gmp.a
+lib/gnatcoll_iconv.static-pic/gnatcoll-iconv.ali
+lib/gnatcoll_iconv.static-pic/libgnatcoll_iconv.a
+lib/gnatcoll_iconv.static/gnatcoll-iconv.ali
+lib/gnatcoll_iconv.static/libgnatcoll_iconv.a
+lib/gnatcoll_lzma.static-pic/gnatcoll-coders-lzma-thin.ali
+lib/gnatcoll_lzma.static-pic/gnatcoll-coders-lzma.ali
+lib/gnatcoll_lzma.static-pic/libgnatcoll_lzma.a
+lib/gnatcoll_lzma.static/gnatcoll-coders-lzma-thin.ali
+lib/gnatcoll_lzma.static/gnatcoll-coders-lzma.ali
+lib/gnatcoll_lzma.static/libgnatcoll_lzma.a
+lib/gnatcoll_omp.static-pic/a-cvgpso.ali
+lib/gnatcoll_omp.static-pic/gnatcoll-omp-generic_array_sort.ali
+lib/gnatcoll_omp.static-pic/gnatcoll-omp-generic_constrained_array_sort.ali
+lib/gnatcoll_omp.static-pic/gnatcoll-omp.ali
+lib/gnatcoll_omp.static-pic/libgnatcoll_omp.a
+lib/gnatcoll_omp.static/a-cvgpso.ali
+lib/gnatcoll_omp.static/gnatcoll-omp-generic_array_sort.ali
+lib/gnatcoll_omp.static/gnatcoll-omp-generic_constrained_array_sort.ali
+lib/gnatcoll_omp.static/gnatcoll-omp.ali
+lib/gnatcoll_omp.static/libgnatcoll_omp.a
+lib/gnatcoll_readline.static-pic/gnatcoll-readline.ali
+lib/gnatcoll_readline.static-pic/libgnatcoll_readline.a
+lib/gnatcoll_readline.static/gnatcoll-readline.ali
+lib/gnatcoll_readline.static/libgnatcoll_readline.a
+lib/gnatcoll_syslog.static-pic/gnatcoll-traces-syslog.ali
+lib/gnatcoll_syslog.static-pic/libgnatcoll_syslog.a
+lib/gnatcoll_syslog.static/gnatcoll-traces-syslog.ali
+lib/gnatcoll_syslog.static/libgnatcoll_syslog.a
+lib/gnatcoll_zlib.static-pic/gnatcoll-coders-zlib-thin.ali
+lib/gnatcoll_zlib.static-pic/gnatcoll-coders-zlib.ali
+lib/gnatcoll_zlib.static-pic/libgnatcoll_zlib.a
+lib/gnatcoll_zlib.static/gnatcoll-coders-zlib-thin.ali
+lib/gnatcoll_zlib.static/gnatcoll-coders-zlib.ali
+lib/gnatcoll_zlib.static/libgnatcoll_zlib.a
+share/examples/gnatcoll/gmp/gmp_examples.gpr
+share/examples/gnatcoll/gmp/isprime.adb
+share/examples/gnatcoll/gmp/square_triangular_numbers.adb
+share/gpr/gnatcoll_gmp.gpr
+share/gpr/gnatcoll_iconv.gpr
+share/gpr/gnatcoll_lzma.gpr
+share/gpr/gnatcoll_omp.gpr
+share/gpr/gnatcoll_readline.gpr
+share/gpr/gnatcoll_syslog.gpr
+share/gpr/gnatcoll_zlib.gpr
+share/gpr/manifests/gnatcoll_gmp
+share/gpr/manifests/gnatcoll_iconv
+share/gpr/manifests/gnatcoll_lzma
+share/gpr/manifests/gnatcoll_omp
+share/gpr/manifests/gnatcoll_readline
+share/gpr/manifests/gnatcoll_syslog
+share/gpr/manifests/gnatcoll_zlib
diff --git a/gnatcoll-bindings/buildlink3.mk b/gnatcoll-bindings/buildlink3.mk
new file mode 100644
index 0000000000..e7761e8427
--- /dev/null
+++ b/gnatcoll-bindings/buildlink3.mk
@@ -0,0 +1,20 @@
+# $NetBSD: buildlink3.mk,v 1.0 2024/05/14 09:30:00 dkazankov Exp $
+
+BUILDLINK_TREE+= gnatcoll-bindings
+
+.if !defined(GNATCOLL_BINDINGS_BUILDLINK3_MK)
+GNATCOLL_BINDINGS_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.gnatcoll-bindings+= gnatcoll-bindings>=24.0.0
+BUILDLINK_PKGSRCDIR.gnatcoll-bindings= ../../wip/gnatcoll-bindings
+BUILDLINK_DEPMETHOD.gnatcoll-bindings?= build
+
+BUILDLINK_FILES.gnatcoll-bindings= include/gnatcoll_*/* lib/gnatcoll_*/*
+BUILDLINK_FILES.gnatcoll-bindings+= share/gpr/manifests/gnatcoll_* share/gpr/gnatcoll_*.gpr
+
+BUILDLINK_CONTENTS_FILTER.gnatcoll-bindings= \
+ ${EGREP} '(include/.*\.ads$$|lib/.*\.ali$$|lib/.*\.a$$|share/gpr/manifests/.*|share/gpr/.*\.gpr)'
+
+.endif
+
+BUILDLINK_TREE+= -gnatcoll-bindings
diff --git a/gnatcoll-bindings/distinfo b/gnatcoll-bindings/distinfo
new file mode 100644
index 0000000000..c5c5ba3348
--- /dev/null
+++ b/gnatcoll-bindings/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+BLAKE2s (gnatcoll-bindings-24.0.0.tar.gz) = b43f5de77742f03c9d485da3f421bdb71e23fdb43db918b542b1f3df12e0962a
+SHA512 (gnatcoll-bindings-24.0.0.tar.gz) = d82f593cd0a2822d0007ba768a05e9870aa80b47232154008ea91af4ec758df1b23b92eb5264a58f2b4bedf775d143ce7119046a9ba8f7d5496ed89f3a4a2118
+Size (gnatcoll-bindings-24.0.0.tar.gz) = 253286 bytes
+SHA1 (patch-Makefile) = cd5df0d7a8231870a933cdf54ad801bb995986be
+SHA1 (patch-version_information) = 27344a8db2fccede1f8a42ba2bd4fb1d690eb9ae
diff --git a/gnatcoll-bindings/options.mk b/gnatcoll-bindings/options.mk
new file mode 100644
index 0000000000..e3ec280cb5
--- /dev/null
+++ b/gnatcoll-bindings/options.mk
@@ -0,0 +1,53 @@
+# $NetBSD: options.mk,v 1.0 2024/05/13 15:00:00 dkazankov Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.gnatcoll-bindings
+PKG_SUPPORTED_OPTIONS= gmp iconv lzma omp python python3 readline syslog zlib
+PKG_SUGGESTED_OPTIONS= gmp iconv lzma omp readline syslog zlib
+
+.include "../../mk/bsd.fast.prefs.mk"
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mgmp)
+. include "../../devel/gmp/buildlink3.mk"
+BINDINGS+= gmp
+.endif
+
+.if !empty(PKG_OPTIONS:Miconv)
+. include "../../converters/libiconv/buildlink3.mk"
+BINDINGS+= iconv
+.endif
+
+.if !empty(PKG_OPTIONS:Mlzma)
+BINDINGS+= lzma
+.endif
+
+.if !empty(PKG_OPTIONS:Momp)
+BINDINGS+= omp
+.endif
+
+.if !empty(PKG_OPTIONS:Mpython)
+PYTHON_VERSIONS_ACCEPTED+= 27
+. include "../../lang/python27/buildlink3.mk"
+BINDINGS+= python
+.endif
+
+.if !empty(PKG_OPTIONS:Mpython3)
+PYTHON_VERSIONS_ACCEPTED+= 312 311 310 39 38
+. include "../../lang/python312/buildlink3.mk"
+BINDINGS+= python3
+.endif
+
+.if !empty(PKG_OPTIONS:Mreadline)
+. include "../../devel/readline/buildlink3.mk"
+BINDINGS+= readline
+.endif
+
+.if !empty(PKG_OPTIONS:Msyslog)
+BINDINGS+= syslog
+.endif
+
+.if !empty(PKG_OPTIONS:Mzlib)
+. include "../../devel/zlib/buildlink3.mk"
+BINDINGS+= zlib
+.endif
diff --git a/gnatcoll-bindings/patches/patch-Makefile b/gnatcoll-bindings/patches/patch-Makefile
new file mode 100644
index 0000000000..27450ff865
--- /dev/null
+++ b/gnatcoll-bindings/patches/patch-Makefile
@@ -0,0 +1,76 @@
+$NetBSD: patch-Makefile,v 1.0 2024/05/13 21:00:00 dkazankov Exp $
+
+Create Makefile for build
+
+--- /dev/null 2024-05-14 08:52:29.834622612 +0300
++++ Makefile 2024-05-14 08:56:41.606792235 +0300
+@@ -0,0 +1,69 @@
++prefix ?= $(dir $(shell $(WHICH) gnatls))..
++ENABLE_SHARED ?= yes
++BUILD ?= PROD
++PROCESSORS ?= 0
++TARGET ?= $(shell gcc -dumpmachine)
++INTEGRATED ?= no
++
++BINDINGS ?= gmp iconv lzma omp python python3 readline syslog zlib
++
++NORMALIZED_TARGET := $(subst normalized_target:,,$(wordlist 6,6,$(shell gprconfig --config=ada --target=$(TARGET) --mi-show-compilers)))
++ifeq ($(NORMALIZED_TARGET),)
++ $(error No toolchain found for target "$(TARGET)")
++endif
++
++BUILD_DIR =
++ifeq ($(ENABLE_SHARED), yes)
++ LIBRARY_TYPES=static,static-pic,relocatable
++else
++ LIBRARY_TYPES=static,static-pic
++endif
++
++# Used to pass extra options to GPRBUILD, like -d for instance
++GPRBUILD_OPTIONS=
++GPRINSTALL_OPTIONS=
++
++all: build
++
++.PHONY: build $(BINDINGS)
++build: $(BINDINGS:%=build-%)
++
++build-%:
++ cd $* && python3 ./setup.py build \
++ --jobs=$(PROCESSORS) \
++ --library-types=$(LIBRARY_TYPES) \
++ --target=$(NORMALIZED_TARGET) \
++ --prefix=$(prefix) \
++ $(if $(filter yes, $(INTEGRATED)),--integrated,) \
++ $(if $(filter DEBUG, $(BUILD_OPTIONS)),--debug,) \
++ $(if $(filter readline, $*),--accept-gpl,) \
++ $(if $(GPRBUILD_OPTIONS),--gpr-opts $(GPRBUILD_OPTIONS),)
++ cd ..
++
++.PHONY: install
++install: $(BINDINGS:%=install-%)
++
++install-%:
++ cd $* && python3 ./setup.py install \
++ $(if $(GPRINSTALL_OPTIONS),--gpr-opts $(GPRINSTALL_OPTIONS),)
++ cd ..
++
++.PHONY: uninstall
++uninstall: $(BINDINGS:%=uninstall-%)
++
++uninstall-%:
++ cd $* && python3 ./setup.py uninstall
++ cd ..
++
++.PHONY: clean
++clean: $(BINDINGS:%=clean-%)
++
++clean-%:
++ cd $* && python3 ./setup.py clean
++ cd ..
++
++.PHONY: test
++test:
++ sh testsuite/run-tests
++
++.NOTPARALLEL:
diff --git a/gnatcoll-bindings/patches/patch-version_information b/gnatcoll-bindings/patches/patch-version_information
new file mode 100644
index 0000000000..f4fc56ab74
--- /dev/null
+++ b/gnatcoll-bindings/patches/patch-version_information
@@ -0,0 +1,9 @@
+$NetBSD: patch-version_information,v 1.0 2024/05/06 14:00:00 dkazankov Exp $
+
+Set version information
+
+--- version_information.orig 2023-09-21 18:57:14.000000000 +0300
++++ version_information 2024-05-06 14:53:16.555885083 +0300
+@@ -1 +1 @@
+-0.0
++24.0
Home |
Main Index |
Thread Index |
Old Index