aboutsummaryrefslogtreecommitdiffstats
path: root/www/tdiary/Makefile
diff options
context:
space:
mode:
authortota <tota@FreeBSD.org>2014-04-26 18:06:08 +0800
committertota <tota@FreeBSD.org>2014-04-26 18:06:08 +0800
commit7bafd670a91c6ca6fea908d6bf6cd050872fcc44 (patch)
tree80ec5b156e24d4e0abaf334b77fc3b5038ef1c6f /www/tdiary/Makefile
parente00305cb09e3815a2a97222e2391f3e3f4a08b62 (diff)
downloadfreebsd-ports-gnome-7bafd670a91c6ca6fea908d6bf6cd050872fcc44.tar.gz
freebsd-ports-gnome-7bafd670a91c6ca6fea908d6bf6cd050872fcc44.tar.zst
freebsd-ports-gnome-7bafd670a91c6ca6fea908d6bf6cd050872fcc44.zip
- Update to 4.0.3
- Remove RUBY_REQUIRE - Unmute INSTALL_DATA, INSTALL_SCRIPT and TAR - Make DOCS unconditional to stage
Diffstat (limited to 'www/tdiary/Makefile')
-rw-r--r--www/tdiary/Makefile24
1 files changed, 10 insertions, 14 deletions
diff --git a/www/tdiary/Makefile b/www/tdiary/Makefile
index b1bc82c767ce..fa0f9d689dc6 100644
--- a/www/tdiary/Makefile
+++ b/www/tdiary/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= tdiary
-PORTVERSION= 4.0.2
+PORTVERSION= 4.0.3
CATEGORIES?= www ruby
MASTER_SITES= http://www.tdiary.org/download/
DISTNAME= ${PORTNAME}-full-v${PORTVERSION}
@@ -12,14 +12,13 @@ COMMENT= Web-based diary system (like weblog) written in Ruby
LICENSE= GPLv2
-RUN_DEPENDS= rubygem-fastimage>=1.5.0:${PORTSDIR}/graphics/rubygem-fastimage \
+RUN_DEPENDS= rubygem-fastimage>=1.6.0:${PORTSDIR}/graphics/rubygem-fastimage \
hikidoc:${PORTSDIR}/textproc/ruby-hikidoc \
- rubygem-multi_json>=1.7.7:${PORTSDIR}/devel/rubygem-multi_json \
+ rubygem-multi_json>=1.8.4:${PORTSDIR}/devel/rubygem-multi_json \
rubygem-rack>=0:${PORTSDIR}/www/rubygem-rack
NO_BUILD= yes
USE_RUBY= yes
-RUBY_REQUIRE= Ruby >= 193
RUBY_SHEBANG_FILES= index.fcgi \
index.rb \
@@ -60,8 +59,6 @@ REINPLACE_ARGS= -i ''
OPTIONS_DEFINE= DOCS
-.include <bsd.port.pre.mk>
-
pre-patch:
@${RM} ${WRKSRC}/.coveralls.yml
@${RM} ${WRKSRC}/.gitignore
@@ -72,8 +69,9 @@ pre-patch:
@${RM} ${WRKSRC}/Procfile
@${RM} ${WRKSRC}/Rakefile
@${RM} ${WRKSRC}/config.ru
- @${RM} -r ${WRKSRC}/.bundle
- @${RM} -r ${WRKSRC}/misc/lib/bundler-1.3.5
+ @${RM} ${WRKSRC}/tmp/.gitkeep
+ @${RM} -rf ${WRKSRC}/.bundle
+ @${RM} -r ${WRKSRC}/misc/lib/bundler-1.6.0.rc
@${RM} -r ${WRKSRC}/public
@${RM} -r ${WRKSRC}/spec
@${RM} -r ${WRKSRC}/test
@@ -91,21 +89,19 @@ pre-install:
@${REINPLACE_CMD} '/#!\/usr\/bin\/env ruby/d' ${WRKSRC}/misc/migrate.rb
do-install:
- @${INSTALL_SCRIPT} ${WRKDIR}/${TDIARY_SCRIPT} ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_SCRIPT} ${WRKDIR}/${TDIARY_SCRIPT} ${STAGEDIR}${PREFIX}/bin
@-${MKDIR} ${STAGEDIR}${WWWDIR}
- @${TAR} --exclude "doc" -C ${WRKSRC} -cf - . | ${TAR} --unlink -C ${STAGEDIR}${WWWDIR} -xf -
+ ${TAR} --exclude "doc" -C ${WRKSRC} -cf - . | ${TAR} --unlink -C ${STAGEDIR}${WWWDIR} -xf -
post-install:
@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}' >> ${TMPPLIST}
@${ECHO_CMD} bin/${TDIARY_SCRIPT} >> ${TMPPLIST}
-.if ${PORT_OPTIONS:MDOCS}
@${INSTALL} -d ${STAGEDIR}${DOCSDIR}
- @cd ${WRKSRC}/doc && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
-.endif
+ cd ${WRKSRC}/doc && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
@${CAT} ${PKGMESSAGE}
x-generate-plist: stage
${FIND} ${STAGEDIR}${WWWDIR} -type f -o -type l | ${SORT} | ${SED} -e 's,${STAGEDIR}${WWWDIR},%%WWWDIR%%,g' > pkg-plist.new
${FIND} ${STAGEDIR}${WWWDIR} -type d -depth | ${SORT} -r | ${SED} -e 's,${STAGEDIR}${WWWDIR},@dirrm %%WWWDIR%%,g' >> pkg-plist.new
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>