aboutsummaryrefslogtreecommitdiff
path: root/japanese/tdiary/Makefile
diff options
context:
space:
mode:
authorYoichi NAKAYAMA <yoichi@FreeBSD.org>2003-07-21 04:04:01 +0000
committerYoichi NAKAYAMA <yoichi@FreeBSD.org>2003-07-21 04:04:01 +0000
commit566334553923ec23d4ed566a5013d6e213048f15 (patch)
treec6c075e16762535c9988b5c1ad76d3d2e37ed74b /japanese/tdiary/Makefile
parent37edd4cb4d12d7e4201a0734902ac714e80f34a9 (diff)
downloadports-566334553923ec23d4ed566a5013d6e213048f15.tar.gz
ports-566334553923ec23d4ed566a5013d6e213048f15.zip
Notes
Diffstat (limited to 'japanese/tdiary/Makefile')
-rw-r--r--japanese/tdiary/Makefile65
1 files changed, 4 insertions, 61 deletions
diff --git a/japanese/tdiary/Makefile b/japanese/tdiary/Makefile
index ade269e999f2..2aad64ec4a90 100644
--- a/japanese/tdiary/Makefile
+++ b/japanese/tdiary/Makefile
@@ -5,68 +5,11 @@
# $FreeBSD$
#
-PORTNAME= tdiary
-PORTVERSION= 1.5.4
-PORTREVISION= 1
-CATEGORIES= japanese ruby www
-MASTER_SITES= \
- ${MASTER_SITE_SOURCEFORGE} \
- http://www.tdiary.org/download/
-MASTER_SITE_SUBDIR= sourceforge/${PORTNAME}
-DISTNAME= ${PORTNAME}-full-${PORTVERSION}
+CATEGORIES= japanese www ruby
MAINTAINER= jfkimura@yahoo.co.jp
-COMMENT= A Web-based diary system (like weblog) written in Ruby
-.if defined(WITH_TDIARY_UCONV)
-RUN_DEPENDS+= ${RUBY_SITEARCHLIBDIR}/uconv.so:${PORTSDIR}/japanese/ruby-uconv
-.endif
-.if defined(WITH_TDIARY_NORA)
-RUN_DEPENDS+= ${RUBY_SITEARCHLIBDIR}/web/escape_ext.so:${PORTSDIR}/www/ruby-nora
-.endif
+TDIARY_LANG= tdiary.conf-ja
+MASTERDIR?= ${.CURDIR}/../../www/tdiary
-NO_BUILD= yes
-USE_RUBY= yes
-
-TDIARYDIR= ${PREFIX}/share/examples/${PORTNAME}
-
-WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
-
-pre-everything::
- @${ECHO_MSG}
- @${ECHO_MSG} "============================================================="
- @${ECHO_MSG} "You may use the following options:"
- @${ECHO_MSG}
- @${ECHO_MSG} "WITH_TDIARY_UCONV=yes (with UTF-8 support : output_rdf.rb)"
- @${ECHO_MSG} "WITH_TDIARY_NORA=yes (with Referer header support : disp_referrer.rb)"
- @${ECHO_MSG}
- @${ECHO_MSG} "============================================================="
- @${ECHO_MSG}
-
-do-install:
- @if [ -d ${TDIARYDIR} ]; then ${RM} -rf ${TDIARYDIR}; fi
- ${MKDIR} ${TDIARYDIR}
- @${SED} -e 's,@@@@PREFIX@@@@,${PREFIX},g' \
- ${FILESDIR}/tdiary-FreeBSD.sh.in > ${TDIARYDIR}/tdiary-FreeBSD.sh
- @${CHMOD} ugo=rx ${TDIARYDIR}/tdiary-FreeBSD.sh
- ${CP} -pR ${WRKSRC}/ ${TDIARYDIR}
-.if defined(WITH_TDIARY_UCONV)
- ${INSTALL_DATA} ${WRKSRC}/misc/plugin/output_rdf.rb ${TDIARYDIR}/plugin
-.endif
-.if defined(WITH_TDIARY_NORA)
- ${INSTALL_DATA} ${WRKSRC}/misc/plugin/disp_referrer.rb ${TDIARYDIR}/plugin
-.endif
- @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${TDIARYDIR}
-
-post-install:
- @cd ${WRKSRC} && ${FIND} . -type f -o -type l | ${SED} -e 's,^\.,share/examples/${PORTNAME},' >> ${TMPPLIST}
-.if defined(WITH_TDIARY_UCONV)
- @${ECHO} 'share/examples/${PORTNAME}/plugin/output_rdf.rb' >> ${TMPPLIST}
-.endif
-.if defined(WITH_TDIARY_NORA)
- @${ECHO} 'share/examples/${PORTNAME}/plugin/disp_referrer.rb' >> ${TMPPLIST}
-.endif
- @cd ${WRKSRC} && ${FIND} . -type d -depth | ${SED} -e 's,^\.,@dirrm share/examples/${PORTNAME},' >> ${TMPPLIST}
- @${SED} -e "s,@@@@PREFIX@@@@,${PREFIX},g" ${PKGMESSAGE}
-
-.include <bsd.port.mk>
+.include "${MASTERDIR}/Makefile"