public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-ada/xmlada/, dev-ada/xmlada/files/
@ 2017-03-26 20:03 Alfredo Tupone
  0 siblings, 0 replies; 9+ messages in thread
From: Alfredo Tupone @ 2017-03-26 20:03 UTC (permalink / raw
  To: gentoo-commits

commit:     14755823acb49bf2d36e0d3d5dfa4ee48ffc3a8c
Author:     Tupone Alfredo <tupone <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 26 20:02:54 2017 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Sun Mar 26 20:02:54 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=14755823

dev-ada/xmlada: Add dev-ada/xmlada

Package-Manager: Portage-2.3.3, Repoman-2.3.1

 dev-ada/xmlada/Manifest                       |  1 +
 dev-ada/xmlada/files/xmlada-2016-gentoo.patch | 38 ++++++++++++++++++++++++
 dev-ada/xmlada/metadata.xml                   | 20 +++++++++++++
 dev-ada/xmlada/xmlada-2016.ebuild             | 42 +++++++++++++++++++++++++++
 4 files changed, 101 insertions(+)

diff --git a/dev-ada/xmlada/Manifest b/dev-ada/xmlada/Manifest
new file mode 100644
index 00000000000..63b4b662dc0
--- /dev/null
+++ b/dev-ada/xmlada/Manifest
@@ -0,0 +1 @@
+DIST xmlada-gpl-2016-src.tar.gz 1440671 SHA256 ea64d8da2c5fb01a257fc5bf474b8d4ec40b01dc15b320b9fe260ff2db668ba4 SHA512 d1d7c3d91731394235aed4b80c91b1babe30d5f184282fae8087ee556318475e3923ed628b805693fc89a4d9bb219b0fb0937bc5024a742226da0245d36ed652 WHIRLPOOL b6ebb927d801394ad0b62d9538142c420ab33627582059466d4f64b12c3a45b1b5b489019aef715a59101370220a78507fe03d97c9e67233dfcc4f3aad1f16d7

diff --git a/dev-ada/xmlada/files/xmlada-2016-gentoo.patch b/dev-ada/xmlada/files/xmlada-2016-gentoo.patch
new file mode 100644
index 00000000000..e167c1df145
--- /dev/null
+++ b/dev-ada/xmlada/files/xmlada-2016-gentoo.patch
@@ -0,0 +1,38 @@
+--- xmlada-2016-src/Makefile.in.old	2016-12-04 21:58:57.251338692 +0100
++++ xmlada-2016-src/Makefile.in	2016-12-04 21:59:31.332755615 +0100
+@@ -7,7 +7,7 @@
+ PACKAGE_TARNAME=@PACKAGE_TARNAME@
+ VERSION=@PACKAGE_VERSION@
+ BUILDS_SHARED=@GNAT_BUILDS_SHARED@
+-prefix=@prefix@
++prefix=$(DESTDIR)@prefix@
+ 
+ # Set a default value (ignored if set in the environment)
+ PROCESSORS?=0
+@@ -49,13 +49,13 @@
+ endif
+ 
+ static:
+-	${GPRBUILD} -p -XLIBRARY_TYPE=static ${GPROPTS} xmlada.gpr
++	${GPRBUILD} -p -XLIBRARY_TYPE=static ${GPROPTS} xmlada.gpr -cargs $(ADAFLAGS)
+ 
+ shared relocatable:
+-	${GPRBUILD} -p -XLIBRARY_TYPE=relocatable ${GPROPTS} xmlada.gpr
++	${GPRBUILD} -p -XLIBRARY_TYPE=relocatable ${GPROPTS} xmlada.gpr -cargs $(ADAFLAGS)
+ 
+ static-pic:
+-	${GPRBUILD} -p -XLIBRARY_TYPE=static-pic ${GPROPTS} xmlada.gpr
++	${GPRBUILD} -p -XLIBRARY_TYPE=static-pic ${GPROPTS} xmlada.gpr -cargs $(ADAFLAGS)
+ 
+ # Rebuild the tests (and not the XML/Ada code itself)
+ test: force
+--- xmlada-gpl-2016-src/shared.gpr.in.old	2017-03-26 21:48:46.613541125 +0200
++++ xmlada-gpl-2016-src/shared.gpr.in	2017-03-26 21:49:32.713754025 +0200
+@@ -76,6 +76,7 @@
+          when "profile" =>
+             for Switches ("Ada") use warnings & ("-g", "-pg");
+       end case;
++      for Driver ("Ada") use External ("ADA", "gcc");
+    end compiler;
+ 
+    package binder is

diff --git a/dev-ada/xmlada/metadata.xml b/dev-ada/xmlada/metadata.xml
new file mode 100644
index 00000000000..521d595c3ff
--- /dev/null
+++ b/dev-ada/xmlada/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person">
+		<email>tupone@gentoo.org</email>
+		<name>Tupone Alfredo</name>
+	</maintainer>
+	<use>
+		<flag name="shared">Build shared library</flag>
+		<flag name="static">Build static library</flag>
+		<flag name="static-pic">Build static library with pic code</flag>
+	</use>
+	<longdescription lang="en">
+		 XML/Ada is a set of modules that provide a simple manipulation of XML streams. It supports the whole XML 1.1 specifications, and can parse any file that follows this standard (including the contents of the DTD, although no validation of the document is done based on those).
+
+		 It also provides support for a number of other standard associated with XML, like SAX, DOM and XML schemas.
+
+		 In addition, it includes a module to manipulate Unicode streams, since this is required by the XML standard.
+	</longdescription>
+</pkgmetadata>

diff --git a/dev-ada/xmlada/xmlada-2016.ebuild b/dev-ada/xmlada/xmlada-2016.ebuild
new file mode 100644
index 00000000000..fa4667143e1
--- /dev/null
+++ b/dev-ada/xmlada/xmlada-2016.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2017 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/57399978c7a447658e0affc0 -> ${MYP}-src.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="+shared static static-pic"
+REQUIRED_USE="|| ( shared static static-pic )"
+
+RDEPEND="dev-ada/gprbuild"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}"/${MYP}-src
+
+PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
+
+src_compile () {
+	for kind in shared static static-pic; do
+		if use ${kind}; then
+			emake PROCESSORS=$(makeopts_jobs) ${kind}
+		fi
+	done
+}
+
+src_install () {
+	for kind in shared static static-pic; do
+		if use ${kind}; then
+			emake PROCESSORS=$(makeopts_jobs) DESTDIR="${D}" install-${kind}
+		fi
+	done
+	einstalldocs
+}


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-ada/xmlada/, dev-ada/xmlada/files/
@ 2017-05-08 19:23 Alfredo Tupone
  0 siblings, 0 replies; 9+ messages in thread
From: Alfredo Tupone @ 2017-05-08 19:23 UTC (permalink / raw
  To: gentoo-commits

commit:     60981a57c933d8f338a16210dd2a7ee14543a62e
Author:     Tupone Alfredo <tupone <AT> gentoo <DOT> org>
AuthorDate: Mon May  8 19:23:07 2017 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Mon May  8 19:23:07 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=60981a57

dev-ada/xmlada: Add dev-ada/xmlada-9999

Package-Manager: Portage-2.3.5, Repoman-2.3.1

 dev-ada/xmlada/files/xmlada-2016-gentoo.patch             |  9 ---------
 dev-ada/xmlada/xmlada-2016.ebuild                         |  4 ++++
 dev-ada/xmlada/{xmlada-2016.ebuild => xmlada-9999.ebuild} | 13 ++++++++-----
 3 files changed, 12 insertions(+), 14 deletions(-)

diff --git a/dev-ada/xmlada/files/xmlada-2016-gentoo.patch b/dev-ada/xmlada/files/xmlada-2016-gentoo.patch
index e167c1df145..def06255cf5 100644
--- a/dev-ada/xmlada/files/xmlada-2016-gentoo.patch
+++ b/dev-ada/xmlada/files/xmlada-2016-gentoo.patch
@@ -1,14 +1,5 @@
 --- xmlada-2016-src/Makefile.in.old	2016-12-04 21:58:57.251338692 +0100
 +++ xmlada-2016-src/Makefile.in	2016-12-04 21:59:31.332755615 +0100
-@@ -7,7 +7,7 @@
- PACKAGE_TARNAME=@PACKAGE_TARNAME@
- VERSION=@PACKAGE_VERSION@
- BUILDS_SHARED=@GNAT_BUILDS_SHARED@
--prefix=@prefix@
-+prefix=$(DESTDIR)@prefix@
- 
- # Set a default value (ignored if set in the environment)
- PROCESSORS?=0
 @@ -49,13 +49,13 @@
  endif
  

diff --git a/dev-ada/xmlada/xmlada-2016.ebuild b/dev-ada/xmlada/xmlada-2016.ebuild
index a6cef15df53..793f92040c8 100644
--- a/dev-ada/xmlada/xmlada-2016.ebuild
+++ b/dev-ada/xmlada/xmlada-2016.ebuild
@@ -25,6 +25,10 @@ S="${WORKDIR}"/${MYP}-src
 
 PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
 
+src_configure () {
+	econf --prefix="${D}"/usr
+}
+
 src_compile () {
 	for kind in shared static static-pic; do
 		if use ${kind}; then

diff --git a/dev-ada/xmlada/xmlada-2016.ebuild b/dev-ada/xmlada/xmlada-9999.ebuild
similarity index 81%
copy from dev-ada/xmlada/xmlada-2016.ebuild
copy to dev-ada/xmlada/xmlada-9999.ebuild
index a6cef15df53..5c1f5b3d25b 100644
--- a/dev-ada/xmlada/xmlada-2016.ebuild
+++ b/dev-ada/xmlada/xmlada-9999.ebuild
@@ -3,17 +3,18 @@
 
 EAPI=6
 
-inherit multiprocessing
+inherit git-r3 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/57399978c7a447658e0affc0 -> ${MYP}-src.tar.gz"
+SRC_URI=""
+EGIT_REPO_URI="https://github.com/AdaCore/xmlada.git"
 
 LICENSE="GPL-3"
 SLOT="0"
-KEYWORDS="~amd64"
+KEYWORDS=""
 IUSE="+shared static static-pic"
 REQUIRED_USE="|| ( shared static static-pic )"
 
@@ -21,9 +22,11 @@ RDEPEND="dev-lang/gnat-gpl"
 DEPEND="${RDEPEND}
 	dev-ada/gprbuild"
 
-S="${WORKDIR}"/${MYP}-src
+PATCHES=( "${FILESDIR}"/${PN}-2016-gentoo.patch )
 
-PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
+src_configure () {
+	econf --prefix="${D}"/usr
+}
 
 src_compile () {
 	for kind in shared static static-pic; do


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-ada/xmlada/, dev-ada/xmlada/files/
@ 2017-12-04 20:49 Alfredo Tupone
  0 siblings, 0 replies; 9+ messages in thread
From: Alfredo Tupone @ 2017-12-04 20:49 UTC (permalink / raw
  To: gentoo-commits

commit:     98650a8ee260b20fd63b8d26dbf800226cc83280
Author:     Tupone Alfredo <tupone <AT> gentoo <DOT> org>
AuthorDate: Mon Dec  4 20:48:54 2017 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Mon Dec  4 20:48:54 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=98650a8e

dev-ada/xmlada: Providing test

Package-Manager: Portage-2.3.13, Repoman-2.3.3

 dev-ada/xmlada/files/xmlada-2016-gentoo.patch | 25 +++++++++++++++++++++-
 dev-ada/xmlada/files/xmlada-2017-gentoo.patch | 30 +++++++++++++++++++++++++++
 dev-ada/xmlada/xmlada-2016.ebuild             |  5 +++++
 dev-ada/xmlada/xmlada-2017.ebuild             |  7 +++++++
 4 files changed, 66 insertions(+), 1 deletion(-)

diff --git a/dev-ada/xmlada/files/xmlada-2016-gentoo.patch b/dev-ada/xmlada/files/xmlada-2016-gentoo.patch
index 7c28a02289f..a90b963edd3 100644
--- a/dev-ada/xmlada/files/xmlada-2016-gentoo.patch
+++ b/dev-ada/xmlada/files/xmlada-2016-gentoo.patch
@@ -1,6 +1,6 @@
 --- xmlada-2016-src/Makefile.in.old	2016-12-04 21:58:57.251338692 +0100
 +++ xmlada-2016-src/Makefile.in	2016-12-04 21:59:31.332755615 +0100
-@@ -49,13 +49,13 @@
+@@ -49,16 +49,17 @@
  endif
  
  static:
@@ -17,3 +17,26 @@
  
  # 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
+ 
+--- xmlada-gpl-2016-src/tests/Makefile.old	2017-12-04 21:15:16.330459020 +0100
++++ xmlada-gpl-2016-src/tests/Makefile	2017-12-04 21:15:33.176156634 +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/files/xmlada-2017-gentoo.patch b/dev-ada/xmlada/files/xmlada-2017-gentoo.patch
new file mode 100644
index 00000000000..9e79572e306
--- /dev/null
+++ b/dev-ada/xmlada/files/xmlada-2017-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/xmlada-2016.ebuild b/dev-ada/xmlada/xmlada-2016.ebuild
index a99eb9103ca..585a5492bb7 100644
--- a/dev-ada/xmlada/xmlada-2016.ebuild
+++ b/dev-ada/xmlada/xmlada-2016.ebuild
@@ -40,6 +40,11 @@ src_compile () {
 	done
 }
 
+src_test() {
+	emake test
+	emake run_test | grep DIFF && die
+}
+
 src_install () {
 	for kind in shared static static-pic; do
 		if use ${kind}; then

diff --git a/dev-ada/xmlada/xmlada-2017.ebuild b/dev-ada/xmlada/xmlada-2017.ebuild
index 4d5d16493c3..b80b4c4237f 100644
--- a/dev-ada/xmlada/xmlada-2017.ebuild
+++ b/dev-ada/xmlada/xmlada-2017.ebuild
@@ -26,6 +26,8 @@ DEPEND="${RDEPEND}
 
 S="${WORKDIR}"/${MYP}-src
 
+PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
+
 src_configure () {
 	econf --prefix="${D}"/usr
 }
@@ -45,6 +47,11 @@ src_compile () {
 	done
 }
 
+src_test() {
+	emake test
+	emake run_test | grep DIFF && die
+}
+
 src_install () {
 	for kind in shared static static-pic; do
 		if use ${kind}; then


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-ada/xmlada/, dev-ada/xmlada/files/
@ 2018-06-09 19:10 Alfredo Tupone
  0 siblings, 0 replies; 9+ messages in thread
From: Alfredo Tupone @ 2018-06-09 19:10 UTC (permalink / raw
  To: gentoo-commits

commit:     5dfb3b9f206cfc7a6cacaf4634845226cd34fec4
Author:     Tupone Alfredo <tupone <AT> gentoo <DOT> org>
AuthorDate: Sat Jun  9 19:09:40 2018 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Sat Jun  9 19:09:59 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5dfb3b9f

dev-ada/xmlada: Version bump to dev-ada/xmlada-2018

Package-Manager: Portage-2.3.24, Repoman-2.3.6

 dev-ada/xmlada/Manifest                       |  1 +
 dev-ada/xmlada/files/xmlada-2018-gentoo.patch | 30 +++++++++
 dev-ada/xmlada/metadata.xml                   |  1 +
 dev-ada/xmlada/xmlada-2018.ebuild             | 93 +++++++++++++++++++++++++++
 4 files changed, 125 insertions(+)

diff --git a/dev-ada/xmlada/Manifest b/dev-ada/xmlada/Manifest
index f2cfd0ebb37..90f31e2b4d0 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 00000000000..9e79572e306
--- /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 a31a912b005..22eacbe1615 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 00000000000..0696bbdadb1
--- /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
+}


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-ada/xmlada/, dev-ada/xmlada/files/
@ 2018-10-13  8:17 Alfredo Tupone
  0 siblings, 0 replies; 9+ messages in thread
From: Alfredo Tupone @ 2018-10-13  8:17 UTC (permalink / raw
  To: gentoo-commits

commit:     788636ed6201b3bc719c272dcc666964064543c6
Author:     Tupone Alfredo <tupone <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 13 08:17:06 2018 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Sat Oct 13 08:17:06 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=788636ed

dev-ada/xmlada: Remove duplicated file

Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>
Package-Manager: Portage-2.3.49, Repoman-2.3.11

 dev-ada/xmlada/files/xmlada-2018-gentoo.patch | 30 ---------------------------
 dev-ada/xmlada/xmlada-2018.ebuild             |  4 ++--
 2 files changed, 2 insertions(+), 32 deletions(-)

diff --git a/dev-ada/xmlada/files/xmlada-2018-gentoo.patch b/dev-ada/xmlada/files/xmlada-2018-gentoo.patch
deleted file mode 100644
index 9e79572e306..00000000000
--- a/dev-ada/xmlada/files/xmlada-2018-gentoo.patch
+++ /dev/null
@@ -1,30 +0,0 @@
---- 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/xmlada-2018.ebuild b/dev-ada/xmlada/xmlada-2018.ebuild
index 8d4099a1ce5..434c852375c 100644
--- a/dev-ada/xmlada/xmlada-2018.ebuild
+++ b/dev-ada/xmlada/xmlada-2018.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -27,7 +27,7 @@ DEPEND="${RDEPEND}
 
 S="${WORKDIR}"/${MYP}-src
 
-PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
+PATCHES=( "${FILESDIR}"/${PN}-2017-gentoo.patch )
 
 src_configure () {
 	econf --prefix="${D}"/usr


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-ada/xmlada/, dev-ada/xmlada/files/
@ 2018-11-07 20:06 Alfredo Tupone
  0 siblings, 0 replies; 9+ messages in thread
From: Alfredo Tupone @ 2018-11-07 20:06 UTC (permalink / raw
  To: gentoo-commits

commit:     62d470d8a567045d9032f5e698b4784b50866908
Author:     Tupone Alfredo <tupone <AT> gentoo <DOT> org>
AuthorDate: Wed Nov  7 20:05:55 2018 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Wed Nov  7 20:05:55 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=62d470d8

dev-ada/xmlada: Stabilize and remove old

Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11

 dev-ada/xmlada/Manifest                            |  1 -
 ...-2017-gentoo.patch => xmlada-2018-gentoo.patch} |  0
 dev-ada/xmlada/xmlada-2017.ebuild                  | 92 ----------------------
 dev-ada/xmlada/xmlada-2018.ebuild                  |  4 +-
 4 files changed, 2 insertions(+), 95 deletions(-)

diff --git a/dev-ada/xmlada/Manifest b/dev-ada/xmlada/Manifest
index 90f31e2b4d0..965ea031817 100644
--- a/dev-ada/xmlada/Manifest
+++ b/dev-ada/xmlada/Manifest
@@ -1,2 +1 @@
-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-2017-gentoo.patch b/dev-ada/xmlada/files/xmlada-2018-gentoo.patch
similarity index 100%
rename from dev-ada/xmlada/files/xmlada-2017-gentoo.patch
rename to dev-ada/xmlada/files/xmlada-2018-gentoo.patch

diff --git a/dev-ada/xmlada/xmlada-2017.ebuild b/dev-ada/xmlada/xmlada-2017.ebuild
deleted file mode 100644
index b3ee623ff92..00000000000
--- a/dev-ada/xmlada/xmlada-2017.ebuild
+++ /dev/null
@@ -1,92 +0,0 @@
-# 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 +shared static-libs static-pic"
-REQUIRED_USE="|| ( shared static-libs static-pic )
-	^^ ( gnat_2016 gnat_2017 )"
-
-RDEPEND="gnat_2016? ( dev-lang/gnat-gpl:4.9.4 )
-	gnat_2017? ( dev-lang/gnat-gpl:6.3.0 )"
-DEPEND="${RDEPEND}
-	dev-ada/gprbuild[gnat_2016=,gnat_2017=]"
-
-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
-}

diff --git a/dev-ada/xmlada/xmlada-2018.ebuild b/dev-ada/xmlada/xmlada-2018.ebuild
index 434c852375c..752a6a94d5a 100644
--- a/dev-ada/xmlada/xmlada-2018.ebuild
+++ b/dev-ada/xmlada/xmlada-2018.ebuild
@@ -14,7 +14,7 @@ SRC_URI="http://mirrors.cdn.adacore.com/art/591aeb88c7a4473fcbb154f8 ->
 
 LICENSE="GPL-3"
 SLOT="0"
-KEYWORDS="~amd64 ~x86"
+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 )"
@@ -27,7 +27,7 @@ DEPEND="${RDEPEND}
 
 S="${WORKDIR}"/${MYP}-src
 
-PATCHES=( "${FILESDIR}"/${PN}-2017-gentoo.patch )
+PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
 
 src_configure () {
 	econf --prefix="${D}"/usr


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-ada/xmlada/, dev-ada/xmlada/files/
@ 2022-12-03 21:51 Alfredo Tupone
  0 siblings, 0 replies; 9+ messages in thread
From: Alfredo Tupone @ 2022-12-03 21:51 UTC (permalink / raw
  To: gentoo-commits

commit:     7c49bfc413961d9bc642744cb531fbccea3c990b
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Sat Dec  3 21:50:27 2022 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Sat Dec  3 21:50:52 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7c49bfc4

dev-ada/xmlada: add 23.0.0

Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 dev-ada/xmlada/Manifest                         |  1 +
 dev-ada/xmlada/files/xmlada-23.0.0-gentoo.patch | 30 ++++++++
 dev-ada/xmlada/xmlada-23.0.0.ebuild             | 91 +++++++++++++++++++++++++
 3 files changed, 122 insertions(+)

diff --git a/dev-ada/xmlada/Manifest b/dev-ada/xmlada/Manifest
index 0440038ae5da..c19e64ea2727 100644
--- a/dev-ada/xmlada/Manifest
+++ b/dev-ada/xmlada/Manifest
@@ -1,2 +1,3 @@
 DIST xmlada-2021-20210518-19D50-src.tar.gz 1555951 BLAKE2B 589815d4781471a48d3bb4a12475762cb2ba8f885df8ea774f009c8be9ded41bccc414bb88a2b3d313701b0b2edefcd065fac8a13d208a7bb1679a3467a60c35 SHA512 e2fb1a87cb0cebae842f87412d0ccc8a18b20e5e2c4e3d9ad6ec3a6ae18e4e53c12efd9ea3f2515baa5bfec2b4ddee7808385cc471e3cca9b8c4be3d03093e85
 DIST xmlada-22.0.0.tar.gz 1022947 BLAKE2B cea409a45a3b0c8eba48f858278d4e7129eca2e77fa749f5a761e31a81834efba67223f07c99441a9673a8f6de9a608a12cf610225ca5aee7fbde0235d9af1d9 SHA512 7e8a0cab2f4c300fe3b0d31e00d17334e36798430e49868448caa696044964464f558cffba8f35e35a58b097c968322891119b2abd9f210737ca877f0189f32e
+DIST xmlada-23.0.0.tar.gz 1053370 BLAKE2B 4edf2244818d72d6fc760f60c8145f373e5445d1d245b20b605e21faa7eeefed7835db87c1fd1239008e75211a572294e1d8e35af16c2ba2631c02d1d3b6f52f SHA512 a0fb2a34ffb5edf408fbdc1a3d68511b5545a5ec8993251ba75d71dd2a197f14e187d08f8febd71cb23bbd694889a99941911386af8468c5eb3b11128555edcb

diff --git a/dev-ada/xmlada/files/xmlada-23.0.0-gentoo.patch b/dev-ada/xmlada/files/xmlada-23.0.0-gentoo.patch
new file mode 100644
index 000000000000..5bc00c6e5c69
--- /dev/null
+++ b/dev-ada/xmlada/files/xmlada-23.0.0-gentoo.patch
@@ -0,0 +1,30 @@
+--- a/Makefile.in	2017-12-04 20:09:23.730805855 +0100
++++ b/Makefile.in	2017-12-04 20:09:51.586331155 +0100
+@@ -79,7 +79,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 ${GPROPTS_EXTRA}
+ 
+ # Run the tests. This requires an install of XML/Ada first
+--- a/tests/Makefile	2017-12-04 21:38:29.722818904 +0100
++++ b/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 \
+@@ -81,6 +79,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/xmlada-23.0.0.ebuild b/dev-ada/xmlada/xmlada-23.0.0.ebuild
new file mode 100644
index 000000000000..72b36a303116
--- /dev/null
+++ b/dev-ada/xmlada/xmlada-23.0.0.ebuild
@@ -0,0 +1,91 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+ADA_COMPAT=( gnat_2021 gcc_12_2_0 )
+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}"/${P}-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 \
+	echo 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"
+	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
+}


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-ada/xmlada/, dev-ada/xmlada/files/
@ 2023-02-02  8:23 Alfredo Tupone
  0 siblings, 0 replies; 9+ messages in thread
From: Alfredo Tupone @ 2023-02-02  8:23 UTC (permalink / raw
  To: gentoo-commits

commit:     b9905ce787bc1ea8d6bcacc911f72722a21b319c
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Thu Feb  2 08:21:18 2023 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Thu Feb  2 08:22:40 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b9905ce7

dev-ada/xmlada: drop old

Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 dev-ada/xmlada/Manifest                       |  1 -
 dev-ada/xmlada/files/xmlada-2019-gentoo.patch | 30 ----------
 dev-ada/xmlada/xmlada-22.0.0.ebuild           | 86 ---------------------------
 dev-ada/xmlada/xmlada-23.0.0.ebuild           |  5 --
 4 files changed, 122 deletions(-)

diff --git a/dev-ada/xmlada/Manifest b/dev-ada/xmlada/Manifest
index 0ebf7605be8a..0073eda49418 100644
--- a/dev-ada/xmlada/Manifest
+++ b/dev-ada/xmlada/Manifest
@@ -1,2 +1 @@
-DIST xmlada-22.0.0.tar.gz 1022947 BLAKE2B cea409a45a3b0c8eba48f858278d4e7129eca2e77fa749f5a761e31a81834efba67223f07c99441a9673a8f6de9a608a12cf610225ca5aee7fbde0235d9af1d9 SHA512 7e8a0cab2f4c300fe3b0d31e00d17334e36798430e49868448caa696044964464f558cffba8f35e35a58b097c968322891119b2abd9f210737ca877f0189f32e
 DIST xmlada-23.0.0.tar.gz 1053370 BLAKE2B 4edf2244818d72d6fc760f60c8145f373e5445d1d245b20b605e21faa7eeefed7835db87c1fd1239008e75211a572294e1d8e35af16c2ba2631c02d1d3b6f52f SHA512 a0fb2a34ffb5edf408fbdc1a3d68511b5545a5ec8993251ba75d71dd2a197f14e187d08f8febd71cb23bbd694889a99941911386af8468c5eb3b11128555edcb

diff --git a/dev-ada/xmlada/files/xmlada-2019-gentoo.patch b/dev-ada/xmlada/files/xmlada-2019-gentoo.patch
deleted file mode 100644
index 901797ebfde0..000000000000
--- a/dev-ada/xmlada/files/xmlada-2019-gentoo.patch
+++ /dev/null
@@ -1,30 +0,0 @@
---- a/Makefile.in	2017-12-04 20:09:23.730805855 +0100
-+++ b/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
---- a/tests/Makefile	2017-12-04 21:38:29.722818904 +0100
-+++ b/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/xmlada-22.0.0.ebuild b/dev-ada/xmlada/xmlada-22.0.0.ebuild
deleted file mode 100644
index 91c12a5c5d1e..000000000000
--- a/dev-ada/xmlada/xmlada-22.0.0.ebuild
+++ /dev/null
@@ -1,86 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-ADA_COMPAT=( gnat_2021 gcc_12_2_0 )
-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}-2019-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
-}

diff --git a/dev-ada/xmlada/xmlada-23.0.0.ebuild b/dev-ada/xmlada/xmlada-23.0.0.ebuild
index 60a27cd43583..6b274fccb9df 100644
--- a/dev-ada/xmlada/xmlada-23.0.0.ebuild
+++ b/dev-ada/xmlada/xmlada-23.0.0.ebuild
@@ -44,11 +44,6 @@ src_compile() {
 
 src_test() {
 	GPR_PROJECT_PATH=schema:input_sources:dom:sax:unicode \
-	echo 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"
 	gprbuild -j$(makeopts_jobs) -m -p -v -XLIBRARY_TYPE=static \
 		-XBUILD=Production -XPROCESSORS=$(makeopts_jobs) xmlada.gpr \
 		-XTESTS_ACTIVATED=Only \


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-ada/xmlada/, dev-ada/xmlada/files/
@ 2024-03-01 18:47 Alfredo Tupone
  0 siblings, 0 replies; 9+ messages in thread
From: Alfredo Tupone @ 2024-03-01 18:47 UTC (permalink / raw
  To: gentoo-commits

commit:     709e2f500b58e15f386ba623ceb13c0a8c352888
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Fri Mar  1 18:46:40 2024 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Fri Mar  1 18:47:04 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=709e2f50

dev-ada/xmlada: add doc

Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 dev-ada/xmlada/files/xmlada-24.0.0-gentoo.patch    | 24 +++++++++++++++
 ...mlada-24.0.0.ebuild => xmlada-24.0.0-r1.ebuild} | 34 ++++++++++++++--------
 2 files changed, 46 insertions(+), 12 deletions(-)

diff --git a/dev-ada/xmlada/files/xmlada-24.0.0-gentoo.patch b/dev-ada/xmlada/files/xmlada-24.0.0-gentoo.patch
new file mode 100644
index 000000000000..5eb69f885285
--- /dev/null
+++ b/dev-ada/xmlada/files/xmlada-24.0.0-gentoo.patch
@@ -0,0 +1,24 @@
+--- a/input_sources/xmlada_input.gpr	2024-03-01 19:32:59.111253474 +0100
++++ b/input_sources/xmlada_input.gpr	2024-03-01 19:34:57.282827180 +0100
+@@ -39,13 +39,15 @@
+    package Ide      renames XmlAda_Shared.Ide;
+ 
+    package Install is
+-      for Artifacts ("share/doc/xmlada")
+-        use ("../docs/_build/html/*", "../docs/_build/latex/XMLAda.pdf");
++      for Artifacts ("share/doc/@PF@/html")
++        use ("../docs/_build/html/*");
++      for Artifacts ("share/doc/@PF@")
++        use ("../docs/_build/latex/XMLAda.pdf");
+       for Artifacts ("share/gpr") use ("../distrib/xmlada.gpr");
+-      for Artifacts ("share/examples/xmlada/dom") use ("../docs/dom/*");
+-      for Artifacts ("share/examples/xmlada/sax") use ("../docs/sax/*");
+-      for Artifacts ("share/examples/xmlada/schema") use ("../docs/schema/*");
+-      for Artifacts ("share/examples/xmlada/cross") use ("../docs/cross/*");
++      for Artifacts ("share/doc/@PF@/examples/dom") use ("../docs/dom/*");
++      for Artifacts ("share/doc/@PF@/examples/sax") use ("../docs/sax/*");
++      for Artifacts ("share/doc/@PF@/examples/schema") use ("../docs/schema/*");
++      for Artifacts ("share/doc/@PF@/examples/cross") use ("../docs/cross/*");
+    end Install;
+ 
+ end XmlAda_Input;

diff --git a/dev-ada/xmlada/xmlada-24.0.0.ebuild b/dev-ada/xmlada/xmlada-24.0.0-r1.ebuild
similarity index 74%
rename from dev-ada/xmlada/xmlada-24.0.0.ebuild
rename to dev-ada/xmlada/xmlada-24.0.0-r1.ebuild
index 8b34419b5baa..e3eaa6e988bb 100644
--- a/dev-ada/xmlada/xmlada-24.0.0.ebuild
+++ b/dev-ada/xmlada/xmlada-24.0.0-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -14,15 +14,30 @@ SRC_URI="https://github.com/AdaCore/${PN}/archive/refs/tags/v${PV}.tar.gz
 LICENSE="GPL-3"
 SLOT="0/${PV}"
 KEYWORDS="~amd64 ~x86"
-IUSE="+shared static-libs static-pic"
+IUSE="doc +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}]"
+BDEPEND="doc? (
+	dev-tex/latexmk
+	dev-python/sphinx
+)"
 
-PATCHES=( "${FILESDIR}"/${PN}-23.0.0-gentoo.patch )
+PATCHES=(
+	"${FILESDIR}"/${PN}-23.0.0-gentoo.patch
+	"${FILESDIR}"/${P}-gentoo.patch
+)
+
+src_prepare() {
+	default
+	sed -i \
+		-e "s|@PF@|${PF}|g" \
+		input_sources/xmlada_input.gpr \
+		|| die
+}
 
 src_compile() {
 	build () {
@@ -40,6 +55,10 @@ src_compile() {
 	if use static-pic; then
 		build static-pic
 	fi
+	if use doc; then
+		emake -C docs latexpdf
+		emake -C docs html
+	fi
 }
 
 src_test() {
@@ -74,13 +93,4 @@ src_install() {
 	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
 }


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-03-01 18:47 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-01 18:47 [gentoo-commits] repo/gentoo:master commit in: dev-ada/xmlada/, dev-ada/xmlada/files/ Alfredo Tupone
  -- strict thread matches above, loose matches on Subject: below --
2023-02-02  8:23 Alfredo Tupone
2022-12-03 21:51 Alfredo Tupone
2018-11-07 20:06 Alfredo Tupone
2018-10-13  8:17 Alfredo Tupone
2018-06-09 19:10 Alfredo Tupone
2017-12-04 20:49 Alfredo Tupone
2017-05-08 19:23 Alfredo Tupone
2017-03-26 20:03 Alfredo Tupone

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox