public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Alfredo Tupone" <tupone@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ada/xmlada/, dev-ada/xmlada/files/
Date: Fri,  1 Mar 2024 18:47:27 +0000 (UTC)	[thread overview]
Message-ID: <1709318824.709e2f500b58e15f386ba623ceb13c0a8c352888.tupone@gentoo> (raw)

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
 }


             reply	other threads:[~2024-03-01 18:47 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-01 18:47 Alfredo Tupone [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-02-02  8:23 [gentoo-commits] repo/gentoo:master commit in: dev-ada/xmlada/, dev-ada/xmlada/files/ 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1709318824.709e2f500b58e15f386ba623ceb13c0a8c352888.tupone@gentoo \
    --to=tupone@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox