misc/gimp-help-en: Update to 3.0.0

Instead of building with deprecated interfaces such as
textproc/py-libxml2 fetch Fedora's package instead. This also
significantly reduces download size and building times.
Unfortunately upstream only provides pre-packaged versions for
Windows and a non Linux/Unix-friendly installer.
This commit is contained in:
Daniel Engberg 2025-05-31 11:49:48 +02:00
parent 23c010b348
commit 47f2b5488a
2 changed files with 20 additions and 41 deletions

View File

@ -1,50 +1,29 @@
PORTNAME= gimp-help
DISTVERSION= 2.10.34
PORTREVISION?= 0
CATEGORIES?= misc graphics
MASTER_SITES= https://download.gimp.org/pub/%SUBDIR%/ \
https://ftp.gwdg.de/pub/misc/grafik/%SUBDIR%/ \
https://www.mirrorservice.org/sites/ftp.gimp.org/pub/%SUBDIR%/
MASTER_SITE_SUBDIR= gimp/help
PKGNAMEPREFIX?= ${DOCLANG}-
PKGNAMESUFFIX= -html
DISTVERSION= 3.0.0
CATEGORIES= misc graphics
MASTER_SITES= https://kojipkgs.fedoraproject.org/packages/gimp-help/${DISTVERSION}/1.fc43/noarch/
PKGNAMESUFFIX= -en
DISTNAME= ${PORTNAME}-${DISTVERSION}-1.fc43.noarch
EXTRACT_SUFX= .rpm
MAINTAINER?= ports@FreeBSD.org
COMMENT?= GIMP User Manual in English
MAINTAINER= ports@FreeBSD.org
COMMENT= GIMP User Manual in English
WWW= https://docs.gimp.org/
LICENSE= GFDL
BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/libxml2.py:textproc/py-libxml2@${PY_FLAVOR} \
${LOCALBASE}/share/xsl/docbook/xhtml/chunk.xsl:textproc/docbook-xsl
EXTRACT_AFTER_ARGS= --strip-components 7 \
--no-same-owner --no-same-permissions
USES= gettext-tools gmake gnome perl5 pkgconfig python:3.9+,build shebangfix \
tar:bzip2
USE_GNOME= intltool:build libxslt:build
USE_PERL5= build
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --without-gimp
CONFIGURE_ENV= ALL_LINGUAS="${DOCLANG}" QUICKREFERENCE_ALL_LINGUAS="${DOCLANG}"
DOCLANG?= en
NO_ARCH= yes
NO_BUILD= yes
NO_WRKSUBDIR= yes
DATADIR= ${DOCSDIR}
PORTDATA= *
DATADIR= ${PREFIX}/share/gimp
MAKE_JOBS_UNSAFE= yes
SHEBANG_FILES= tools/xml2po.py
OPTIONS_DEFINE= QUICKREFERENCE
OPTIONS_DEFAULT= QUICKREFERENCE
QUICKREFERENCE_DESC= Generate GIMP Quickreference PDF (keys bindings)
QUICKREFERENCE_USE= gnome=librsvg2:build
QUICKREFERENCE_CONFIGURE_OFF= ac_cv_path_SVG2PDF=
post-patch:
# Install to the same directory as when configuring --with-gimp
${REINPLACE_CMD} '/gimpdatadir=.*\/2.0/s,/2\.0,,' \
${WRKSRC}/configure
do-install:
${MKDIR} ${STAGEDIR}${DOCSDIR}/en
(cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}/en)
.include <bsd.port.mk>

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1714953538
SHA256 (gimp-help-2.10.34.tar.bz2) = cae0adea6ffe47776f42dfc3a38f35d28e31893004e01812117af6f7fc897dc8
SIZE (gimp-help-2.10.34.tar.bz2) = 165540436
TIMESTAMP = 1748684993
SHA256 (gimp-help-3.0.0-1.fc43.noarch.rpm) = 8881b2f3115e2ed06e81c44701ec7bcf69855de406bcfd88cb5347ddbba054ba
SIZE (gimp-help-3.0.0-1.fc43.noarch.rpm) = 50657359