commit: ee80206daf0ae326d37c7f458459db2b85857e25 Author: Sergey Torokhov <torokhov-s-a <AT> yandex <DOT> ru> AuthorDate: Tue Mar 18 19:08:59 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Tue Mar 18 19:22:31 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ee80206d
app-doc/gimp-help: 3.0.0 version bump Signed-off-by: Sergey Torokhov <torokhov-s-a <AT> yandex.ru> Closes: https://github.com/gentoo/gentoo/pull/41157 Signed-off-by: Sam James <sam <AT> gentoo.org> app-doc/gimp-help/Manifest | 1 + app-doc/gimp-help/gimp-help-3.0.0.ebuild | 81 ++++++++++++++++++++++++++++++++ 2 files changed, 82 insertions(+) diff --git a/app-doc/gimp-help/Manifest b/app-doc/gimp-help/Manifest index f364e53f8979..dff0b6f4f86d 100644 --- a/app-doc/gimp-help/Manifest +++ b/app-doc/gimp-help/Manifest @@ -1 +1,2 @@ DIST gimp-help-2.10.34.tar.bz2 165540436 BLAKE2B eff5afe87bbddf9166647424ef63399a4ebc4215980dddf42f949e18245c60d1095269592f5a314683f7e1d7b27e2b9130215bda5987e7c8dfcafb5cebb6abbc SHA512 316d558f66c96a0d2d0f17baf700020b76aa221f9e220ddfc3e85b10c82b20b9c1cf36893776a342e90af5170e0102eb743b79663451581444d4f881256cf377 +DIST gimp-help-3.0.0.tar.bz2 131572116 BLAKE2B 9cad6204ddbcb1d7931975e4610fa593b04607e9bece01ec4567e6b8d96389cc31fcd8cfeb231b494ededd3ff4e324e746fbcb1d745e7b89b7aa4fef0b134ef1 SHA512 4a240bfebb633c1603057474adeb2bf2e42fcc65f5c5b696e5202bad18940eba69b1b12f6493b470b6f402cee7d6dcbd23f83c9e2871f459a420b7c521a0bd6d diff --git a/app-doc/gimp-help/gimp-help-3.0.0.ebuild b/app-doc/gimp-help/gimp-help-3.0.0.ebuild new file mode 100644 index 000000000000..e79f95b0db14 --- /dev/null +++ b/app-doc/gimp-help/gimp-help-3.0.0.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..13} ) +inherit python-any-r1 + +DESCRIPTION="GNU Image Manipulation Program help files" +HOMEPAGE="https://docs.gimp.org/" +SRC_URI="mirror://gimp/help/${P}.tar.bz2" + +LICENSE="FDL-1.2+" +SLOT="2" +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="nls" + +BDEPEND=" + ${PYTHON_DEPS} + $(python_gen_any_dep 'dev-libs/libxml2[python,${PYTHON_USEDEP}]') + app-text/docbook-xml-dtd + dev-lang/perl + dev-libs/libxslt + gnome-base/librsvg + sys-devel/gettext +" + +DOCS=( AUTHORS COPYING NEWS README.md ) + +python_check_deps() { + python_has_version "dev-libs/libxml2[python,${PYTHON_USEDEP}]" +} + +pkg_setup() { + python-any-r1_pkg_setup + + # The upstream build system isn't pure gettext and doesn't distinguish + # between empty and unset LINGUAS. Default to English only if either + # nls is unset or if LINGUAS exists but is empty. #891709 + if ! use nls || [[ -v LINGUAS && -z ${LINGUAS} ]]; then + export LINGUAS="en" + elif [[ ! -v LINGUAS ]]; then + local line + while read line; do ewarn "${line}"; done <<-EOF + The "LINGUAS" variable is unset in your configuration, + but the "nls" USE flag is set. Therefore, documentation for + *all* languages will be built, which may take quite some time. + If you want to install documentation for a defined list + of languages, please assign "LINGUAS" accordingly. + The following languages are supported for ${CATEGORY}/${PN}: + "ca cs da de el en en_GB es fa fi fr hr hu it ja ko lt nl nn + pt pt_BR ro ru sl sv uk zh_CN" + If you want to install only the English documentation, it is + recommended to unset the "nls" USE flag for ${CATEGORY}/${PN}. + + For more details please read: + https://wiki.gentoo.org/wiki/Localization/Guide#LINGUAS + EOF + fi +} + +src_configure() { + econf --without-gimp +} + +src_compile() { + # See bug: 833566 + python_export_utf8_locale + # Affected with bugs: 677198, 876205. Set "emake -j1" + emake -j1 +} + +src_test() { + emake -j1 check +} + +src_install() { + # See bug: 905693 + emake -j1 DESTDIR="${D}" install + einstalldocs +}
