Lines 6-13
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= tdiary |
8 |
PORTNAME= tdiary |
9 |
PORTVERSION= 2.0.2 |
9 |
PORTVERSION= 2.0.3 |
10 |
PORTREVISION= 1 |
|
|
11 |
CATEGORIES?= www ruby |
10 |
CATEGORIES?= www ruby |
12 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \ |
11 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \ |
13 |
http://www.tdiary.org/download/ |
12 |
http://www.tdiary.org/download/ |
Lines 18-28
Link Here
|
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-[0-9]* |
20 |
CONFLICTS?= tdiary-devel-[0-9]* \ |
|
|
21 |
ja-tdiary-[0-9]* \ |
22 |
ja-tdiary-devel-[0-9]* |
22 |
PKGMESSAGE= ${WRKDIR}/pkg-message |
23 |
PKGMESSAGE= ${WRKDIR}/pkg-message |
23 |
USE_RUBY= yes |
24 |
USE_RUBY= yes |
24 |
|
25 |
|
25 |
.if !defined(WITHOUT_RUBY_FEATURES) |
26 |
.if !defined(WITHOUT_RUBY_FEATURES) |
26 |
USE_RUBY_FEATURES= fileutils |
27 |
USE_RUBY_FEATURES= fileutils |
27 |
.endif |
28 |
.endif |
28 |
|
29 |
|
Lines 36-47
Link Here
|
36 |
|
37 |
|
37 |
#TDIARY_LANG ja:Japanese en:English zh:Traditional-Chinese |
38 |
#TDIARY_LANG ja:Japanese en:English zh:Traditional-Chinese |
38 |
|
39 |
|
39 |
.if !defined(TDIARY_LANG) |
40 |
.if !defined(TDIARY_LANG) || ( defined(TDIARY_LANG) && ${TDIARY_LANG} != ja ) |
40 |
TDIARY_LANG= en |
41 |
TDIARY_LANG= en |
41 |
.else |
|
|
42 |
.if ${TDIARY_LANG} == "tdiary.conf-ja" |
43 |
TDIARY_LANG= ja |
44 |
.endif |
45 |
.endif |
42 |
.endif |
46 |
.if defined(WITH_TDIARY_UCONV) |
43 |
.if defined(WITH_TDIARY_UCONV) |
47 |
RUN_DEPENDS+= ${RUBY_SITEARCHLIBDIR}/uconv.so:${PORTSDIR}/japanese/ruby-uconv |
44 |
RUN_DEPENDS+= ${RUBY_SITEARCHLIBDIR}/uconv.so:${PORTSDIR}/japanese/ruby-uconv |
Lines 49-63
Link Here
|
49 |
.if defined(WITH_TDIARY_NORA) |
46 |
.if defined(WITH_TDIARY_NORA) |
50 |
RUN_DEPENDS+= ${RUBY_SITEARCHLIBDIR}/web/escape_ext.so:${PORTSDIR}/www/ruby-nora |
47 |
RUN_DEPENDS+= ${RUBY_SITEARCHLIBDIR}/web/escape_ext.so:${PORTSDIR}/www/ruby-nora |
51 |
.endif |
48 |
.endif |
|
|
49 |
|
52 |
.include <bsd.port.pre.mk> |
50 |
.include <bsd.port.pre.mk> |
53 |
|
51 |
|
54 |
.if ${RUBY_VERSION_CODE} < 167 |
52 |
.if ${RUBY_VERSION_CODE} < 167 |
55 |
IGNORE= Needs ruby 1.6.7 or higher, check ruby's version and try again |
53 |
IGNORE= only works with Ruby 1.6.7 or later |
56 |
.endif |
54 |
.endif |
57 |
|
55 |
|
58 |
do-install: |
56 |
do-install: |
59 |
@-${MKDIR} ${TDIARYDIR} |
57 |
@-${MKDIR} ${TDIARYDIR} |
60 |
@${SED} -e 's,@@@@PREFIX@@@@,${PREFIX},g' \ |
58 |
@${SED} -e 's,#!/usr/bin/env ruby,#!${RUBY},' \ |
|
|
59 |
-e 's,@@@@PREFIX@@@@,${PREFIX},g' \ |
61 |
-e 's,@@@@LANG@@@@,${TDIARY_LANG},g' \ |
60 |
-e 's,@@@@LANG@@@@,${TDIARY_LANG},g' \ |
62 |
${FILESDIR}/tdiaryinst.rb.in > ${TDIARYDIR}/tdiaryinst.rb |
61 |
${FILESDIR}/tdiaryinst.rb.in > ${TDIARYDIR}/tdiaryinst.rb |
63 |
@${CP} -pR ${WRKSRC}/ ${TDIARYDIR} |
62 |
@${CP} -pR ${WRKSRC}/ ${TDIARYDIR} |