commit: 4607a9da4f21bb80d6cd78f32a50f15c2fb851ca Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org> AuthorDate: Tue Dec 31 12:14:30 2024 +0000 Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> CommitDate: Tue Dec 31 12:15:03 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4607a9da
dev-ada/xmlada: add epub and man Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org> ...mlada-25.0.0.ebuild => xmlada-25.0.0-r1.ebuild} | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/dev-ada/xmlada/xmlada-25.0.0.ebuild b/dev-ada/xmlada/xmlada-25.0.0-r1.ebuild similarity index 87% rename from dev-ada/xmlada/xmlada-25.0.0.ebuild rename to dev-ada/xmlada/xmlada-25.0.0-r1.ebuild index 9d20b93cb7e7..814d5b7e55ea 100644 --- a/dev-ada/xmlada/xmlada-25.0.0.ebuild +++ b/dev-ada/xmlada/xmlada-25.0.0-r1.ebuild @@ -14,18 +14,21 @@ SRC_URI="https://github.com/AdaCore/${PN}/archive/refs/tags/v${PV}.tar.gz LICENSE="GPL-3" SLOT="0/${PV}" KEYWORDS="~amd64 ~x86" -IUSE="doc +shared static-libs static-pic" +IUSE="doc man +shared static-libs static-pic" REQUIRED_USE="|| ( shared static-libs static-pic ) - ${ADA_REQUIRED_USE}" + ${ADA_REQUIRED_USE} + doc? ( man )" RDEPEND="${ADA_DEPS}" DEPEND="${RDEPEND} dev-ada/gprbuild[${ADA_USEDEP}]" BDEPEND="doc? ( dev-tex/latexmk + dev-texlive/texlive-latexextra +) +man? ( dev-python/sphinx dev-python/sphinx-rtd-theme - dev-texlive/texlive-latexextra )" PATCHES=( @@ -58,9 +61,11 @@ src_compile() { build static-pic fi if use doc; then - emake -C docs latexpdf emake -C docs html + emake -C docs epub + emake -C docs latexpdf fi + use man && emake -C docs man } src_test() { @@ -99,8 +104,11 @@ src_install() { if use static-pic; then build static-pic fi - + DOCS="AUTHORS README.md TODO xmlada-roadmap.txt" + if use doc; then + DOCS+=" docs/_build/epub/XMLAdatheXMLLibraryforAda.epub" + fi einstalldocs - dodoc xmlada-roadmap.txt - rm -rf "${D}"/usr/share/gpr/manifests + use man && doman docs/_build/man/xmlada.1 + rm -r "${D}"/usr/share/gpr/manifests }
