summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTupone Alfredo <tupone@gentoo.org>2018-06-09 21:09:40 +0200
committerTupone Alfredo <tupone@gentoo.org>2018-06-09 21:09:59 +0200
commit5dfb3b9f206cfc7a6cacaf4634845226cd34fec4 (patch)
treec18347d926db554d877d913f48d807b536c4d648 /dev-ada
parentdev-lang/ghc: backport binutils fixes (diff)
downloadgentoo-5dfb3b9f206cfc7a6cacaf4634845226cd34fec4.tar.gz
gentoo-5dfb3b9f206cfc7a6cacaf4634845226cd34fec4.tar.bz2
gentoo-5dfb3b9f206cfc7a6cacaf4634845226cd34fec4.zip
dev-ada/xmlada: Version bump to dev-ada/xmlada-2018
Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'dev-ada')
-rw-r--r--dev-ada/xmlada/Manifest1
-rw-r--r--dev-ada/xmlada/files/xmlada-2018-gentoo.patch30
-rw-r--r--dev-ada/xmlada/metadata.xml1
-rw-r--r--dev-ada/xmlada/xmlada-2018.ebuild93
4 files changed, 125 insertions, 0 deletions
diff --git a/dev-ada/xmlada/Manifest b/dev-ada/xmlada/Manifest
index f2cfd0ebb375..90f31e2b4d07 100644
--- a/dev-ada/xmlada/Manifest
+++ b/dev-ada/xmlada/Manifest
@@ -1 +1,2 @@
DIST xmlada-gpl-2017-src.tar.gz 1578393 BLAKE2B 7b4894040b6044e86c96cbd530ebda5c0cfc4ad0e2b472d46798a93f535aca0916b03385a3aef49bd4e59d508a9665c856360e9cab0a4f67b15091228b629d81 SHA512 371f6adc01550a4bb13204ec0404dc1165438db595f4346813e5a23a155de74c857c40c55adde173919c2fe35b3b91d78b235c9718ee86bc848e62ddfd7fa2b4
+DIST xmlada-gpl-2018-src.tar.gz 1582215 BLAKE2B 11012dab19f45507eeb5ce6ebec9a77ceb5dfb7749960922f0f48bb1b0409305fd43466a7af90b48ff0a0cf58612e8859274a92e0fe272b4e57a59b92a1725f1 SHA512 8970c4e68defad66625c1110554dadfc485fbbe42e832987593cf727e98f13dd87c90b84461187dbbe2b1051831e6e70f9f53d6a0cfc07451726d601b2856430
diff --git a/dev-ada/xmlada/files/xmlada-2018-gentoo.patch b/dev-ada/xmlada/files/xmlada-2018-gentoo.patch
new file mode 100644
index 000000000000..9e79572e3067
--- /dev/null
+++ b/dev-ada/xmlada/files/xmlada-2018-gentoo.patch
@@ -0,0 +1,30 @@
+--- xmlada-gpl-2017-src/Makefile.in.old 2017-12-04 20:09:23.730805855 +0100
++++ xmlada-gpl-2017-src/Makefile.in 2017-12-04 20:09:51.586331155 +0100
+@@ -62,7 +62,8 @@
+
+ # Rebuild the tests (and not the XML/Ada code itself)
+ test: force
++ GPR_PROJECT_PATH=schema:input_sources:dom:sax:unicode \
+ ${GPRBUILD} -p -XLIBRARY_TYPE=static ${GPROPTS} \
+ -XTESTS_ACTIVATED=Only xmlada.gpr
+
+ # Run the tests. This requires an install of XML/Ada first
+--- xmlada-gpl-2017-src/tests/Makefile.old 2017-12-04 21:38:29.722818904 +0100
++++ xmlada-gpl-2017-src/tests/Makefile 2017-12-04 21:38:54.229382658 +0100
+@@ -1,8 +1,6 @@
+ TESTS= test_unicode \
+ test_state \
+- test_xml \
+ test_adacore_dom \
+- test_schema \
+ test_date_time \
+ test_numbers \
+ test_adacore_schema \
+@@ -71,6 +71,7 @@
+ test_multiple_xsd:
+ @echo "multiple xsd"
+ @cd schema/multiple_xsd; \
++ GPR_PROJECT_PATH=../../../distrib:../../../input_sources:../../../dom:../../../sax:../../../schema:../../../unicode \
+ gprbuild -q -Pdefault.gpr; \
+ ./validate > $(RESULTS)/multiple_xsd.out; \
+ cp $(RESULTS)/multiple_xsd.out $(RESULTS)/multiple_xsd.diff; \
diff --git a/dev-ada/xmlada/metadata.xml b/dev-ada/xmlada/metadata.xml
index a31a912b0055..22eacbe16159 100644
--- a/dev-ada/xmlada/metadata.xml
+++ b/dev-ada/xmlada/metadata.xml
@@ -8,6 +8,7 @@
<use>
<flag name="gnat_2016">Compile with dev-lang/gnat-gpl-2016</flag>
<flag name="gnat_2017">Compile with dev-lang/gnat-gpl-2017</flag>
+ <flag name="gnat_2018">Compile with dev-lang/gnat-gpl-2017</flag>
<flag name="shared">Build shared library</flag>
<flag name="static-pic">Build static library with pic code</flag>
</use>
diff --git a/dev-ada/xmlada/xmlada-2018.ebuild b/dev-ada/xmlada/xmlada-2018.ebuild
new file mode 100644
index 000000000000..0696bbdadb19
--- /dev/null
+++ b/dev-ada/xmlada/xmlada-2018.ebuild
@@ -0,0 +1,93 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit multiprocessing
+
+MYP=${PN}-gpl-${PV}
+
+DESCRIPTION="Set of modules that provide a simple manipulation of XML streams"
+HOMEPAGE="http://libre.adacore.com/"
+SRC_URI="http://mirrors.cdn.adacore.com/art/591aeb88c7a4473fcbb154f8 ->
+ ${MYP}-src.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="gnat_2016 gnat_2017 +gnat_2018 +shared static-libs static-pic"
+REQUIRED_USE="|| ( shared static-libs static-pic )
+ ^^ ( gnat_2016 gnat_2017 gnat_2018 )"
+
+RDEPEND="gnat_2016? ( dev-lang/gnat-gpl:4.9.4 )
+ gnat_2017? ( dev-lang/gnat-gpl:6.3.0 )
+ gnat_2018? ( dev-lang/gnat-gpl:7.3.0 )"
+DEPEND="${RDEPEND}
+ dev-ada/gprbuild[gnat_2016=,gnat_2017=,gnat_2018=]"
+
+S="${WORKDIR}"/${MYP}-src
+
+PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
+
+src_configure () {
+ econf --prefix="${D}"/usr
+}
+
+src_compile () {
+ build () {
+ gprbuild -j$(makeopts_jobs) -m -p -v -XLIBRARY_TYPE=$1 \
+ -XBUILD=Production -XPROCESSORS=$(makeopts_jobs) xmlada.gpr \
+ -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() {
+ emake test
+ emake run_test | grep DIFF && die
+}
+
+src_install () {
+ local includedir=/usr/include/${PN}
+
+ fix_install () {
+ mv "${D}"${includedir}/$1.$2/* "${D}"${includedir}/$1/ || die
+ for file in "${D}"${includedir}/$1/*; do
+ dosym ../$1/$(basename ${file}) \
+ ${includedir}/$1.$2/$(basename ${file})
+ done
+ }
+
+ if use static-libs; then
+ emake PROCESSORS=$(makeopts_jobs) install-static
+ fi
+ for kind in shared static-pic; do
+ if use ${kind}; then
+ emake PROCESSORS=$(makeopts_jobs) install-${kind}
+ fi
+ done
+ rm "${D}"/usr/lib/libxmlada_* || die
+ for dir in xmlada_{dom,input,sax,schema,unicode}; do
+ dodir /usr/include/${PN}/${dir}
+ if use shared; then
+ fix_install ${dir} relocatable
+ fi
+ if use static-libs; then
+ fix_install ${dir} static
+ fi
+ if use static-pic; then
+ fix_install ${dir} static-pic
+ fi
+ done
+ einstalldocs
+ dodoc xmlada-roadmap.txt
+ rm "${D}"/usr/share/doc/${PN}/.buildinfo || die
+}