head	1.40;
access;
symbols
	RELEASE_8_3_0:1.34
	RELEASE_9_0_0:1.32
	RELEASE_7_4_0:1.28
	RELEASE_8_2_0:1.28
	RELEASE_6_EOL:1.28
	RELEASE_8_1_0:1.25
	RELEASE_7_3_0:1.24
	RELEASE_8_0_0:1.24
	RELEASE_7_2_0:1.22
	RELEASE_7_1_0:1.22
	RELEASE_6_4_0:1.22
	RELEASE_5_EOL:1.22
	RELEASE_7_0_0:1.20
	RELEASE_6_3_0:1.20
	PRE_XORG_7:1.20
	RELEASE_4_EOL:1.20
	RELEASE_6_2_0:1.18
	RELEASE_6_1_0:1.17
	RELEASE_5_5_0:1.17
	RELEASE_6_0_0:1.16
	RELEASE_5_4_0:1.13
	RELEASE_4_11_0:1.13
	RELEASE_5_3_0:1.13
	RELEASE_4_10_0:1.11
	RELEASE_5_2_1:1.8
	RELEASE_5_2_0:1.8
	RELEASE_4_9_0:1.5;
locks; strict;
comment	@# @;


1.40
date	2013.01.29.13.41.55;	author svnexp;	state Exp;
branches;
next	1.39;

1.39
date	2013.01.14.05.41.38;	author svnexp;	state Exp;
branches;
next	1.38;

1.38
date	2012.11.17.06.03.06;	author svnexp;	state Exp;
branches;
next	1.37;

1.37
date	2012.11.06.17.37.17;	author tota;	state Exp;
branches;
next	1.36;

1.36
date	2012.07.31.20.59.44;	author tota;	state Exp;
branches;
next	1.35;

1.35
date	2012.05.30.14.33.45;	author tota;	state Exp;
branches;
next	1.34;

1.34
date	2012.02.18.22.11.47;	author tota;	state Exp;
branches;
next	1.33;

1.33
date	2012.02.04.01.59.32;	author tota;	state Exp;
branches;
next	1.32;

1.32
date	2011.11.05.00.58.26;	author tota;	state Exp;
branches;
next	1.31;

1.31
date	2011.10.29.16.09.56;	author tota;	state Exp;
branches;
next	1.30;

1.30
date	2011.08.03.21.17.38;	author tota;	state Exp;
branches;
next	1.29;

1.29
date	2011.04.30.06.12.06;	author tota;	state Exp;
branches;
next	1.28;

1.28
date	2010.11.13.13.10.07;	author tota;	state Exp;
branches;
next	1.27;

1.27
date	2010.09.20.12.08.31;	author tota;	state Exp;
branches;
next	1.26;

1.26
date	2010.09.12.02.40.33;	author tota;	state Exp;
branches;
next	1.25;

1.25
date	2010.03.25.13.31.04;	author tota;	state Exp;
branches;
next	1.24;

1.24
date	2009.09.12.03.14.58;	author tota;	state Exp;
branches;
next	1.23;

1.23
date	2009.08.22.00.38.27;	author amdmi3;	state Exp;
branches;
next	1.22;

1.22
date	2008.03.04.18.41.27;	author beech;	state Exp;
branches;
next	1.21;

1.21
date	2008.01.03.02.33.24;	author beech;	state Exp;
branches;
next	1.20;

1.20
date	2006.12.14.11.06.41;	author miwi;	state Exp;
branches;
next	1.19;

1.19
date	2006.12.02.16.45.03;	author miwi;	state Exp;
branches;
next	1.18;

1.18
date	2006.09.19.15.18.06;	author garga;	state Exp;
branches;
next	1.17;

1.17
date	2005.09.15.20.42.55;	author pav;	state Exp;
branches;
next	1.16;

1.16
date	2005.07.25.14.31.40;	author vs;	state Exp;
branches;
next	1.15;

1.15
date	2005.07.21.09.38.49;	author pav;	state Exp;
branches;
next	1.14;

1.14
date	2005.04.13.07.43.36;	author vs;	state Exp;
branches;
next	1.13;

1.13
date	2004.06.27.14.24.48;	author pav;	state Exp;
branches;
next	1.12;

1.12
date	2004.05.06.13.13.10;	author pav;	state Exp;
branches;
next	1.11;

1.11
date	2004.03.01.17.01.10;	author pav;	state Exp;
branches;
next	1.10;

1.10
date	2003.12.13.13.09.36;	author kuriyama;	state Exp;
branches;
next	1.9;

1.9
date	2003.12.09.02.48.11;	author linimon;	state Exp;
branches;
next	1.8;

1.8
date	2003.11.15.09.19.23;	author knu;	state Exp;
branches;
next	1.7;

1.7
date	2003.11.09.12.59.57;	author jeh;	state Exp;
branches;
next	1.6;

1.6
date	2003.11.02.04.02.07;	author marcus;	state Exp;
branches;
next	1.5;

1.5
date	2003.08.10.01.45.07;	author leeym;	state Exp;
branches;
next	1.4;

1.4
date	2003.07.29.05.53.24;	author daichi;	state Exp;
branches;
next	1.3;

1.3
date	2003.07.21.04.04.01;	author yoichi;	state Exp;
branches;
next	1.2;

1.2
date	2003.06.17.13.20.23;	author daichi;	state Exp;
branches;
next	1.1;

1.1
date	2003.06.01.13.59.06;	author yoichi;	state Exp;
branches;
next	;


desc
@@


1.40
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/311161
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@# Created by: Fumihiko Kimura <jfkimura@@yahoo.co.jp>
# $FreeBSD: head/www/tdiary/Makefile 311161 2013-01-29 13:18:15Z tota $

PORTNAME=	tdiary
PORTVERSION=	3.2.1
CATEGORIES?=	www ruby
MASTER_SITES=	http://www.tdiary.org/download/ \
		SF/${PORTNAME}/${PORTNAME}/
DISTNAME=	${PORTNAME}-full-${PORTVERSION}

MAINTAINER=	tota@@FreeBSD.org
COMMENT=	A Web-based diary system (like weblog) written in Ruby

LICENSE=	GPLv2

RUN_DEPENDS=	hikidoc:${PORTSDIR}/textproc/ruby-hikidoc \
		rubygem-imagesize>=0.1.1:${PORTSDIR}/graphics/rubygem-imagesize

NO_BUILD=	yes
USE_RUBY=	yes
RUBY_REQUIRE=	Ruby >= 185

RUBY_SHEBANG_FILES=	index.fcgi \
			index.rb \
			update.fcgi \
			update.rb \
			misc/convert2.rb \
			misc/migrate.rb \
			misc/plugin/amazon/amazonimg.rb \
			misc/plugin/squeeze.rb \
			misc/plugin/xmlrpc/xmlrpc.rb

HTML=	HOWTO-authenticate-in-rack.html HOWTO-make-io.html \
	HOWTO-make-plugin.html HOWTO-make-theme.html \
	HOWTO-testing-tDiary.html HOWTO-use-plugin.html \
	HOWTO-write-tDiary.en.html HOWTO-write-tDiary.html \
	INSTALL-paas.html INSTALL.html README.en.html \
	README.html UPGRADE.html
MD=	HOWTO-authenticate-in-rack.md HOWTO-make-io.md \
	HOWTO-make-plugin.md HOWTO-make-theme.md \
	HOWTO-testing-tDiary.md HOWTO-use-plugin.md \
	HOWTO-write-tDiary.en.md HOWTO-write-tDiary.md \
	INSTALL-paas.md INSTALL.md README.en.md \
	README.md UPGRADE.md
PORTDOCS=	ChangeLog LICENSE doc.css ${HTML} ${MD}

SUB_FILES=	pkg-message tdiaryinst.rb
SUB_LIST+=	TDIARY_LANG=${TDIARY_LANG} \
		TDIARY_SCRIPT=${TDIARY_SCRIPT}
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
DOCSDIR=	${PREFIX}/share/doc/${UNIQUENAME}
WWWDIR=		${PREFIX}/www/${UNIQUENAME}

TDIARY_SCRIPT=	${UNIQUENAME}-inst.rb

#TDIARY_LANG	ja:Japanese en:English
.if !defined(TDIARY_LANG) || ( defined(TDIARY_LANG) && ${TDIARY_LANG} != ja )
TDIARY_LANG=	en
.endif

REINPLACE_ARGS=	-i ''

OPTIONS_DEFINE=	DOCS NORA
OPTIONS_DEFAULT=	NORA

NORA_DESC=	Use Nora

.include <bsd.port.options.mk>

pre-patch:
	@@${RM} ${WRKSRC}/.gitignore
	@@${RM} ${WRKSRC}/.travis.yml
	@@${RM} ${WRKSRC}/Capfile
	@@${RM} ${WRKSRC}/Gemfile
	@@${RM} ${WRKSRC}/Gemfile.lock
	@@${RM} ${WRKSRC}/Procfile
	@@${RM} ${WRKSRC}/Rakefile
	@@${RM} ${WRKSRC}/config.ru
	@@${RM} -r ${WRKSRC}/public
	@@${RM} -r ${WRKSRC}/spec
	@@${RM} -r ${WRKSRC}/test
	@@${RM} -r ${WRKSRC}/vendor/hikidoc-0.0.6
	@@${RM} -r ${WRKSRC}/vendor/imagesize-0.1.1/*
	@@${RM} -r ${WRKSRC}/vendor/rdtool-0.6.38
	@@${MV} ${WRKSRC}/ChangeLog ${WRKSRC}/doc
	@@${MV} ${WRKSRC}/LICENSE ${WRKSRC}/doc
	@@${MV} ${WRKSRC}/README.md ${WRKSRC}/doc

post-patch:
	@@${RUBY} -i -pe "sub %r|((\s*)require 'json')|, %Q|\\\2require 'rubygems'\n\\\1|" ${WRKSRC}/tdiary.rb

pre-install:
	@@${SED} -e 's,#!/usr/bin/env ruby,#!${RUBY},' \
		${WRKDIR}/tdiaryinst.rb > ${WRKDIR}/${TDIARY_SCRIPT}
	@@${REINPLACE_CMD} '/#!\/usr\/bin\/env ruby/d' ${WRKSRC}/misc/convert2.rb
	@@${REINPLACE_CMD} '/#!\/usr\/bin\/env ruby/d' ${WRKSRC}/misc/migrate.rb

do-install:
	@@${INSTALL_SCRIPT} ${WRKDIR}/${TDIARY_SCRIPT} ${PREFIX}/bin
	@@-${MKDIR} ${WWWDIR}
	@@${TAR} --exclude "doc" -C ${WRKSRC} -cf - . | ${TAR} --unlink -C ${WWWDIR} -xf -
	@@${LN} -sf ${LOCALBASE}/lib/ruby/gems/${RUBY_VER}/gems/imagesize-0.1.1/lib ${WWWDIR}/vendor/imagesize-0.1.1/lib
	@@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}

post-install:
	@@${ECHO_CMD} '@@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}' >> ${TMPPLIST}
	@@${ECHO_CMD} bin/${TDIARY_SCRIPT} >> ${TMPPLIST}
.if ${PORT_OPTIONS:MDOCS}
	@@${INSTALL} -d ${DOCSDIR}
	@@cd ${WRKSRC}/doc && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif
	@@${CAT} ${PKGMESSAGE}

x-generate-plist:
	${FIND} ${WWWDIR} -type f -o -type l | ${SORT} | ${SED} -e 's,${WWWDIR},%%WWWDIR%%,g' > pkg-plist.new
	${FIND} ${WWWDIR} -type d -depth | ${SORT} -r | ${SED} -e 's,${WWWDIR},@@dirrm %%WWWDIR%%,g' >> pkg-plist.new

.include <bsd.port.pre.mk>

.if ${RUBY_VER} == 1.9
.if !defined(RUBY_PROVIDED)
IGNORE=	requires Ruby 1.9.1 or later
.endif
.endif

.if ${RUBY_VER} == 1.8
.if !defined(RUBY_PROVIDED)
IGNORE=	requires Ruby 1.8.5 or later
.endif
RUN_DEPENDS+=	${DEPEND_RUBY_ICONV}
.if ${PORT_OPTIONS:MNORA}
RUN_DEPENDS+=	${RUBY_SITEARCHLIBDIR}/web/escape_ext.so:${PORTSDIR}/www/ruby-nora
.endif
.endif

.include <bsd.port.post.mk>
@


1.39
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/310359
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d2 1
a2 1
# $FreeBSD: head/www/tdiary/Makefile 310359 2013-01-14 05:02:10Z tota $
d5 1
a5 1
PORTVERSION=	3.2.0
d7 2
a8 2
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/ \
		http://www.tdiary.org/download/
d31 1
a31 2
			misc/plugin/xmlrpc/xmlrpc.rb \
			misc/standalone_cgi/bin/server
a78 1
	@@${RM} -r ${WRKSRC}/.bundle
d84 1
a84 1
	@@${RM} -r ${WRKSRC}/vendor/rdtool-0.6.37
d89 3
@


1.38
log
@Switch exporter over
@
text
@d2 1
a2 1
# $FreeBSD: head/www/tdiary/Makefile 307084 2012-11-06 17:37:17Z tota $
d64 2
a65 1
.include <bsd.port.pre.mk>
d67 1
a67 5
.if ${RUBY_VER} == 1.9
.if !defined(RUBY_PROVIDED)
IGNORE=	requires Ruby 1.9.1 or later
.endif
.endif
d69 1
a69 9
.if ${RUBY_VER} == 1.8
.if !defined(RUBY_PROVIDED)
IGNORE=	requires Ruby 1.8.5 or later
.endif
RUN_DEPENDS+=	${DEPEND_RUBY_ICONV}
.if !defined(WITHOUT_TDIARY_NORA)
RUN_DEPENDS+=	${RUBY_SITEARCHLIBDIR}/web/escape_ext.so:${PORTSDIR}/www/ruby-nora
.endif
.endif
d107 1
a107 1
.if !defined(NOPORTDOCS)
d117 18
@


1.37
log
@SVN rev 307084 on 2012-11-06 17:37:17Z by tota

- Update to 3.2.0 [1]
- Change target post-extract to pre-patch
- Convert to new Makefile header
- Make use of textproc/ruby-rdtool instead of vendor/rdtool-0.6.37
- Remove LICENSE_FILE for license in Templates/Licenses

PR:		ports/173324 [1]
Submitted by:	Yasuhiro KIMURA <yasu_AT_utahime_DOT_org> [1]
Feature safe:	yes
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.36
log
@SVN rev 301815 on 2012-07-31 20:59:44Z by tota

- Update to 3.1.4
@
text
@d1 1
a1 4
# New ports collection makefile for:    tdiary
# Date created:                 21 May 2003
# Whom:                         Fumihiko Kimura <jfkimura@@yahoo.co.jp>
#
a2 1
#
d5 1
a5 1
PORTVERSION=	3.1.4
a14 1
LICENSE_FILE=	${WRKSRC}/doc/LICENSE
d34 13
a46 7
MD=	HOWTO-authenticate-in-rack.html.md HOWTO-make-io.html.md \
	HOWTO-make-plugin.html.md HOWTO-make-theme.html.md \
	HOWTO-testing-tDiary.html.md HOWTO-use-plugin.html.md \
	HOWTO-write-tDiary.en.html.md HOWTO-write-tDiary.html.md \
	INSTALL-heroku.html.md INSTALL.html.md README.en.html.md \
	README.html.md UPGRADE.html.md
PORTDOCS=	ChangeLog LICENSE README.md doc.css ${MD}
d82 1
a82 1
post-extract:
d97 1
@


1.35
log
@- Update to 3.1.3
- Fix reinstall target
@
text
@d9 1
a9 1
PORTVERSION=	3.1.3
d22 1
a22 2
		rubygem-imagesize>=0.1.1:${PORTSDIR}/graphics/rubygem-imagesize \
		rd2:${PORTSDIR}/textproc/ruby-rdtool
d39 7
a45 7
HTML=	HOWTO-make-io.html HOWTO-make-plugin.html HOWTO-make-theme.html \
	HOWTO-testing-tDiary.html HOWTO-use-plugin.html \
	HOWTO-write-tDiary.en.html HOWTO-write-tDiary.html \
	INSTALL-heroku.html INSTALL.html README.en.html README.html \
	UPGRADE.html
MD=	${HTML:C|$|.md|}
PORTDOCS=	ChangeLog LICENSE doc.css ${HTML} ${MD}
d87 1
a95 1
	@@${RM} -r ${WRKSRC}/vendor/rdtool-0.6.33
@


1.34
log
@- Make use of devel/rubygem-json_pure which had not been updated to 1.6.5 yet
  when this port was updated to 3.1.2 instead of bundle json_pure library
- Do not install LICENSE file
- Bump PORTREVISION
@
text
@d9 1
a9 2
PORTVERSION=	3.1.2
PORTREVISION=	1
d19 1
a19 1
LICENSE_FILE=	${WRKDIR}/doc/LICENSE
a22 1
		rubygem-json_pure>=1.6.5:${PORTSDIR}/devel/rubygem-json_pure \
d40 7
a46 4
PORTDOCS=	ChangeLog HOWTO-make-io.rd HOWTO-make-plugin.html \
		HOWTO-make-theme.html HOWTO-use-plugin.html \
		HOWTO-write-tDiary.en.html HOWTO-write-tDiary.html INSTALL.html \
		README.en.html README.html README.md UPGRADE doc.css
a83 1
	@@${RM} ${WRKSRC}/.rspec
d90 1
d96 1
a96 2
	@@${RM} -r ${WRKSRC}/vendor/json_pure-1.6.5
	@@${RM} -r ${WRKSRC}/vendor/rdtool-0.6.29
a99 4
	@@${MV} ${WRKSRC}/doc ${WRKDIR}

post-patch:
	@@${RUBY} -i -pe "sub %r|((\s*)require 'json')|, %Q|\\\2require 'rubygems'\n\\\1|" ${WRKSRC}/tdiary.rb
d110 2
a111 2
	@@${CP} -pR ${WRKSRC}/ ${WWWDIR}
	@@${LN} -s ${LOCALBASE}/lib/ruby/gems/${RUBY_VER}/gems/imagesize-0.1.1/lib ${WWWDIR}/vendor/imagesize-0.1.1/lib
d119 1
a119 1
	@@cd ${WRKDIR}/doc && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
@


1.33
log
@- Update to 3.1.2
@
text
@d10 1
d24 1
d45 1
a45 1
		LICENSE README.en.html README.html README.md UPGRADE doc.css
d95 1
d100 4
a103 1
	@@cd ${WRKSRC} && ${MV} doc ${WRKDIR}
@


1.32
log
@- Add missing runtime dependency on ruby-iconv

PR:		ports/162269
Submitted by:	Yoshisato YANAGISAWA <osho_AT_pcc-software_DOT_org>
@
text
@d9 1
a9 2
PORTVERSION=	3.1.1
PORTREVISION=	1
d19 1
a19 1
LICENSE_FILE=	${WRKDIR}/doc/COPYING
d23 1
a23 1
		rubygem-json_pure>=1.6.1:${PORTSDIR}/devel/rubygem-json_pure
d40 1
a40 1
PORTDOCS=	ChangeLog COPYING HOWTO-make-io.rd HOWTO-make-plugin.html \
d43 1
a43 1
		README.en.html README.html README.md UPGRADE doc.css
d90 1
d93 1
a93 1
	@@${RM} -r ${WRKSRC}/vendor/json_pure-1.6.1
d95 1
a98 3
post-patch:
	${RUBY} -i -pe "sub %r|((\s*)require 'json')|, %Q|\\\2require 'rubygems'\n\\\1|" ${WRKSRC}/tdiary.rb

@


1.31
log
@- Update to 3.1.1
@
text
@d10 1
d74 1
@


1.30
log
@- Update to 3.1.0
@
text
@d9 1
a9 1
PORTVERSION=	3.1.0
d23 1
a23 1
		rd2:${PORTSDIR}/textproc/ruby-rdtool
d31 1
d54 1
a54 1
#TDIARY_LANG	ja:Japanese en:English zh:Traditional-Chinese
d91 1
a91 1
	@@${RM} -r ${WRKSRC}/vendor/rdtool-0.6.22
d96 3
@


1.29
log
@- Update to 3.0.2
@
text
@d9 1
a9 1
PORTVERSION=	3.0.2
d21 4
d78 16
a93 12
	${RM} ${WRKSRC}/.gitignore
	${RM} ${WRKSRC}/.rspec
	${RM} ${WRKSRC}/Capfile
	${RM} ${WRKSRC}/Gemfile
	${RM} ${WRKSRC}/Gemfile.lock
	${RM} ${WRKSRC}/Rakefile
	${RM} ${WRKSRC}/config.ru
	${RM} -r ${WRKSRC}/public
	${RM} -r ${WRKSRC}/spec
	${MV} ${WRKSRC}/ChangeLog ${WRKSRC}/doc
	${MV} ${WRKSRC}/README.md ${WRKSRC}/doc
	cd ${WRKSRC} && ${MV} doc ${WRKDIR}
d105 1
d118 1
a118 1
	${FIND} ${WWWDIR} -type f | ${SORT} | ${SED} -e 's,${WWWDIR},%%WWWDIR%%,g' > pkg-plist.new
@


1.28
log
@- Update MASTER_SITES
- Remove MD5 checksum from distinfo
@
text
@d9 1
a9 1
PORTVERSION=	3.0.1
d23 1
a23 1
RUBY_REQUIRE=	Ruby >= 182
d29 1
a30 1
			misc/plugin/pingback/pb.rb \
a31 1
			misc/plugin/trackback/tb.rb \
d33 1
a33 2
			misc/style/etdiary/etdiary_test.rb \
			tdiary/wiki_style_test.rb
d38 1
a38 1
		README.en.html README.html UPGRADE doc.css
d54 2
d66 1
a66 1
IGNORE=	requires Ruby 1.8.2 or later
d74 12
a85 2
	@@cd ${WRKSRC} && ${RM} -f README && ${MV} ChangeLog doc
	@@cd ${WRKSRC} && ${MV} doc ${WRKDIR}
d90 2
d108 4
@


1.27
log
@- Update to 3.0.1
  * Fix the error of blog-category
  * Fix the error of tsukkomi from mobile phone
@
text
@d11 2
a12 2
MASTER_SITES=	http://www.tdiary.org/download/ \
		${MASTER_SITE_LOCAL:S|%SUBDIR%|tota/tdiary|}
@


1.26
log
@- Update to 3.0.0
- Change repository site in pkg-descr
- Update install script
@
text
@d9 1
a9 1
PORTVERSION=	3.0.0
@


1.25
log
@- Update to 2.2.3 to fix security issue in the trackback plugin [*]
- Fix MASTER_SITES to make fetchable from SF.net

 [*] It only happens in the following case at the same time:

     - In tDiary 2.2.2 or earlier stable releases
     - Enable the trackback plugin
     - Browse with Microsoft Internet Explorer 7
     - Update diary via URLs which are set the security traps

     see http://www.tdiary.org/20100225.html written in Japanese
     for details.

Approved by:	maho (mentor)
@
text
@d9 1
a9 1
PORTVERSION=	2.2.3
d11 2
a12 2
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/ \
		http://www.tdiary.org/download/
d18 3
a22 1
RUBY_VER=	1.8
a23 1
PORTSCOUT=	limitw:1,even
d25 2
a26 1
RUBY_SHEBANG_FILES=	index.rb \
d58 1
d60 2
a61 1
IGNORE=	requires Ruby 1.8.2 or later
d65 3
@


1.24
log
@- Update to 2.2.2
- Fix install paths as they should have been
- Remove CONFLICTS
- Change MAINTAINER address from tota@@rtfm.jp to tota@@FreeBSD.org

Approved by:	maho (mentor)
@
text
@d9 1
a9 1
PORTVERSION=	2.2.2
d11 2
a12 2
MASTER_SITES=	http://www.tdiary.org/download/ \
		SF
@


1.23
log
@- Switch SourceForge ports to the new File Release System: categories starting with W
@
text
@d9 1
a9 1
PORTVERSION=	2.2.1
d15 1
a15 1
MAINTAINER=	tota@@rtfm.jp
a18 4
CONFLICTS?=	tdiary-devel-[0-9]* \
		ja-tdiary-[0-9]* \
		ja-tdiary-devel-[0-9]*
PKGMESSAGE=	${WRKDIR}/pkg-message
d20 13
a32 5

RUBY_SHEBANG_FILES=	index.rb update.rb misc/convert2.rb \
			misc/plugin/amazon/amazonimg.rb misc/plugin/pingback/pb.rb \
			misc/plugin/squeeze.rb misc/plugin/trackback/tb.rb \
			misc/plugin/xmlrpc/xmlrpc.rb misc/style/etdiary/etdiary_test.rb \
d40 3
a42 1
SUB_FILES=	pkg-message
d44 4
d53 5
a57 2
.if defined(WITH_TDIARY_UCONV)
RUN_DEPENDS+=	${RUBY_SITEARCHLIBDIR}/uconv.so:${PORTSDIR}/japanese/ruby-uconv
d59 2
d64 1
d70 4
d75 4
a78 10
	@@-${MKDIR} ${EXAMPLESDIR}
	@@${SED} -e 's,#!/usr/bin/env ruby,#!${RUBY},' \
		-e 's,@@@@@@@@PREFIX@@@@@@@@,${PREFIX},g' \
		-e 's,@@@@@@@@LANG@@@@@@@@,${TDIARY_LANG},g' \
		${FILESDIR}/tdiaryinst.rb.in > ${EXAMPLESDIR}/tdiaryinst.rb
	@@${CP} -pR ${WRKSRC}/ ${EXAMPLESDIR}
	@@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}
	@@${CHMOD} 755 ${EXAMPLESDIR}
	@@${ECHO_CMD} '@@exec ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}' \
		>> ${TMPPLIST}
d81 2
d89 1
a89 1
.include <bsd.port.mk>
@


1.22
log
@- Update to 2.2.1
- Add pkg-plist
- Respect prefix and portdocs
- Makefile cleanup

PR:		ports/121253
Submitted by:	TAKATSU Tomonari <tota@@rtfm.jp> (maintainer)
@
text
@d11 2
a12 2
MASTER_SITES=	SF \
		http://www.tdiary.org/download/
@


1.21
log
@- Update to 2.2.0
- Use SF macro

PR:		ports/118772
Submitted by:	TAKATSU Tomonari <tota@@rtfm.jp> (maintainer)
Approved by:	linimon (mentor)
@
text
@d9 1
a9 1
PORTVERSION=	2.2.0
d31 6
a36 2
PLIST_FILES=	${TDIARYDIR:S|${LOCALBASE}/||}/tdiaryinst.rb
TDIARYDIR=	${EXAMPLESDIR}
a39 1

d50 4
d55 1
a55 1
	@@-${MKDIR} ${TDIARYDIR}
d59 6
a64 9
		${FILESDIR}/tdiaryinst.rb.in > ${TDIARYDIR}/tdiaryinst.rb
	@@${CP} -pR ${WRKSRC}/ ${TDIARYDIR}
.if ${TDIARY_LANG} == ja
	@@${ECHO_MSG} "===>  TDIARY : Japanese Language messages support"
	@@${RUBY} -i -pe 'sub(/%Y-%m-%d/, "%Y-%m-%d [%J]")' ${TDIARYDIR}/tdiary.conf.sample
.else
	@@${RUBY} -i -pe 'sub(/%Y-%m-%d/, "%Y-%m-%d [%a]")' ${TDIARYDIR}/misc/i18n/tdiary.conf.sample-en
.endif
	@@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${TDIARYDIR}
d67 4
a70 3
	@@cd ${WRKSRC} && ${FIND} . -type f -o -type l | ${SED} -e 's,^\.,${TDIARYDIR:S|${LOCALBASE}/||},' >> ${TMPPLIST}
	@@cd ${WRKSRC} && ${FIND} . -type d -depth  | ${SED} -e 's,^\.,@@dirrm ${TDIARYDIR:S|${LOCALBASE}/||},' >> ${TMPPLIST}
	@@${SED}	-e 's|%%EXAMPLESDIR%%|${EXAMPLESDIR}|' < ${FILESDIR}/pkg-message.in > ${PKGMESSAGE}
@


1.20
log
@- Update to 2.0.4

PR:		ports/106686
Submitted by:	TAKATSU Tomonari <tota@@rtfm.jp> (maintainer)
Security:	http://www.vuxml.org/freebsd/fefd93d8-8af5-11db-9d01-0016179b2dd5.html
@
text
@d9 1
a9 1
PORTVERSION=	2.0.4
d11 1
a11 1
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE} \
a12 1
MASTER_SITE_SUBDIR=	${PORTNAME}
d25 5
a29 7
.if !defined(WITHOUT_RUBY_FEATURES)
USE_RUBY_FEATURES=	fileutils
.endif

RUBY_SHEBANG_FILES=	index.rb update.rb misc/convert2.rb misc/plugin/squeeze.rb \
			misc/plugin/windex.rb \
			misc/plugin/trackback/tb.rb misc/style/etdiary/etdiary_test.rb
d43 1
a43 1
.if defined(WITH_TDIARY_NORA)
a46 6
.include <bsd.port.pre.mk>

.if ${RUBY_VERSION_CODE} < 167
IGNORE=		only works with Ruby 1.6.7 or later
.endif

d68 1
a68 1
.include <bsd.port.post.mk>
@


1.19
log
@- Update to 2.0.3

PR:		ports/106208
Submitted by:	TAKATSU Tomonari <tota@@rtfm.jp> (maintainer)
Security:	http://www.vuxml.org/freebsd/666b8c9e-8212-11db-851e-0016179b2dd5.html
@
text
@d9 1
a9 1
PORTVERSION=	2.0.3
@


1.18
log
@Pass maintainership to TAKATSU Tomonari <tota@@rtfm.jp>

PR:		ports/103372
Submitted by:	Fumihiko Kimura <jfkimura@@yahoo.co.jp> (ex-maintainer)
@
text
@d9 1
a9 2
PORTVERSION=	2.0.2
PORTREVISION=	1
d20 3
a22 1
CONFLICTS?=	ja-tdiary-[0-9]*
d26 1
a26 1
.if  !defined(WITHOUT_RUBY_FEATURES)
d40 1
a40 1
.if  !defined(TDIARY_LANG)
a41 4
.else
.if ${TDIARY_LANG} == "tdiary.conf-ja"
TDIARY_LANG=	ja
.endif
d49 1
d53 1
a53 1
IGNORE=		Needs ruby 1.6.7 or higher, check ruby's version and try again
d58 2
a59 1
	@@${SED} -e 's,@@@@@@@@PREFIX@@@@@@@@,${PREFIX},g' \
@


1.17
log
@- Fix a bug in the installer

PR:		ports/84866
Submitted by:	Fumihiko Kimura <jfkimura@@yahoo.co.jp> (maintainer)
@
text
@d17 1
a17 1
MAINTAINER=	jfkimura@@yahoo.co.jp
@


1.16
log
@Depend on a more recent Ruby-version

PR:		ports/83937
Submitted by:	maintainer
@
text
@d10 1
@


1.15
log
@- Update to 2.0.2

PR:		ports/83840
Submitted by:	Fumihiko Kimura <jfkimura@@yahoo.co.jp> (maintainer)
Security:	http://jvn.jp/jp/JVN%2360776919/index.html
@
text
@d53 2
a54 2
.if ${RUBY_VERSION_CODE} < 163
IGNORE=		Needs ruby 1.6.3 or higher, check ruby's version and try again
@


1.14
log
@Update 2.0.1:
- some bugs fixed
- add mobile phones of new Vodafone to mobile mode

PR:		ports/79419
Submitted by:	Fumihiko Kimura
@
text
@d9 1
a9 1
PORTVERSION=	2.0.1
d11 1
a11 2
MASTER_SITES=	\
		${MASTER_SITE_SOURCEFORGE} \
d19 5
a23 4
NO_BUILD=		yes
CONFLICTS?=		ja-tdiary-*
PKGMESSAGE=		${WRKDIR}/pkg-message
USE_RUBY=		yes
d32 1
d35 3
d39 5
a43 1
TDIARY_LANG=	tdiary.conf-en
a44 1

d51 5
d63 1
a63 4
.if ${TDIARY_LANG} == tdiary.conf-en
	@@${ECHO_MSG} "===>  TDIARY : English Language messages support"
	@@${RUBY} -i -pe 'sub(/%Y-%m-%d/, "%Y-%m-%d [%a]")' ${TDIARYDIR}/misc/i18n/tdiary.conf.sample-en
.else
d66 2
d77 1
a77 1
.include <bsd.port.mk>
@


1.13
log
@- Update to 2.0.0

PR:		ports/68406, ports/68410
Submitted by:	Fumihiko Kimura <jfkimura@@yahoo.co.jp> (maintainer)
@
text
@d9 1
a9 1
PORTVERSION=	2.0.0
d29 1
a29 1
			misc/plugin/windex.rb misc/plugin/a/a_conf.rb \
@


1.12
log
@- Update to 1.5.7

PR:		ports/66321
Submitted by:	Fumihiko Kimura <jfkimura@@yahoo.co.jp> (maintainer)
@
text
@d9 1
a9 1
PORTVERSION=	1.5.7
d21 1
a21 1
CONFLICTS?=		ja-tdiary-1.*
d29 2
a30 1
misc/plugin/windex.rb misc/plugin/a/a_conf.rb misc/plugin/trackback/tb.rb
a43 9

pre-everything::
	@@${ECHO_MSG}
	@@${ECHO_MSG} "============================================================================="
	@@${ECHO_MSG} "When you chose plugin, it becomes necessary.  Use the following options:"
	@@${ECHO_MSG} "  WITH_TDIARY_UCONV=yes	(RDF file creates  with UTF-8 : output_rdf.rb)"
	@@${ECHO_MSG} "  WITH_TDIARY_NORA=yes	(Referer header support       : disp_referrer.rb)"
	@@${ECHO_MSG} "============================================================================="
	@@${ECHO_MSG}
@


1.11
log
@- Make this work with ruby 1.8

PR:		ports/63458
Submitted by:	Fumihiko Kimura <jfkimura@@yahoo.co.jp> (maintainer)
@
text
@d9 1
a9 2
PORTVERSION=	1.5.6
PORTREVISION=	2
d14 1
a14 1
MASTER_SITE_SUBDIR=	sourceforge/${PORTNAME}
d28 1
a28 1
RUBY_SHEBANG_FILES=	index.rb update.rb misc/convert2.rb misc/posttdiary.rb misc/plugin/squeeze.rb \
a57 4
	@@${SED} -e 's,@@@@@@@@PREFIX@@@@@@@@,${PREFIX},g' \
		-e 's,@@@@@@@@LANG@@@@@@@@,${TDIARY_LANG},g' \
		${FILESDIR}/tdiary-FreeBSD.sh.in > ${TDIARYDIR}/tdiary-FreeBSD.sh
	@@${CHMOD} ugo=rx ${TDIARYDIR}/tdiary-FreeBSD.sh
@


1.10
log
@* Fix pkg-message generation on read-only filesystem.
* Add CONFICT to www/tdiary and japanese/tdiary.

PR:		ports/60201
Submitted by:	Fumihiko Kimura <jfkimura@@yahoo.co.jp> (maintainer)
@
text
@d10 1
a10 1
PORTREVISION=	1
@


1.9
log
@Fix a security related problem in tDiary 1.5.6, see
http://www.tdiary.org/20031119.html (Japanese-language) for details.
It only happened in the following case:

 * "@@secure = true" in setting file (tdiary.conf)
 * output_rdf.rb or tb-send.rb by plugin choice

PR:		ports/59451
Submitted by:	Fumihiko Kimura <jfkimura@@yahoo.co.jp> (maintainer)
@
text
@d22 2
@


1.8
log
@Update to 1.5.6.

PR:		ports/59281
Submitted by:	Fumihiko Kimura <jfkimura@@yahoo.co.jp> (MAINTAINER)
@
text
@d10 1
d74 2
a75 1
	@@${SED} -e "s,%%EXAMPLESDIR%%,${EXAMPLESDIR},g" ${PKGMESSAGE}
@


1.7
log
@- Problem Report ports/58268
- Other revisions

PR:		58549
Submitted By:	MAINTAINER
@
text
@d9 1
a9 2
PORTVERSION=	1.5.5
PORTREVISION=	1
d26 2
a27 2
RUBY_SHEBANG_FILES=	index.rb update.rb misc/convert2.rb misc/posttdiary.rb misc/plugin/squeeze.rb misc/plugin/weather.rb \
misc/plugin/windex.rb misc/plugin/a/a_conf.rb misc/plugin/todo/todo.rb misc/plugin/trackback/tb.rb
a42 1
.if ! ${TDIARY_LANG} == "tdiary.conf-en"
d45 1
a45 1
	@@${ECHO_MSG} "You may use the following options:"
d47 1
a47 1
	@@${ECHO_MSG} "  WITH_TDIARY_NORA=yes	(with Referer header support  : disp_referrer.rb)"
a49 1
.endif
a60 15
.if defined(WITH_TDIARY_UCONV)
	@@${ECHO_MSG} "===>  Option : WITH_TDIARY_UCONV .. Done."
	@@${INSTALL_DATA} ${WRKSRC}/misc/plugin/output_rdf.rb ${TDIARYDIR}/plugin
	@@${TOUCH} ${TDIARYDIR}/t.rdf
	@@${CHMOD} 706 ${TDIARYDIR}/t.rdf
	@@${ECHO_CMD} '${TDIARYDIR:S|${LOCALBASE}/||}/plugin/output_rdf.rb' >> ${TMPPLIST}
	@@${ECHO_CMD} '${TDIARYDIR:S|${LOCALBASE}/||}/t.rdf' >> ${TMPPLIST}
.endif
.if defined(WITH_TDIARY_NORA)
	@@${ECHO_MSG} "===>  Option : WITH_TDIARY_NORA  .. Done."
	@@${INSTALL_DATA} ${WRKSRC}/misc/plugin/disp_referrer.rb ${TDIARYDIR}/plugin
	@@${ECHO_CMD} '${TDIARYDIR:S|${LOCALBASE}/||}/plugin/disp_referrer.rb' >> ${TMPPLIST}
.endif
	@@${INSTALL_DATA} ${WRKSRC}/misc/plugin/comment_mail-sendmail.rb ${TDIARYDIR}/plugin
	@@${ECHO_CMD} '${TDIARYDIR:S|${LOCALBASE}/||}/plugin/comment_mail-sendmail.rb' >> ${TMPPLIST}
a62 2
	@@${INSTALL_DATA} ${WRKSRC}/misc/i18n/00lang.en.rb ${TDIARYDIR}/plugin
	@@${ECHO_CMD} '${TDIARYDIR:S|${LOCALBASE}/||}/plugin/00lang.en.rb' >> ${TMPPLIST}
a65 2
	@@${INSTALL_DATA} ${WRKSRC}/misc/plugin/jdate.rb ${TDIARYDIR}/plugin
	@@${ECHO_CMD} '${TDIARYDIR:S|${LOCALBASE}/||}/plugin/jdate.rb' >> ${TMPPLIST}
@


1.6
log
@Fix issues with CATEGORIES not listing the enclosing directory as the
primary category.

Submitted by:	Oliver Eikemeier <eikemeier@@fillmore-labs.com>
@
text
@d10 1
a10 1
#PORTREVISION=	0
d21 4
a24 5
.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
a26 2
NO_BUILD=	yes
USE_RUBY=	yes
a31 1

d36 7
d44 1
d46 1
a46 1
	@@${ECHO_MSG} "============================================================="
d48 3
d52 1
a52 5
	@@${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}
d55 1
a55 2
#	@@if [ -d ${TDIARYDIR} ]; then ${RM} -rf ${TDIARYDIR}; fi
	-${MKDIR} ${TDIARYDIR}
d63 1
a63 1
	${CP} -pR ${WRKSRC}/ ${TDIARYDIR}
d65 6
a70 1
	${INSTALL_DATA} ${WRKSRC}/misc/plugin/output_rdf.rb ${TDIARYDIR}/plugin
d73 3
a75 1
	${INSTALL_DATA} ${WRKSRC}/misc/plugin/disp_referrer.rb ${TDIARYDIR}/plugin
d77 2
a78 1
	${INSTALL_DATA} ${WRKSRC}/misc/plugin/comment_mail-sendmail.rb ${TDIARYDIR}/plugin
d80 9
a88 1
	${INSTALL_DATA} ${WRKSRC}/misc/i18n/00lang.en.rb ${TDIARYDIR}/plugin
d93 3
a95 13
	@@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
	@@${ECHO} 'share/examples/${PORTNAME}/plugin/comment_mail-sendmail.rb' >> ${TMPPLIST}
.if ${TDIARY_LANG} == tdiary.conf-en
	@@${ECHO} 'share/examples/${PORTNAME}/plugin/00lang.en.rb' >> ${TMPPLIST}
.endif
	@@cd ${WRKSRC} && ${FIND} . -type d -depth  | ${SED} -e 's,^\.,@@dirrm share/examples/${PORTNAME},' >> ${TMPPLIST}
	@@${SED} -e "s,@@@@@@@@PREFIX@@@@@@@@,${PREFIX},g" ${PKGMESSAGE}
@


1.5
log
@Update www/tdiary (maintainer): 1.5.4 --> 1.5.5

PR:		55422
Submitted by:	Fumihiko Kimura <jfkimura@@yahoo.co.jp>
@
text
@d11 1
a11 1
CATEGORIES=	www ruby
@


1.4
log
@update www/tdiary:
  - Change of an installation script
  - add RUBY_SHEBANG_FILES to Makefile

PR:		55000
Submitted by:	Fumihiko Kimura <jfkimura@@yahoo.co.jp> (maintainer)
@
text
@d9 2
a10 2
PORTVERSION=	1.5.4
PORTREVISION=	3
d33 1
a33 1
TDIARYDIR=	${PREFIX}/share/examples/${PORTNAME}
d83 1
a83 1
.if ${TDIARY_LANG} == tdiary.conf-en	
@


1.3
log
@Copy japanese/tdiary to www/tdiary
www/tdiary installs setup script to set default language to English
japanese/tdiary installs one to set default language to Japanese

PR:		ports/54306
Submitted by:	maintainer
@
text
@d10 1
a10 1
PORTREVISION=	2
d30 2
d52 5
a56 2
	@@if [ -d ${TDIARYDIR} ]; then ${RM} -rf ${TDIARYDIR}; fi
	${MKDIR} ${TDIARYDIR}
@


1.2
log
@Committed. Thanks!

Update ports: japanese/tdiary to 1.5.4_1
   1. add 'www' category
   2. Adjustment of Makefile and script

PR:		53394
Approved by:	Fumihiko Kimura <jfkimura@@yahoo.co.jp> (maintainer)
@
text
@d10 2
a11 2
PORTREVISION=	1
CATEGORIES=	japanese ruby www
d32 1
d34 3
a36 1
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
d53 1
d63 4
d76 4
@


1.1
log
@Add tdiary, a Web-based diary system (like weblog) written in Ruby

PR:		ports/52613
Submitted by:	Fumihiko Kimura
@
text
@d10 5
a14 2
CATEGORIES=	japanese ruby
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
d16 1
a16 1
DISTNAME=	${PORTNAME}-full-${PORTVERSION:R}.${PORTVERSION:E}
d33 1
a33 1
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION:R}.${PORTVERSION:E}
d49 3
a51 3
	${SED} -e 's,@@@@@@@@PREFIX@@@@@@@@,${PREFIX},g' \
	${FILESDIR}/tdiary-FreeBSD.sh.in > ${TDIARYDIR}/tdiary-FreeBSD.sh
	${CHMOD} ugo=rx ${TDIARYDIR}/tdiary-FreeBSD.sh
d62 1
a62 1
	@@cd ${WRKSRC} && ${FIND} . -type f -o -type l | ${SED} 's,^\.,share/examples/${PORTNAME},' | sort >> ${TMPPLIST}
d64 1
a64 1
	@@cd ${WRKSRC} && ${ECHO} 'share/examples/${PORTNAME}/plugin/output_rdf.rb' >> ${TMPPLIST}
d67 1
a67 1
	@@cd ${WRKSRC} && ${ECHO} 'share/examples/${PORTNAME}/plugin/disp_referrer.rb' >> ${TMPPLIST}
d69 2
a70 2
	@@cd ${WRKSRC} && ${FIND} . -type d -depth | ${SED} 's,^\.,@@dirrm share/examples/${PORTNAME},' >> ${TMPPLIST}
	@@${CAT} ${PKGMESSAGE}
@

