diff options
author | Alfredo Tupone <tupone@gentoo.org> | 2023-12-31 19:55:26 +0100 |
---|---|---|
committer | Alfredo Tupone <tupone@gentoo.org> | 2023-12-31 19:55:26 +0100 |
commit | 454ed0e7d1e038d9fe3a310a148653aaae810c42 (patch) | |
tree | 09e8bfeae85be78756c688dcdfe1b862e5be6a79 /dev-ada | |
parent | dev-ada/gprbuild: add 24.0.0 (diff) | |
download | gentoo-454ed0e7d1e038d9fe3a310a148653aaae810c42.tar.gz gentoo-454ed0e7d1e038d9fe3a310a148653aaae810c42.tar.bz2 gentoo-454ed0e7d1e038d9fe3a310a148653aaae810c42.zip |
dev-ada/xmlada: add 24.0.0
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'dev-ada')
-rw-r--r-- | dev-ada/xmlada/Manifest | 1 | ||||
-rw-r--r-- | dev-ada/xmlada/xmlada-24.0.0.ebuild | 86 |
2 files changed, 87 insertions, 0 deletions
diff --git a/dev-ada/xmlada/Manifest b/dev-ada/xmlada/Manifest index 0073eda49418..8b36e9c9a64c 100644 --- a/dev-ada/xmlada/Manifest +++ b/dev-ada/xmlada/Manifest @@ -1 +1,2 @@ DIST xmlada-23.0.0.tar.gz 1053370 BLAKE2B 4edf2244818d72d6fc760f60c8145f373e5445d1d245b20b605e21faa7eeefed7835db87c1fd1239008e75211a572294e1d8e35af16c2ba2631c02d1d3b6f52f SHA512 a0fb2a34ffb5edf408fbdc1a3d68511b5545a5ec8993251ba75d71dd2a197f14e187d08f8febd71cb23bbd694889a99941911386af8468c5eb3b11128555edcb +DIST xmlada-24.0.0.tar.gz 1053363 BLAKE2B 628a1d3645c58cc3f8f5140c7cfb16adef02f6ccc72b8e9410819eaf67e0160bdcf81a8e33065ec52f54cb12309d857a3d82e532990a0fd17c249c04334ab10f SHA512 4e6773a5fdf9b6ebb5afca913d77aba9f697768f28ef9b23b9277aa4ea4ce09de4e53655dd5559e2326ff847327adb53fa6b776775aa923100a2624df415c97d diff --git a/dev-ada/xmlada/xmlada-24.0.0.ebuild b/dev-ada/xmlada/xmlada-24.0.0.ebuild new file mode 100644 index 000000000000..8b34419b5baa --- /dev/null +++ b/dev-ada/xmlada/xmlada-24.0.0.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +ADA_COMPAT=( gnat_2021 gcc_12 gcc_13 ) +inherit ada multiprocessing + +DESCRIPTION="Set of modules that provide a simple manipulation of XML streams" +HOMEPAGE="http://libre.adacore.com/" +SRC_URI="https://github.com/AdaCore/${PN}/archive/refs/tags/v${PV}.tar.gz + -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~x86" +IUSE="+shared static-libs static-pic" +REQUIRED_USE="|| ( shared static-libs static-pic ) + ${ADA_REQUIRED_USE}" + +RDEPEND="${ADA_DEPS}" +DEPEND="${RDEPEND} + dev-ada/gprbuild[${ADA_USEDEP}]" + +PATCHES=( "${FILESDIR}"/${PN}-23.0.0-gentoo.patch ) + +src_compile() { + build () { + gprbuild -j$(makeopts_jobs) -m -p -v -XLIBRARY_TYPE=$1 \ + -XBUILD=Production -XPROCESSORS=$(makeopts_jobs) xmlada.gpr \ + -largs ${LDFLAGS} \ + -cargs ${ADAFLAGS} || die "gprbuild failed" + } + if use shared; then + build relocatable + fi + if use static-libs; then + build static + fi + if use static-pic; then + build static-pic + fi +} + +src_test() { + GPR_PROJECT_PATH=schema:input_sources:dom:sax:unicode \ + gprbuild -j$(makeopts_jobs) -m -p -v -XLIBRARY_TYPE=static \ + -XBUILD=Production -XPROCESSORS=$(makeopts_jobs) xmlada.gpr \ + -XTESTS_ACTIVATED=Only \ + -largs ${LDFLAGS} \ + -cargs ${ADAFLAGS} || die "gprbuild failed" + emake --no-print-directory -C tests tests | tee xmlada.testLog + grep -q DIFF xmlada.testLog && die +} + +src_install() { + build () { + gprinstall -XLIBRARY_TYPE=$1 -f -p -XBUILD=Production \ + -XPROCESSORS=$(makeopts_jobs) --prefix="${D}"/usr \ + --install-name=xmlada --build-var=LIBRARY_TYPE \ + --build-var=XMLADA_BUILD \ + --build-name=$1 xmlada.gpr || die "gprinstall failed" + } + if use shared; then + build relocatable + fi + if use static-libs; then + build static + fi + if use static-pic; then + build static-pic + fi + + einstalldocs + dodoc xmlada-roadmap.txt + rm -rf "${D}"/usr/share/gpr/manifests + rm -f "${D}"/usr/share/examples/xmlada/*/b__* + rm -f "${D}"/usr/share/examples/xmlada/*/*.adb.std* + rm -f "${D}"/usr/share/examples/xmlada/*/*.ali + rm -f "${D}"/usr/share/examples/xmlada/*/*.bexch + rm -f "${D}"/usr/share/examples/xmlada/*/*.o + rm -f "${D}"/usr/share/examples/xmlada/*/*example + rm -f "${D}"/usr/share/examples/xmlada/dom/domexample2 + rm -f "${D}"/usr/share/examples/xmlada/sax/saxexample_main + mv "${D}"/usr/share/examples/xmlada "${D}"/usr/share/doc/"${PF}"/examples || die +} |