diff options
author | Aaron W. Swenson <titanofold@gentoo.org> | 2023-06-20 06:36:42 -0400 |
---|---|---|
committer | Aaron W. Swenson <titanofold@gentoo.org> | 2023-06-20 06:36:42 -0400 |
commit | 4ae248b45caa193662da496c3fbedf2521097114 (patch) | |
tree | ca9ff50f1aa541a4a4819eeb132712b0510bda1d /app-doc | |
parent | net-vpn/openvpn: dekeyword *-linux (diff) | |
download | gentoo-4ae248b45caa193662da496c3fbedf2521097114.tar.gz gentoo-4ae248b45caa193662da496c3fbedf2521097114.tar.bz2 gentoo-4ae248b45caa193662da496c3fbedf2521097114.zip |
app-doc/gnucash-docs: add 5.1
Bug: https://bugs.gentoo.org/908563
Signed-off-by: Aaron W. Swenson <titanofold@gentoo.org>
Diffstat (limited to 'app-doc')
-rw-r--r-- | app-doc/gnucash-docs/Manifest | 1 | ||||
-rw-r--r-- | app-doc/gnucash-docs/files/gnucash-docs-5.1-partially-revert-kde-help-dir.patch | 33 | ||||
-rw-r--r-- | app-doc/gnucash-docs/gnucash-docs-5.1.ebuild | 72 |
3 files changed, 106 insertions, 0 deletions
diff --git a/app-doc/gnucash-docs/Manifest b/app-doc/gnucash-docs/Manifest index 41007c9966b0..6d9e4fe95294 100644 --- a/app-doc/gnucash-docs/Manifest +++ b/app-doc/gnucash-docs/Manifest @@ -1 +1,2 @@ DIST gnucash-docs-4.13.tar.gz 76306335 BLAKE2B 61944e3da12d4f7b4a26f1301e640deca87656c4a9c7cd935f4c52ae69e49bf746850f09513d8fbd92314827f683c3a9c83c59479d583c192d977afdf9d8fce4 SHA512 7081a84c3426ef84e88aef520458a0d06382853cb9a51880766033b655f873d0926848387d573a38eca82cf0c6bceecdbd56704ab9ecb3068c78d7ce5c8d4da0 +DIST gnucash-docs-5.1.tar.gz 76533404 BLAKE2B 6601548123b6c1bdb3f04f54a5a598eb12ca803b604c02357a4126a52ce2d39f4f44b3cc35eb874590898b0792a99190d8ddca795bd45457c9ee565b95405b39 SHA512 6976964c4163987c867142bbf5c23ebf05585a73bd78926e35983602cf0caa024e5e334c19603a568e3fc5cd1e2f6b96e61ca888d5c6679b76f764429b8acdd1 diff --git a/app-doc/gnucash-docs/files/gnucash-docs-5.1-partially-revert-kde-help-dir.patch b/app-doc/gnucash-docs/files/gnucash-docs-5.1-partially-revert-kde-help-dir.patch new file mode 100644 index 000000000000..3df07bf74cb3 --- /dev/null +++ b/app-doc/gnucash-docs/files/gnucash-docs-5.1-partially-revert-kde-help-dir.patch @@ -0,0 +1,33 @@ +From b3ee1bea524db8bffab9de7f2ae20193fc093c80 Mon Sep 17 00:00:00 2001 +From: Guido Falsi <madpilot@FreeBSD.org> +Date: Mon, 19 Dec 2022 09:44:49 +0100 +Subject: finance/gnucash-docs: Update to 4.13 + +- Partly revert upstream commit 513747413e which causes build to fail. + +--- a/cmake/AddXdgHelpTarget.cmake.orig 2022-12-17 21:04:07 UTC ++++ b/cmake/AddXdgHelpTarget.cmake +@@ -44,8 +44,8 @@ function (add_xdghelp_target docname lang entities fig + COMMAND ${CMAKE_COMMAND} -E make_directory "${BUILD_DIR}/figures" + + # Add links to make our documentation visible for KDE's help system +- COMMAND ${CMAKE_COMMAND} -E make_directory "${BUILD_DIR_KDE_BASE}" +- COMMAND ${CMAKE_COMMAND} -E create_symlink "${BUILD_DIR_BASE}" "${BUILD_DIR_KDE_BASE}/${kde_lang}" ++ # COMMAND ${CMAKE_COMMAND} -E make_directory "${BUILD_DIR_KDE_BASE}" ++ # COMMAND ${CMAKE_COMMAND} -E create_symlink "${BUILD_DIR_BASE}" "${BUILD_DIR_KDE_BASE}/${kde_lang}" + COMMAND touch "${CMAKE_CURRENT_BINARY_DIR}/xdghelptrigger") + + +@@ -90,8 +90,8 @@ function (add_xdghelp_target docname lang entities fig + + # Add links to make our documentation visible for KDE's help system + set(doc_install_dir_kde_base "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATADIR}/doc/HTML") +- install(CODE "execute_process (COMMAND ${CMAKE_COMMAND} -E make_directory \"${doc_install_dir_kde_base}\")" +- COMPONENT "xdghelp") +- install(CODE "execute_process (COMMAND ${CMAKE_COMMAND} -E create_symlink \"../../../${doc_install_dir_base}\" \"${doc_install_dir_kde_base}/${kde_lang}\")" +- COMPONENT "xdghelp") ++ # install(CODE "execute_process (COMMAND ${CMAKE_COMMAND} -E make_directory \"${doc_install_dir_kde_base}\")" ++ # COMPONENT "xdghelp") ++ # install(CODE "execute_process (COMMAND ${CMAKE_COMMAND} -E create_symlink \"../../../${doc_install_dir_base}\" \"${doc_install_dir_kde_base}/${kde_lang}\")" ++ # COMPONENT "xdghelp") + endfunction() diff --git a/app-doc/gnucash-docs/gnucash-docs-5.1.ebuild b/app-doc/gnucash-docs/gnucash-docs-5.1.ebuild new file mode 100644 index 000000000000..99767b336bff --- /dev/null +++ b/app-doc/gnucash-docs/gnucash-docs-5.1.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# Please bump with app-office/gnucash + +CMAKE_MAKEFILE_GENERATOR=emake +inherit cmake optfeature + +DESCRIPTION="Documentation package for GnuCash" +HOMEPAGE="https://www.gnucash.org/" +SRC_URI="https://github.com/Gnucash/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2 FDL-1.1" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~ppc ~ppc64 ~riscv ~x86" +LOCALES=( de it ja pt ) +IUSE="${LOCALES[*]/#/l10n_}" + +BDEPEND=" + app-text/docbook-xml-dtd:4.5 + app-text/docbook-xsl-stylesheets + dev-libs/libxml2 + dev-libs/libxslt +" + +src_prepare() { + eapply "${FILESDIR}/${P}-partially-revert-kde-help-dir.patch" + cmake_src_prepare +} + +src_compile() { + cmake_src_compile -j1 +} + +src_install() { + local doc_type my_lang + + for doc_type in manual guide; do + for my_lang in C ${L10N}; do + [[ -z ${my_lang} ]] && continue + + case "${my_lang}" in + # Both help and guides translated + C|de|it|pt) ;; + ja|ru) # Only guides translated + if [[ "${doc_type}" == "manual" ]] ; then + elog "Help documentation hasn't been translated for ${my_lang}" + elog "Will do English instead." + continue + fi + ;; + *) + die "Invalid locale: ${my_lang}" + ;; + esac + + emake \ + -C "${BUILD_DIR}/${my_lang}/${doc_type}" \ + DESTDIR="${D}" \ + install + done + done + + einstalldocs +} + +pkg_postinst() { + optfeature "generating PDF files" dev-java/fop + optfeature "viewing the docs" gnome-extra/yelp +} |