Lines 6-12
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= tdiary |
8 |
PORTNAME= tdiary |
9 |
PORTVERSION= 2.0.4 |
9 |
PORTVERSION= 2.2.0 |
10 |
CATEGORIES?= www ruby |
10 |
CATEGORIES?= www ruby |
11 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \ |
11 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \ |
12 |
http://www.tdiary.org/download/ |
12 |
http://www.tdiary.org/download/ |
Lines 23-35
Link Here
|
23 |
PKGMESSAGE= ${WRKDIR}/pkg-message |
23 |
PKGMESSAGE= ${WRKDIR}/pkg-message |
24 |
USE_RUBY= yes |
24 |
USE_RUBY= yes |
25 |
|
25 |
|
26 |
.if !defined(WITHOUT_RUBY_FEATURES) |
26 |
RUBY_SHEBANG_FILES= index.rb update.rb misc/convert2.rb \ |
27 |
USE_RUBY_FEATURES= fileutils |
27 |
misc/plugin/amazon/amazonimg.rb misc/plugin/pingback/pb.rb \ |
28 |
.endif |
28 |
misc/plugin/squeeze.rb misc/plugin/trackback/tb.rb \ |
29 |
|
29 |
misc/plugin/xmlrpc/xmlrpc.rb misc/style/etdiary/etdiary_test.rb \ |
30 |
RUBY_SHEBANG_FILES= index.rb update.rb misc/convert2.rb misc/plugin/squeeze.rb \ |
30 |
tdiary/wiki_style_test.rb |
31 |
misc/plugin/windex.rb \ |
|
|
32 |
misc/plugin/trackback/tb.rb misc/style/etdiary/etdiary_test.rb |
33 |
|
31 |
|
34 |
PLIST_FILES= ${TDIARYDIR:S|${LOCALBASE}/||}/tdiaryinst.rb |
32 |
PLIST_FILES= ${TDIARYDIR:S|${LOCALBASE}/||}/tdiaryinst.rb |
35 |
TDIARYDIR= ${EXAMPLESDIR} |
33 |
TDIARYDIR= ${EXAMPLESDIR} |
Lines 43-58
Link Here
|
43 |
.if defined(WITH_TDIARY_UCONV) |
41 |
.if defined(WITH_TDIARY_UCONV) |
44 |
RUN_DEPENDS+= ${RUBY_SITEARCHLIBDIR}/uconv.so:${PORTSDIR}/japanese/ruby-uconv |
42 |
RUN_DEPENDS+= ${RUBY_SITEARCHLIBDIR}/uconv.so:${PORTSDIR}/japanese/ruby-uconv |
45 |
.endif |
43 |
.endif |
46 |
.if defined(WITH_TDIARY_NORA) |
44 |
.if !defined(WITHOUT_TDIARY_NORA) |
47 |
RUN_DEPENDS+= ${RUBY_SITEARCHLIBDIR}/web/escape_ext.so:${PORTSDIR}/www/ruby-nora |
45 |
RUN_DEPENDS+= ${RUBY_SITEARCHLIBDIR}/web/escape_ext.so:${PORTSDIR}/www/ruby-nora |
48 |
.endif |
46 |
.endif |
49 |
|
47 |
|
50 |
.include <bsd.port.pre.mk> |
|
|
51 |
|
52 |
.if ${RUBY_VERSION_CODE} < 167 |
53 |
IGNORE= only works with Ruby 1.6.7 or later |
54 |
.endif |
55 |
|
56 |
do-install: |
48 |
do-install: |
57 |
@-${MKDIR} ${TDIARYDIR} |
49 |
@-${MKDIR} ${TDIARYDIR} |
58 |
@${SED} -e 's,#!/usr/bin/env ruby,#!${RUBY},' \ |
50 |
@${SED} -e 's,#!/usr/bin/env ruby,#!${RUBY},' \ |
Lines 74-77
Link Here
|
74 |
@${SED} -e 's|%%EXAMPLESDIR%%|${EXAMPLESDIR}|' < ${FILESDIR}/pkg-message.in > ${PKGMESSAGE} |
66 |
@${SED} -e 's|%%EXAMPLESDIR%%|${EXAMPLESDIR}|' < ${FILESDIR}/pkg-message.in > ${PKGMESSAGE} |
75 |
@${CAT} ${PKGMESSAGE} |
67 |
@${CAT} ${PKGMESSAGE} |
76 |
|
68 |
|
77 |
.include <bsd.port.post.mk> |
69 |
.include <bsd.port.mk> |