diff options
author | chinsan <chinsan@FreeBSD.org> | 2006-11-27 11:18:13 +0800 |
---|---|---|
committer | chinsan <chinsan@FreeBSD.org> | 2006-11-27 11:18:13 +0800 |
commit | 42be7d8edf331a28180b7a5e3ff524fb55c9342f (patch) | |
tree | e52b3d896de39f7c02b15bc3ce60b96fb08bdc71 /www/dokuwiki/Makefile | |
parent | 1644fe652e2cc484fe02a84137fff5f7f0cd1908 (diff) | |
download | freebsd-ports-gnome-42be7d8edf331a28180b7a5e3ff524fb55c9342f.tar.gz freebsd-ports-gnome-42be7d8edf331a28180b7a5e3ff524fb55c9342f.tar.zst freebsd-ports-gnome-42be7d8edf331a28180b7a5e3ff524fb55c9342f.zip |
- Update to 2006-11-06
PR: ports/105693
Submitted by: Gustavo Fukao <gustavofukao _at_ gmail dot com>
Approved by: delphij (mentor)
Diffstat (limited to 'www/dokuwiki/Makefile')
-rw-r--r-- | www/dokuwiki/Makefile | 73 |
1 files changed, 10 insertions, 63 deletions
diff --git a/www/dokuwiki/Makefile b/www/dokuwiki/Makefile index 4605cdb780c8..2fc67b35fe8b 100644 --- a/www/dokuwiki/Makefile +++ b/www/dokuwiki/Makefile @@ -7,7 +7,6 @@ PORTNAME= dokuwiki PORTVERSION= ${DIST_VER:S/${PORTNAME}//:S/-//g} -PORTREVISION= 6 CATEGORIES= www MASTER_SITES= http://www.splitbrain.org/_media/projects/dokuwiki/ \ http://dev.splitbrain.org/browse/snapshots/ @@ -17,7 +16,7 @@ EXTRACT_SUFX= .tgz MAINTAINER= chinsan@FreeBSD.org COMMENT= A simple and easy to use wiki, no database required -DIST_VER= ${PORTNAME}-2006-03-09e +DIST_VER= ${PORTNAME}-2006-11-06 USE_PHP= gd mbstring pcre session xml zlib NO_BUILD= YES WANT_PHP_WEB= YES @@ -25,70 +24,18 @@ WANT_PHP_WEB= YES DOKUWIKI_DIR?= www/${PORTNAME} WRKSRC= ${WRKDIR}/${DIST_VER} PLIST_SUB= DOKUWIKI_DIR=${DOKUWIKI_DIR} - -.if defined(BATCH) -WIKI_LANG?= en -.endif +TEMP_PLIST= ${WRKDIR}/temp-pkg-plist .include <bsd.port.pre.mk> -pre-everything:: -.if !defined(WIKI_LANG) - @${ECHO_MSG} '*******************************************************' - @${ECHO_MSG} '* You can customize the wiki language by typing *' - @${ECHO_MSG} '* Use make-flag: *' - @${ECHO_MSG} '* - Arabic WIKI_LANG=ar *' - @${ECHO_MSG} '* - Basque WIKI_LANG=eu *' - @${ECHO_MSG} '* - Brazilian Portuguese WIKI_LANG=pt-br *' - @${ECHO_MSG} '* - Catalan WIKI_LANG=ca *' - @${ECHO_MSG} '* - Chinese(Simplified) WIKI_LANG=zh *' - @${ECHO_MSG} '* - Chinese(Traditional) WIKI_LANG=zh-tw *' - @${ECHO_MSG} '* - Czech WIKI_LANG=cs *' - @${ECHO_MSG} '* - Danish WIKI_LANG=da *' - @${ECHO_MSG} '* - Dutch WIKI_LANG=nl *' - @${ECHO_MSG} '* - English WIKI_LANG=en *' - @${ECHO_MSG} '* - Esperanto WIKI_LANG=eo *' - @${ECHO_MSG} '* - Estonian WIKI_LANG=et *' - @${ECHO_MSG} '* - Finnish WIKI_LANG=fi *' - @${ECHO_MSG} '* - French WIKI_LANG=fr *' - @${ECHO_MSG} '* - German WIKI_LANG=de *' - @${ECHO_MSG} '* - Hebrew WIKI_LANG=he *' - @${ECHO_MSG} '* - Hungarian WIKI_LANG=hu *' - @${ECHO_MSG} '* - Indonesian WIKI_LANG=id *' - @${ECHO_MSG} '* - Italian WIKI_LANG=it *' - @${ECHO_MSG} '* - Japanese WIKI_LANG=ja *' - @${ECHO_MSG} '* - Korean WIKI_LANG=ko *' - @${ECHO_MSG} '* - Latvian WIKI_LANG=lv *' - @${ECHO_MSG} '* - Lithuanian WIKI_LANG=lt *' - @${ECHO_MSG} '* - Norwegian WIKI_LANG=no *' - @${ECHO_MSG} '* - Polish WIKI_LANG=pl *' - @${ECHO_MSG} '* - Portuguese WIKI_LANG=pt *' - @${ECHO_MSG} '* - Romanian WIKI_LANG=ro *' - @${ECHO_MSG} '* - Russian WIKI_LANG=ru *' - @${ECHO_MSG} '* - Serbian WIKI_LANG=sr *' - @${ECHO_MSG} '* - Slovak WIKI_LANG=sk *' - @${ECHO_MSG} '* - Slovenian WIKI_LANG=sl *' - @${ECHO_MSG} '* - Spanish WIKI_LANG=es *' - @${ECHO_MSG} '* - Swedish WIKI_LANG=sv *' - @${ECHO_MSG} '* - Turkish WIKI_LANG=tr *' - @${ECHO_MSG} '* - Vietnamese WIKI_LANG=vi *' - @${ECHO_MSG} '* *' - @${ECHO_MSG} '* Example: "make WIKI_LANG=zh-tw install clean" *' - @${ECHO_MSG} '*******************************************************' -.endif - -pre-patch: -.if defined(WIKI_LANG) - @${REINPLACE_CMD} -e 's|lang\(.*\)'en'|lang\1'${WIKI_LANG}'|g' \ - ${WRKSRC}/conf/dokuwiki.php - @${FIND} ${WRKSRC}/conf -name "*.php.bak" -delete -.endif - -post-patch: - @${FIND} ${WRKSRC}/lib/exe -name "*.orig" -delete - -pre-install: - @${TOUCH} ${WRKSRC}/data/changes.log +# This target is only meant to be used by the port maintainer. +x-generate-plist: + @make makesum + @cd ${WRKSRC} && ${FIND} -s . -type f | \ + ${SED} -e 's|^./||;s|^|%%DOKUWIKI_DIR%%/|' > ${TEMP_PLIST} \ + && ${FIND} -d * -type d | \ + ${SED} -e 's|^|@dirrm %%DOKUWIKI_DIR%%/|' >> ${TEMP_PLIST} \ + && ${ECHO_CMD} "@dirrmtry %%DOKUWIKI_DIR%%" >> ${TEMP_PLIST} do-install: # Data files |