# Buildsheet autogenerated by ravenadm tool -- Do not edit. NAMEBASE= gnatcoll-bindings VERSION= 25.0.0 EPOCH= 1 KEYWORDS= devel VARIANTS= std SDESC[std]= Core packages of GNAT Components Collection HOMEPAGE= https://github.com/AdaCore/gnatcoll-bindings CONTACT= John_Marino[draco@marino.st] DOWNLOAD_GROUPS= main SITES[main]= GITHUB/AdaCore:gnatcoll-bindings:v25.0.0 DISTFILE[1]= generated:main DF_INDEX= 1 SPKGS[std]= set gmp iconv python3 readline syslog zlib lzma cpp dev OPTIONS_AVAILABLE= none OPTIONS_STANDARD= none BUILD_DEPENDS= gmp:dev:std gmp:primary:std gprbuild:dev:std gprbuild:gprlib:std readline:dev:std readline:primary:std python312:dev:std gnatcoll-core:dev:std gnatcoll-core:primary:std zlib:dev:std zlib:primary:std xz:dev:std xz:primary:std EXRUN[readline]= readline:primary:std gnatcoll-core:primary:std EXRUN[cpp]= gnatcoll-core:primary:std EXRUN[zlib]= zlib:primary:std gnatcoll-core:primary:std EXRUN[iconv]= libiconv:primary:std gnatcoll-core:primary:std EXRUN[lzma]= xz:primary:std gnatcoll-core:primary:std EXRUN[python3]= python312:primary:std gnatcoll-core:primary:std EXRUN[gmp]= gmp:primary:std gnatcoll-core:primary:std EXRUN[syslog]= gnatcoll-core:primary:std USES= gprbuild gmake iconv:build LICENSE= GPLv3+:iconv LICENSE_TERMS= iconv:{{WRKDIR}}/TERMS LICENSE_FILE= GPLv3+:{{WRKSRC}}/COPYING3 LICENSE_AWK= TERMS:"^$$" LICENSE_SOURCE= TERMS:{{WRKSRC}}/iconv/gnatcoll-iconv.ads LICENSE_SCHEME= solo MAKE_ENV= BUILD=PROD INSTALL_REQ_TOOLCHAIN= yes SOVERSION= 25.0 do-build: .for component in gmp iconv readline syslog zlib lzma cpp python3 . for libtype in static static-pic relocatable (cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \ gprbuild -p -XLIBRARY_TYPE=${libtype} \ -XGNATCOLL_VERSION="25.0" \ -XGNATCOLL_ICONV_OPT="-liconv_pic" \ -XGNATCOLL_PYTHON_CFLAGS="-I${LOCALBASE}/include/python3.12" \ -P ${component}/gnatcoll_${component}.gpr) . endfor .endfor pre-configure: ${MV} ${WRKSRC}/python3/gnatcoll_python.gpr \ ${WRKSRC}/python3/gnatcoll_python3.gpr do-install: ${MKDIR} ${STAGEDIR}${PREFIX}/share/gpr .for component in gmp iconv readline syslog zlib lzma cpp python3 . for libtype in static static-pic relocatable ${MKDIR} ${WRKDIR}/${component}/${libtype} ${MKDIR} ${STAGEDIR}${PREFIX}/lib/gnatcoll_${component}.${libtype} (cd ${WRKSRC} && ${SETENV} ${MAKE_ENV}\ gprinstall -p --prefix=${WRKDIR}/${component}/${libtype}\ --no-manifest \ -XGNATCOLL_VERSION="25.0" \ -XLIBRARY_TYPE=${libtype} \ -XGNATCOLL_ICONV_OPT="-liconv_pic" \ -P ${component}/gnatcoll_${component}.gpr) . endfor ${MKDIR} ${STAGEDIR}${PREFIX}/include/gnatcoll_${component} ${MV} ${WRKDIR}/${component}/static/include/gnatcoll_${component}/* \ ${STAGEDIR}${PREFIX}/include/gnatcoll_${component}/ . for libtype in static static-pic relocatable ${MV} ${WRKDIR}/${component}/${libtype}/lib/gnatcoll_${component}/*.ali \ ${STAGEDIR}${PREFIX}/lib/gnatcoll_${component}.${libtype}/ @if [ "${libtype}" = "relocatable" ]; then\ ${INSTALL_LIB} ${WRKDIR}/${component}/${libtype}/lib/gnatcoll_${component}/*.so.25.0 \ ${STAGEDIR}${PREFIX}/lib/ ;\ echo "Relocate ${libtype}/lib/gnatcoll_${component}/*.so.25.0" ;\ else\ ${MV} ${WRKDIR}/${component}/${libtype}/lib/gnatcoll_${component}/*.a\ ${STAGEDIR}${PREFIX}/lib/gnatcoll_${component}.${libtype}/ ;\ echo "Relocate ${libtype}/lib/gnatcoll_${component}/*.a" ;\ fi . endfor ${SH} ${FILESDIR}/gen_gpr.sh \ "${component}" \ "${STAGEDIR}${PREFIX}" \ "-I${LOCALBASE}/include/python3.12" \ "25.0" \ "-lpython3.12" .endfor [FILE:102:descriptions/desc.gmp] This is the bindings module of the GNAT Components Collection. This subpackage contains gmp bindings. [FILE:104:descriptions/desc.iconv] This is the bindings module of the GNAT Components Collection. This subpackage contains iconv bindings. [FILE:110:descriptions/desc.python3] This is the bindings module of the GNAT Components Collection. This subpackage contains the python3 bindings. [FILE:107:descriptions/desc.readline] This is the bindings module of the GNAT Components Collection. This subpackage contains readline bindings. [FILE:105:descriptions/desc.syslog] This is the bindings module of the GNAT Components Collection. This subpackage contains syslog bindings. [FILE:103:descriptions/desc.zlib] This is the bindings module of the GNAT Components Collection. This subpackage contains zlib bindings. [FILE:111:descriptions/desc.lzma] This is the bindings module of the GNAT Components Collection. This subpackage contains LZMA library bindings. [FILE:102:descriptions/desc.cpp] This is the bindings module of the GNAT Components Collection. This subpackage contains C++ bindings. [FILE:118:distinfo] 80ddd7f20adf45f0e155cd43e0a5ba752020616af0b0700447563776acd688a3 299443 AdaCore-gnatcoll-bindings-25.0.0.tar.gz [FILE:167:manifests/plist.gmp] lib/ libgnatcoll_gmp.so.%%SOMAJOR%% libgnatcoll_gmp.so.%%SOVERSION%% lib/gnatcoll_gmp.relocatable/ libgnatcoll_gmp.so.%%SOMAJOR%% libgnatcoll_gmp.so.%%SOVERSION%% [FILE:177:manifests/plist.iconv] lib/ libgnatcoll_iconv.so.%%SOMAJOR%% libgnatcoll_iconv.so.%%SOVERSION%% lib/gnatcoll_iconv.relocatable/ libgnatcoll_iconv.so.%%SOMAJOR%% libgnatcoll_iconv.so.%%SOVERSION%% [FILE:187:manifests/plist.python3] lib/ libgnatcoll_python3.so.%%SOMAJOR%% libgnatcoll_python3.so.%%SOVERSION%% lib/gnatcoll_python3.relocatable/ libgnatcoll_python3.so.%%SOMAJOR%% libgnatcoll_python3.so.%%SOVERSION%% [FILE:192:manifests/plist.readline] lib/ libgnatcoll_readline.so.%%SOMAJOR%% libgnatcoll_readline.so.%%SOVERSION%% lib/gnatcoll_readline.relocatable/ libgnatcoll_readline.so.%%SOMAJOR%% libgnatcoll_readline.so.%%SOVERSION%% [FILE:182:manifests/plist.syslog] lib/ libgnatcoll_syslog.so.%%SOMAJOR%% libgnatcoll_syslog.so.%%SOVERSION%% lib/gnatcoll_syslog.relocatable/ libgnatcoll_syslog.so.%%SOMAJOR%% libgnatcoll_syslog.so.%%SOVERSION%% [FILE:172:manifests/plist.zlib] lib/ libgnatcoll_zlib.so.%%SOMAJOR%% libgnatcoll_zlib.so.%%SOVERSION%% lib/gnatcoll_zlib.relocatable/ libgnatcoll_zlib.so.%%SOMAJOR%% libgnatcoll_zlib.so.%%SOVERSION%% [FILE:73:manifests/plist.lzma] lib/ libgnatcoll_lzma.so.%%SOMAJOR%% libgnatcoll_lzma.so.%%SOVERSION%% [FILE:167:manifests/plist.cpp] lib/ libgnatcoll_cpp.so.%%SOMAJOR%% libgnatcoll_cpp.so.%%SOVERSION%% lib/gnatcoll_cpp.relocatable/ libgnatcoll_cpp.so.%%SOMAJOR%% libgnatcoll_cpp.so.%%SOVERSION%% [FILE:6082:manifests/plist.dev] include/gnatcoll_cpp/ cpp_string_support.cpp gnatcoll-cpp-strings.adb gnatcoll-cpp-strings.ads gnatcoll-cpp.ads include/gnatcoll_gmp/ gmp_support.c gnatcoll-gmp-integers-io.adb gnatcoll-gmp-integers-io.ads gnatcoll-gmp-integers-misc.adb gnatcoll-gmp-integers-misc.ads gnatcoll-gmp-integers-number_theoretic.adb gnatcoll-gmp-integers-number_theoretic.ads gnatcoll-gmp-integers-random.adb gnatcoll-gmp-integers-random.ads gnatcoll-gmp-integers-root_extraction.adb gnatcoll-gmp-integers-root_extraction.ads gnatcoll-gmp-integers.adb gnatcoll-gmp-integers.ads gnatcoll-gmp-lib.ads gnatcoll-gmp-mpz_even_p.c gnatcoll-gmp-mpz_odd_p.c gnatcoll-gmp-mpz_sign.c gnatcoll-gmp-random_state.adb gnatcoll-gmp-random_state.ads gnatcoll-gmp-rational_numbers.adb gnatcoll-gmp-rational_numbers.ads gnatcoll-gmp.ads include/gnatcoll_iconv/ gnatcoll-iconv.adb gnatcoll-iconv.ads iconv_support.c include/gnatcoll_lzma/ gnatcoll-coders-lzma-thin.ads gnatcoll-coders-lzma.adb gnatcoll-coders-lzma.ads include/gnatcoll_python3/ gnatcoll-any_types-python.adb gnatcoll-any_types-python.ads gnatcoll-python-capsule.adb gnatcoll-python-capsule.ads gnatcoll-python-ctypes.ads gnatcoll-python-errors.ads gnatcoll-python-eval.ads gnatcoll-python-exceptions.ads gnatcoll-python-fileutils.adb gnatcoll-python-fileutils.ads gnatcoll-python-lifecycle.adb gnatcoll-python-lifecycle.ads gnatcoll-python-state.adb gnatcoll-python-state.ads gnatcoll-python.adb gnatcoll-python.ads gnatcoll-scripts-python.adb gnatcoll-scripts-python.ads python_support.c include/gnatcoll_readline/ gnatcoll-readline.adb gnatcoll-readline.ads include/gnatcoll_syslog/ gnatcoll-traces-syslog.adb gnatcoll-traces-syslog.ads syslog_support.c include/gnatcoll_zlib/ gnatcoll-coders-zlib-thin.adb gnatcoll-coders-zlib-thin.ads gnatcoll-coders-zlib.adb gnatcoll-coders-zlib.ads lib/ libgnatcoll_cpp.so libgnatcoll_gmp.so libgnatcoll_iconv.so libgnatcoll_lzma.so libgnatcoll_python3.so libgnatcoll_readline.so libgnatcoll_syslog.so libgnatcoll_zlib.so lib/gnatcoll_cpp.relocatable/ gnatcoll-cpp-strings.ali gnatcoll-cpp.ali libgnatcoll_cpp.so lib/gnatcoll_cpp.static/ gnatcoll-cpp-strings.ali gnatcoll-cpp.ali libgnatcoll_cpp.a lib/gnatcoll_cpp.static-pic/ gnatcoll-cpp-strings.ali gnatcoll-cpp.ali libgnatcoll_cpp.a lib/gnatcoll_gmp.relocatable/ gnatcoll-gmp-integers-io.ali gnatcoll-gmp-integers-misc.ali gnatcoll-gmp-integers-number_theoretic.ali gnatcoll-gmp-integers-random.ali gnatcoll-gmp-integers-root_extraction.ali gnatcoll-gmp-integers.ali gnatcoll-gmp-lib.ali gnatcoll-gmp-random_state.ali gnatcoll-gmp-rational_numbers.ali gnatcoll-gmp.ali libgnatcoll_gmp.so lib/gnatcoll_gmp.static/ gnatcoll-gmp-integers-io.ali gnatcoll-gmp-integers-misc.ali gnatcoll-gmp-integers-number_theoretic.ali gnatcoll-gmp-integers-random.ali gnatcoll-gmp-integers-root_extraction.ali gnatcoll-gmp-integers.ali gnatcoll-gmp-lib.ali gnatcoll-gmp-random_state.ali gnatcoll-gmp-rational_numbers.ali gnatcoll-gmp.ali libgnatcoll_gmp.a lib/gnatcoll_gmp.static-pic/ gnatcoll-gmp-integers-io.ali gnatcoll-gmp-integers-misc.ali gnatcoll-gmp-integers-number_theoretic.ali gnatcoll-gmp-integers-random.ali gnatcoll-gmp-integers-root_extraction.ali gnatcoll-gmp-integers.ali gnatcoll-gmp-lib.ali gnatcoll-gmp-random_state.ali gnatcoll-gmp-rational_numbers.ali gnatcoll-gmp.ali libgnatcoll_gmp.a lib/gnatcoll_iconv.relocatable/ gnatcoll-iconv.ali libgnatcoll_iconv.so lib/gnatcoll_iconv.static/ gnatcoll-iconv.ali libgnatcoll_iconv.a lib/gnatcoll_iconv.static-pic/ gnatcoll-iconv.ali libgnatcoll_iconv.a lib/gnatcoll_lzma.relocatable/ gnatcoll-coders-lzma-thin.ali gnatcoll-coders-lzma.ali libgnatcoll_lzma.so libgnatcoll_lzma.so.25 libgnatcoll_lzma.so.25.0 lib/gnatcoll_lzma.static/ gnatcoll-coders-lzma-thin.ali gnatcoll-coders-lzma.ali libgnatcoll_lzma.a lib/gnatcoll_lzma.static-pic/ gnatcoll-coders-lzma-thin.ali gnatcoll-coders-lzma.ali libgnatcoll_lzma.a lib/gnatcoll_python3.relocatable/ gnatcoll-any_types-python.ali gnatcoll-python-capsule.ali gnatcoll-python-ctypes.ali gnatcoll-python-errors.ali gnatcoll-python-eval.ali gnatcoll-python-exceptions.ali gnatcoll-python-fileutils.ali gnatcoll-python-lifecycle.ali gnatcoll-python-state.ali gnatcoll-python.ali gnatcoll-scripts-python.ali libgnatcoll_python3.so lib/gnatcoll_python3.static/ gnatcoll-any_types-python.ali gnatcoll-python-capsule.ali gnatcoll-python-ctypes.ali gnatcoll-python-errors.ali gnatcoll-python-eval.ali gnatcoll-python-exceptions.ali gnatcoll-python-fileutils.ali gnatcoll-python-lifecycle.ali gnatcoll-python-state.ali gnatcoll-python.ali gnatcoll-scripts-python.ali libgnatcoll_python3.a lib/gnatcoll_python3.static-pic/ gnatcoll-any_types-python.ali gnatcoll-python-capsule.ali gnatcoll-python-ctypes.ali gnatcoll-python-errors.ali gnatcoll-python-eval.ali gnatcoll-python-exceptions.ali gnatcoll-python-fileutils.ali gnatcoll-python-lifecycle.ali gnatcoll-python-state.ali gnatcoll-python.ali gnatcoll-scripts-python.ali libgnatcoll_python3.a lib/gnatcoll_readline.relocatable/ gnatcoll-readline.ali libgnatcoll_readline.so lib/gnatcoll_readline.static/ gnatcoll-readline.ali libgnatcoll_readline.a lib/gnatcoll_readline.static-pic/ gnatcoll-readline.ali libgnatcoll_readline.a lib/gnatcoll_syslog.relocatable/ gnatcoll-traces-syslog.ali libgnatcoll_syslog.so lib/gnatcoll_syslog.static/ gnatcoll-traces-syslog.ali libgnatcoll_syslog.a lib/gnatcoll_syslog.static-pic/ gnatcoll-traces-syslog.ali libgnatcoll_syslog.a lib/gnatcoll_zlib.relocatable/ gnatcoll-coders-zlib-thin.ali gnatcoll-coders-zlib.ali libgnatcoll_zlib.so lib/gnatcoll_zlib.static/ gnatcoll-coders-zlib-thin.ali gnatcoll-coders-zlib.ali libgnatcoll_zlib.a lib/gnatcoll_zlib.static-pic/ gnatcoll-coders-zlib-thin.ali gnatcoll-coders-zlib.ali libgnatcoll_zlib.a share/gpr/ gnatcoll_cpp.gpr gnatcoll_gmp.gpr gnatcoll_iconv.gpr gnatcoll_lzma.gpr gnatcoll_python.gpr gnatcoll_readline.gpr gnatcoll_syslog.gpr gnatcoll_zlib.gpr [FILE:447:patches/patch-python3_gnatcoll__python.gpr] --- python3/gnatcoll_python.gpr.orig 2024-07-11 11:49:55 UTC +++ python3/gnatcoll_python.gpr @@ -23,7 +23,7 @@ with "gnatcoll_core"; -library project GnatColl_Python is +library project GnatColl_Python3 is Version := External ("GNATCOLL_VERSION", "0.0"); Name := "gnatcoll_python3"; @@ -113,4 +113,4 @@ library project GnatColl_Python is for VCS_Kind use "Git"; end Ide; -end GnatColl_Python; +end GnatColl_Python3; [FILE:2458:files/gen_gpr.sh] #!/bin/sh # This scripts generates gpr files and creates symbolic links # Expected inputs: component, destdir, python-includes # component one of (gmp, iconv, readline, syslog, python) name="$1" destdir="$2" python_includes="$3" soversion="$4" python3_linking="\"$5\"" component_lower="$name" component_target="$name" case "$name" in "gmp") component=GMP component_upper=GMP linker_opts='"-lgmp"' ;; "iconv") component=Iconv component_upper=ICONV linker_opts='"-liconv"' ;; "readline") component=Readline component_upper=READLINE linker_opts='"-lreadline"' ;; "syslog") component=Syslog component_upper=SYSLOG linker_opts= ;; "python3") name=python3 component=Python component_upper=PYTHON component_target="python" linker_opts="${python3_linking}" ;; "zlib") component=Zlib component_upper=ZLIB linker_opts="-lz" ;; "zstd") component=ZStd component_upper=ZSTD linker_opts="-lzstd" ;; "lzma") component=LZMA component_upper=LZMA linker_opts="-llzma" ;; "cpp") component=C++ component_upper=CPP linker_opts= ;; *) echo "Illegal component $component" exit 1 ;; esac dname=$(dirname "$0") filesdir=$(cd "$dname" && pwd -P) target="gnatcoll_${component_target}.gpr" major="${soversion%.[0-9]}" case "$name" in python|python3) pyhandle="s|%%PYTHON_ON%%||; s|%%PYTHON_INCLUDE%%|${python_includes}|" ;; *) pyhandle="/%%PYTHON_ON%%/d" ;; esac case "$name" in "iconv") iconvhandle="s|%%ICONV_ON%%||" ;; *) iconvhandle="/%%ICONV_ON%%/d" ;; esac sed \ -e "s|%%COMPONENT%%|${component}|"\ -e "s|%%COMPONENT_U%%|${component_upper}|"\ -e "s|%%COMPONENT_L%%|${component_lower}|"\ -e "s|%%NAME%%|${name}|"\ -e "s|%%LINKER_OPTS%%|${linker_opts}|"\ -e "${pyhandle}"\ -e "${iconvhandle}"\ "${filesdir}/gnatcoll_template.gpr" > "${destdir}/share/gpr/${target}" ln -s "libgnatcoll_${name}.so.${major}" "${destdir}/lib/libgnatcoll_${name}.so" ln -s "libgnatcoll_${name}.so.${soversion}" "${destdir}/lib/libgnatcoll_${name}.so.${major}" ln -s "../libgnatcoll_${name}.so.${soversion}" \ "${destdir}/lib/gnatcoll_${component_lower}.relocatable/libgnatcoll_${name}.so" ln -s "../libgnatcoll_${name}.so.${soversion}" \ "${destdir}/lib/gnatcoll_${component_lower}.relocatable/libgnatcoll_${name}.so.${major}" ln -s "../libgnatcoll_${name}.so.${soversion}" \ "${destdir}/lib/gnatcoll_${component_lower}.relocatable/libgnatcoll_${name}.so.${soversion}" [FILE:1997:files/gnatcoll_template.gpr] with "gpr"; with "xmlada_schema"; with "xmlada_dom"; with "xmlada_sax"; with "xmlada_input_sources"; with "xmlada_unicode"; with "gnatcoll"; library project GnatColl_%%COMPONENT%% is type BUILD_KIND is ("static", "static-pic", "relocatable"); BUILD : BUILD_KIND := external("GNATCOLL_%%COMPONENT_U%%_BUILD", external("LIBRARY_TYPE", "static-pic")); for Languages use ("Ada", "C"); case BUILD is when "static" => for Source_Dirs use ("../../include/gnatcoll_%%COMPONENT_L%%"); for Library_Dir use "../../lib/gnatcoll_%%COMPONENT_L%%.static"; for Library_Kind use "static"; when "static-pic" => for Source_Dirs use ("../../include/gnatcoll_%%COMPONENT_L%%"); for Library_Dir use "../../lib/gnatcoll_%%COMPONENT_L%%.static-pic"; for Library_Kind use "static-pic"; when "relocatable" => for Source_Dirs use ("../../include/gnatcoll_%%COMPONENT_L%%"); for Library_Dir use "../../lib/gnatcoll_%%COMPONENT_L%%.relocatable"; for Library_Kind use "relocatable"; end case; for Library_Name use "gnatcoll_%%NAME%%"; package Naming is for dot_replacement use "-"; for casing use "lowercase"; for body_suffix ("c") use ".c"; for body_suffix ("ada") use ".adb"; for spec_suffix ("c") use ".h"; for spec_suffix ("ada") use ".ads"; end Naming; package Linker is for Linker_Options use (%%LINKER_OPTS%%); end Linker; package Install is for Active use "False"; end Install; for Externally_Built use "True"; type Build_Type is ("DEBUG", "PROD"); %%PYTHON_ON%%libpython_kind := "shared"; %%PYTHON_ON%%python_static_lib := ""; %%PYTHON_ON%%python_libs := (); %%PYTHON_ON%%python_cflags := ("%%PYTHON_INCLUDE%%"); %%ICONV_ON%%iconv_opt := "-liconv"; build : build_type := "PROD"; name := "gnatcoll_%%NAME%%"; version := "0.0"; end GnatColl_%%COMPONENT%%;