diff options
author | pav <pav@FreeBSD.org> | 2005-07-19 00:07:43 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2005-07-19 00:07:43 +0800 |
commit | 4881768e41a1781f1c74472bc228cf40a14c7e96 (patch) | |
tree | 3b8f8889b0086cbb0d072ff3f3bf284a01996b7b | |
parent | 04fb4b6794da4aa50daf3ac426a900b7a825267d (diff) | |
download | freebsd-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)
-rw-r--r-- | www/dokuwiki-devel/Makefile | 5 | ||||
-rw-r--r-- | www/dokuwiki/Makefile | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/www/dokuwiki-devel/Makefile b/www/dokuwiki-devel/Makefile index a4318cb7c4b7..a16c4ae345cc 100644 --- a/www/dokuwiki-devel/Makefile +++ b/www/dokuwiki-devel/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 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 |