ports/179681: [Maintainer Update] graphics/gimp-help and subsidiary ports
RyoTa SimaMoto
liangtai.s4 at gmail.com
Tue Jun 18 12:20:00 UTC 2013
>Number: 179681
>Category: ports
>Synopsis: [Maintainer Update] graphics/gimp-help and subsidiary ports
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Tue Jun 18 12:20:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: RyoTa SimaMoto
>Release: 9-STABLE
>Organization:
>Environment:
FreeBSD takiba.fakenet 9.1-STABLE FreeBSD 9.1-STABLE #6 r251052M: Fri May 31 01:00:05 JST 2013 root at takiba.fakenet:/usr/obj/usr/src/sys/VAIO i386
>Description:
Update GIMP Documentation to 2.8 series for GIMP's context online manual system.
Remove chinese/gimp-help-zh_CN, french/gimp-help, german/gimp-help,
japanese/gimp-help, korean/gimp-help, misc/gimp-help-en, misc/gimp-help-es,
misc/gimp-help-it, misc/gimp-help-nl, misc/gimp-help-nn, misc/gimp-help-sv,
polish/gimp-help, and russian/gimp-help.
Change graphics/gimp-help that used to the meta-port to an actual port that
generates HTML documents from XML sources using GETTEXT on the languages
which the user selects.
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
Index: graphics/gimp-help/Makefile
===================================================================
--- graphics/gimp-help/Makefile (revision 321176)
+++ graphics/gimp-help/Makefile (working copy)
@@ -2,54 +2,69 @@
# $FreeBSD$
PORTNAME= gimp-help
-PORTVERSION= 2.6.1
-CATEGORIES= graphics
-MASTER_SITES= # empty
-PKGNAMESUFFIX= -html
-DISTFILES= # none
-EXTRACT_ONLY= # empty
+PORTVERSION= 2.8.0
+CATEGORIES= graphics gnome
+MASTER_SITES= ftp://ftp.gimp.org/pub/%SUBDIR%/ \
+ http://gimp.mirrors.hoobly.com/%SUBDIR%/ \
+ http://ftp.gwdg.de/pub/misc/grafik/gimp/%SUBDIR%/ \
+ http://www.mirrorservice.org/sites/ftp.gimp.org/pub/%SUBDIR%/ \
+ ${MASTER_SITE_RINGSERVER:S,%SUBDIR%,graphics/%SUBDIR%,}
+MASTER_SITE_SUBDIR= gimp/help/
MAINTAINER= liangtai.s4 at gmail.com
-COMMENT= The meta port for GIMP User Manual
+COMMENT= GIMP User Manual
LICENSE= GFDL
-.MAKE.FreeBSD_UL= yes
+BUILD_DEPENDS+= msgfmt:${PORTSDIR}/devel/gettext \
+ xsltproc:${PORTSDIR}/textproc/libxslt \
+ xmllint:${PORTSDIR}/textproc/libxml2
+# dblatex:${PORTSDIR}/textproc/dblatex \ # for build PDF
+# dot:${PORTSDIR}/graphics/graphviz \ # for build system devel. & debug
+# pngnq:${PORTSDIR}/graphics/pngnq \ # unused
+# pngcrush:${PORTSDIR}/graphics/pngcrush \ # unused
+#RUN_DEPENDS= gimp-2.8:${PORTSDIR}/graphics/gimp-app
-NO_BUILD= yes
+USES= pkgconfig
+USE_BZIP2= yes
+GNU_CONFIGURE= yes
+USE_GMAKE= yes
-LANG_ALL= de en es fr it ja ko nl nn pl ru sv zh_CN
+LANG_ALL= de el en en_GB es fr it ja nl nn ru
+LANG_ALMOST_UNTRANSLATED= da fi hr ko lt pl sl sv zh_CN
-de_PORT= german/gimp-help
-fr_PORT= french/gimp-help
-ja_PORT= japanese/gimp-help
-ko_PORT= korean/gimp-help
-pl_PORT= polish/gimp-help
-ru_PORT= russian/gimp-help
-zh_CN_PORT= chinese/gimp-help-zh_CN
-
# you can find more in ${PORTSDIR}/misc/kde4-l10n/files/kde4-lang-names
+da_NAME= Danish
de_NAME= German
+el_NAME= Greek
en_NAME= English
+en_GB_NAME= British English
es_NAME= Spanish
+fi_NAME= Finnish
fr_NAME= French
+hr_NAME= Croatian
it_NAME= Italian
ja_NAME= Japanese
ko_NAME= Korean
+lt_NAME= Lithuanian
nl_NAME= Dutch
nn_NAME= Norwegian Nynorsk
pl_NAME= Polish
ru_NAME= Russian
+sl_NAME= Slovenian
sv_NAME= Swedish
zh_CN_NAME= Chinese Simplified
+GIMPHELPDIR?= ${PREFIX}/share/gimp/help
+
.for lang in ${LANG_ALL}
-${lang}_DETECT?= ${LOCALBASE}/share/gimp/help/${lang}/index.html
+${lang}_DETECT?= ${GIMPHELPDIR}/${lang}/index.html
${lang}_PORT?= misc/gimp-help-${lang}
${lang}_NAME?= ${lang}
${lang:U}_DESC= ${${lang}_NAME}
.endfor
+.MAKE.FreeBSD_UL= yes
OPTIONS_DEFINE= ALL
OPTIONS_DEFAULT= ALL
ALL_DESC= All translations
@@ -61,11 +76,26 @@
.for lang in ${LANG_ALL}
.if ${PORT_OPTIONS:MALL} || ${PORT_OPTIONS:M${lang:U}}
-RUN_DEPENDS+= ${${lang}_DETECT}:${PORTSDIR}/${${lang}_PORT}
+TARGETLANGS+= ${lang}
.endif
.endfor
+do-build:
+.for lang in ${TARGETLANGS}
+ @cd ${WRKSRC} && ${GMAKE} html-${lang}
+.endfor
+
do-install:
- ${DO_NADA}
+ @${MKDIR} ${GIMPHELPDIR}
+.for lang in ${TARGETLANGS}
+ @(cd ${WRKSRC}/html ; tar cLf - ${lang}) | \
+ (cd ${GIMPHELPDIR} ; tar xvf -)
+.endfor
+ @${RM} -f ${WRKDIR}/PLIST.doc ; \
+ ${FIND} ${GIMPHELPDIR} -type f | ${SED} 's|${PREFIX}/||' \
+ >> ${WRKDIR}/PLIST.doc ; \
+ ${FIND} ${GIMPHELPDIR} -type d | ${SED} 's|${PREFIX}/|@dirrm |' \
+ | ${SORT} -r >> ${WRKDIR}/PLIST.doc ; \
+ cd ${WRKDIR} ; ${SED} -i -e '/PLIST.doc/ r PLIST.doc' ${TMPPLIST}
.include <bsd.port.mk>
Index: graphics/gimp-help/distinfo
===================================================================
--- graphics/gimp-help/distinfo (revision 0)
+++ graphics/gimp-help/distinfo (working copy)
@@ -0,0 +1,2 @@
+SHA256 (gimp-help-2.8.0.tar.bz2) = 34385b13eeacb8d6672f3e19444c3270dd55aad4ac2b2e2f613e7e0d3dd407df
+SIZE (gimp-help-2.8.0.tar.bz2) = 132408834
Index: graphics/gimp-help/pkg-descr
===================================================================
--- graphics/gimp-help/pkg-descr (revision 321176)
+++ graphics/gimp-help/pkg-descr (working copy)
@@ -1,5 +1,6 @@
-The meta port for GIMP User Manual. The GIMP User Manual is distributed
-as a set of HTML pages for use with the internal GIMP help browser
-or any web browser.
+GIMP-Help is a help system designed for use with the internal
+GIMP help browser, external web browser and HTML renderers, and
+human eyeballs. Docbook is used to create a highly customizable
+system for all needs.
-WWW: http://docs.gimp.org
+WWW: http://docs.gimp.org
Index: graphics/gimp-help/pkg-plist
===================================================================
--- graphics/gimp-help/pkg-plist (revision 0)
+++ graphics/gimp-help/pkg-plist (working copy)
@@ -0,0 +1 @@
+ at comment Insert PLIST.doc here
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list