Date: Mon, 18 Jul 2005 20:26:49 +0800 (CST) From: chinsan <chinsan.tw@gmail.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/83663: [MAINTAINER UPDATE] www/dokuwiki: fix error of WIKI_LANG knob Message-ID: <20050718122649.306D47301F@chinsan.twbbs.org> Resent-Message-ID: <200507181230.j6ICUNBo013318@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 83663 >Category: ports >Synopsis: [MAINTAINER UPDATE] www/dokuwiki: fix error of WIKI_LANG knob >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Mon Jul 18 12:30:23 GMT 2005 >Closed-Date: >Last-Modified: >Originator: chinsan >Release: FreeBSD 5.4-STABLE i386 >Organization: FreeBSD Taiwan >Environment: System: FreeBSD chinsan.twbbs.org 5.4-STABLE FreeBSD 5.4-STABLE #0: Thu Jul 7 10:03:49 CST 2005 root@chinsan.twbbs.org:/usr/obj/usr/src/sys/GENERIC i386 >Description: The old way is replace all 'en' in dokuwiki.php, However it's incorrect. Thanks. >How-To-Repeat: >Fix: --- dokuwiki.diff begins here --- diff -ruN dokuwiki.orig/Makefile dokuwiki/Makefile --- dokuwiki.orig/Makefile Mon Jul 18 17:39:24 2005 +++ dokuwiki/Makefile Mon Jul 18 18:40:07 2005 @@ -7,6 +7,7 @@ PORTNAME= dokuwiki PORTVERSION= 20050713 +PORTREVISION= 1 CATEGORIES= www MASTER_SITES= http://www.splitbrain.org/Programming/PHP/DokuWiki/ DISTNAME= ${PORTNAME}-2005-07-13 @@ -20,7 +21,7 @@ PHP4_PORT?= www/mod_php4 NO_BUILD= YES WANT_PHP_WEB= YES -USE_REINPLACE=yes +USE_REINPLACE= YES pre-fetch: .if !defined(DOKUWIKI_DIR) @@ -83,7 +84,8 @@ pre-patch: .if defined(WIKI_LANG) - @${REINPLACE_CMD} -e 's|'en'|'${WIKI_LANG}'|g' ${WRKSRC}/conf/dokuwiki.php + @${REINPLACE_CMD} -e 's|lang\(.*\)'en'|lang\1'${WIKI_LANG}'|g' \ + ${WRKSRC}/conf/dokuwiki.php ${FIND} ${WRKSRC}/conf -name "*.php.bak" -delete .endif --- dokuwiki.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050718122649.306D47301F>