View | Details | Raw Unified | Return to bug 83840
Collapse All | Expand All

(-)tdiary/Makefile (-14 / +25 lines)
Lines 6-15 Link Here
6
#
6
#
7
7
8
PORTNAME=	tdiary
8
PORTNAME=	tdiary
9
PORTVERSION=	2.0.1
9
PORTVERSION=	2.0.2
10
CATEGORIES?=	www ruby
10
CATEGORIES?=	www ruby
11
MASTER_SITES=	\
11
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE} \
12
		${MASTER_SITE_SOURCEFORGE} \
13
		http://www.tdiary.org/download/
12
		http://www.tdiary.org/download/
14
MASTER_SITE_SUBDIR=	${PORTNAME}
13
MASTER_SITE_SUBDIR=	${PORTNAME}
15
DISTNAME=	${PORTNAME}-full-${PORTVERSION}
14
DISTNAME=	${PORTNAME}-full-${PORTVERSION}
Lines 17-26 Link Here
17
MAINTAINER=	jfkimura@yahoo.co.jp
16
MAINTAINER=	jfkimura@yahoo.co.jp
18
COMMENT=	A Web-based diary system (like weblog) written in Ruby
17
COMMENT=	A Web-based diary system (like weblog) written in Ruby
19
18
20
NO_BUILD=		yes
19
NO_BUILD=	yes
21
CONFLICTS?=		ja-tdiary-*
20
CONFLICTS?=	ja-tdiary-[0-9]*
22
PKGMESSAGE=		${WRKDIR}/pkg-message
21
PKGMESSAGE=	${WRKDIR}/pkg-message
23
USE_RUBY=		yes
22
USE_RUBY=	yes
23
24
.if  !defined(WITHOUT_RUBY_FEATURES)
24
.if  !defined(WITHOUT_RUBY_FEATURES)
25
USE_RUBY_FEATURES=	fileutils
25
USE_RUBY_FEATURES=	fileutils
26
.endif
26
.endif
Lines 29-46 Link Here
29
			misc/plugin/windex.rb \
29
			misc/plugin/windex.rb \
30
			misc/plugin/trackback/tb.rb misc/style/etdiary/etdiary_test.rb
30
			misc/plugin/trackback/tb.rb misc/style/etdiary/etdiary_test.rb
31
31
32
PLIST_FILES=	${TDIARYDIR:S|${LOCALBASE}/||}/tdiaryinst.rb
32
TDIARYDIR=	${EXAMPLESDIR}
33
TDIARYDIR=	${EXAMPLESDIR}
33
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
34
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
35
36
#TDIARY_LANG	ja:Japanese en:English zh:Traditional-Chinese
37
34
.if  !defined(TDIARY_LANG)
38
.if  !defined(TDIARY_LANG)
35
TDIARY_LANG=	tdiary.conf-en
39
TDIARY_LANG=	en
40
.else
41
.if ${TDIARY_LANG} == "tdiary.conf-ja"
42
TDIARY_LANG=	ja
43
.endif
36
.endif
44
.endif
37
38
.if defined(WITH_TDIARY_UCONV)
45
.if defined(WITH_TDIARY_UCONV)
39
RUN_DEPENDS+=	${RUBY_SITEARCHLIBDIR}/uconv.so:${PORTSDIR}/japanese/ruby-uconv
46
RUN_DEPENDS+=	${RUBY_SITEARCHLIBDIR}/uconv.so:${PORTSDIR}/japanese/ruby-uconv
40
.endif
47
.endif
41
.if defined(WITH_TDIARY_NORA)
48
.if defined(WITH_TDIARY_NORA)
42
RUN_DEPENDS+=	${RUBY_SITEARCHLIBDIR}/web/escape_ext.so:${PORTSDIR}/www/ruby-nora
49
RUN_DEPENDS+=	${RUBY_SITEARCHLIBDIR}/web/escape_ext.so:${PORTSDIR}/www/ruby-nora
43
.endif
50
.endif
51
.include <bsd.port.pre.mk>
52
53
.if ${RUBY_VERSION_CODE} < 163
54
IGNORE=		Needs ruby 1.6.3 or higher, check ruby's version and try again
55
.endif
44
56
45
do-install:
57
do-install:
46
	@-${MKDIR} ${TDIARYDIR}
58
	@-${MKDIR} ${TDIARYDIR}
Lines 48-59 Link Here
48
		-e 's,@@@@LANG@@@@,${TDIARY_LANG},g' \
60
		-e 's,@@@@LANG@@@@,${TDIARY_LANG},g' \
49
		${FILESDIR}/tdiaryinst.rb.in > ${TDIARYDIR}/tdiaryinst.rb
61
		${FILESDIR}/tdiaryinst.rb.in > ${TDIARYDIR}/tdiaryinst.rb
50
	@${CP} -pR ${WRKSRC}/ ${TDIARYDIR}
62
	@${CP} -pR ${WRKSRC}/ ${TDIARYDIR}
51
.if ${TDIARY_LANG} == tdiary.conf-en
63
.if ${TDIARY_LANG} == ja
52
	@${ECHO_MSG} "===>  TDIARY : English Language messages support"
53
	@${RUBY} -i -pe 'sub(/%Y-%m-%d/, "%Y-%m-%d [%a]")' ${TDIARYDIR}/misc/i18n/tdiary.conf.sample-en
54
.else
55
	@${ECHO_MSG} "===>  TDIARY : Japanese Language messages support"
64
	@${ECHO_MSG} "===>  TDIARY : Japanese Language messages support"
56
	@${RUBY} -i -pe 'sub(/%Y-%m-%d/, "%Y-%m-%d [%J]")' ${TDIARYDIR}/tdiary.conf.sample
65
	@${RUBY} -i -pe 'sub(/%Y-%m-%d/, "%Y-%m-%d [%J]")' ${TDIARYDIR}/tdiary.conf.sample
66
.else
67
	@${RUBY} -i -pe 'sub(/%Y-%m-%d/, "%Y-%m-%d [%a]")' ${TDIARYDIR}/misc/i18n/tdiary.conf.sample-en
57
.endif
68
.endif
58
	@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${TDIARYDIR}
69
	@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${TDIARYDIR}
59
70
Lines 63-66 Link Here
63
	@${SED}	-e 's|%%EXAMPLESDIR%%|${EXAMPLESDIR}|' < ${FILESDIR}/pkg-message.in > ${PKGMESSAGE}
74
	@${SED}	-e 's|%%EXAMPLESDIR%%|${EXAMPLESDIR}|' < ${FILESDIR}/pkg-message.in > ${PKGMESSAGE}
64
	@${CAT} ${PKGMESSAGE}
75
	@${CAT} ${PKGMESSAGE}
65
76
66
.include <bsd.port.mk>
77
.include <bsd.port.post.mk>
(-)tdiary/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
MD5 (tdiary-full-2.0.1.tar.gz) = 05e75ef43bf89aa46c926acc825a5039
1
MD5 (tdiary-full-2.0.2.tar.gz) = 1c4d1dd765d10b4d074b3bc50d2e65ff
2
SIZE (tdiary-full-2.0.1.tar.gz) = 1704264
2
SIZE (tdiary-full-2.0.2.tar.gz) = 2121313
(-)tdiary/files/tdiaryinst.rb.in (-1 / +5 lines)
Lines 85-91 Link Here
85
  STDERR.print "    --name=<author_name>      Specify author name\n"
85
  STDERR.print "    --name=<author_name>      Specify author name\n"
86
  STDERR.print "    --mail=<author_mail>      Specify author mail address\n"
86
  STDERR.print "    --mail=<author_mail>      Specify author mail address\n"
87
  STDERR.print "    --tdiarymaster=<dir>      Specify tDiary master directory default: @@@@PREFIX@@@@/share/examples/tdiary\n"
87
  STDERR.print "    --tdiarymaster=<dir>      Specify tDiary master directory default: @@@@PREFIX@@@@/share/examples/tdiary\n"
88
  STDERR.print "    --lang=<language>         Specify your language ('en' or 'ja') default: @@@@LANG@@@@\n"
88
  STDERR.print "    --lang=<language>         Specify your language ('en' or 'ja' or 'zh') default: @@@@LANG@@@@\n"
89
  STDERR.print "    --suexec                  Use suExec for CGI execution\n"
89
  STDERR.print "    --suexec                  Use suExec for CGI execution\n"
90
  STDERR.print "    --symlink                 Use symbolic link for tDiary master files\n"
90
  STDERR.print "    --symlink                 Use symbolic link for tDiary master files\n"
91
  STDERR.print "    --quiet                   Do not display any information\n"
91
  STDERR.print "    --quiet                   Do not display any information\n"
Lines 158-163 Link Here
158
    when 'tdiary.conf-ja' , 'ja'
158
    when 'tdiary.conf-ja' , 'ja'
159
      @lang = 'ja'
159
      @lang = 'ja'
160
      @tdconfig = 'tdiary.conf-ja'
160
      @tdconfig = 'tdiary.conf-ja'
161
    when 'zh'
162
      @lang = 'zh'
163
      @tdconfig = 'tdiary.conf-en'
161
    else
164
    else
162
      raise "Unknown Language : #{value}"
165
      raise "Unknown Language : #{value}"
163
    end
166
    end
Lines 281-286 Link Here
281
        line = "@author_mail = '#{@author_mail}'\n" if line =~ /^\@author_mail\s/
284
        line = "@author_mail = '#{@author_mail}'\n" if line =~ /^\@author_mail\s/
282
        line = "@html_title = '#{@author_name} diary'\n" if line =~ /^\@html_title\s/
285
        line = "@html_title = '#{@author_name} diary'\n" if line =~ /^\@html_title\s/
283
        line = "@index_page = 'http://#{@author_host}/~#{@username}\/'" if line =~ /^\@index_page\s/
286
        line = "@index_page = 'http://#{@author_host}/~#{@username}\/'" if line =~ /^\@index_page\s/
287
	line = "@lang = '#{@lang}'\n" if line =~ /^\@lang\s/
284
        s += line
288
        s += line
285
      }
289
      }
286
    }
290
    }
(-)tdiary/pkg-descr (-1 / +1 lines)
Lines 2-8 Link Here
2
It is possible for diary readers to add comments to your diary.
2
It is possible for diary readers to add comments to your diary.
3
3
4
     -  require Ruby 1.6.3 or later
4
     -  require Ruby 1.6.3 or later
5
     -  currently supported: Japanese, English 
5
     -  currently supported: Japanese, English, Traditional-Chinese
6
 
6
 
7
    tDiary is developed on http://sourceforge.net/projects/tdiary/ .
7
    tDiary is developed on http://sourceforge.net/projects/tdiary/ .
8
    See URL for more information.
8
    See URL for more information.
(-)tdiary/pkg-plist (-1 lines)
Line 1 Link Here
1
%%EXAMPLESDIR%%/tdiaryinst.rb

Return to bug 83840