aboutsummaryrefslogtreecommitdiffstats
path: root/www/dokuwiki
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2005-07-19 00:07:43 +0800
committerpav <pav@FreeBSD.org>2005-07-19 00:07:43 +0800
commit4881768e41a1781f1c74472bc228cf40a14c7e96 (patch)
tree3b8f8889b0086cbb0d072ff3f3bf284a01996b7b /www/dokuwiki
parent04fb4b6794da4aa50daf3ac426a900b7a825267d (diff)
downloadfreebsd-ports-gnome-4881768e41a1781f1c74472bc228cf40a14c7e96.tar.gz
freebsd-ports-gnome-4881768e41a1781f1c74472bc228cf40a14c7e96.tar.zst
freebsd-ports-gnome-4881768e41a1781f1c74472bc228cf40a14c7e96.zip
- Fix WITH_LANG knob
PR: ports/83663 Submitted by: chinsan <chinsan.tw@gmail.com> (maintainer)
Diffstat (limited to 'www/dokuwiki')
-rw-r--r--www/dokuwiki/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/www/dokuwiki/Makefile b/www/dokuwiki/Makefile
index a4318cb7c4b7..a16c4ae345cc 100644
--- a/www/dokuwiki/Makefile
+++ b/www/dokuwiki/Makefile
@@ -20,7 +20,7 @@ USE_PHP= gd pcre session xml zlib
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 +83,8 @@ pre-everything::
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