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> |