aboutsummaryrefslogtreecommitdiff
path: root/mail/rubygem-tmail/Makefile
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2000-09-07 07:44:38 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2000-09-07 07:44:38 +0000
commit65ff91142eae892357ed74efdeeda4b9e192d834 (patch)
treef35923c34cade1490b49384542b065518c378507 /mail/rubygem-tmail/Makefile
parentd5769b206fbb9de50356197d9530e02b1e17a5ed (diff)
Update with bsd.ruby.mk.
Notes
Notes: svn path=/head/; revision=32373
Diffstat (limited to 'mail/rubygem-tmail/Makefile')
-rw-r--r--mail/rubygem-tmail/Makefile43
1 files changed, 13 insertions, 30 deletions
diff --git a/mail/rubygem-tmail/Makefile b/mail/rubygem-tmail/Makefile
index ca3cea1881d2..229700020b9b 100644
--- a/mail/rubygem-tmail/Makefile
+++ b/mail/rubygem-tmail/Makefile
@@ -9,26 +9,17 @@ PORTNAME= tmail
PORTVERSION= 0.8.12
CATEGORIES= mail ruby
MASTER_SITES= http://www1.u-netsurf.ne.jp/~brew/mine/soft/
-PKGNAMEPREFIX= ruby-
+PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
DIST_SUBDIR= ruby
MAINTAINER= knu@FreeBSD.org
-BUILD_DEPENDS= ruby:${PORTSDIR}/lang/ruby \
- ${RUBY_SITELIBDIR}/amstd/info.rb:${PORTSDIR}/devel/ruby-amstd
-RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby \
- ${RUBY_SITELIBDIR}/amstd/info.rb:${PORTSDIR}/devel/ruby-amstd \
- ${RUBY_SITELIBDIR}/racc/parser.rb:${PORTSDIR}/devel/ruby-racc-runtime \
+RUN_DEPENDS= ${RUBY_SITELIBDIR}/racc/parser.rb:${PORTSDIR}/devel/ruby-racc-runtime \
${RUBY_SITEARCHLIBDIR}/strscan.so:${PORTSDIR}/devel/ruby-strscan
-PLIST_SUB= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}"
-
-RUBY?= ${LOCALBASE}/bin/ruby
-RUBY_VER?= 1.4
-RUBY_ARCH?= ${ARCH}-freebsd${OSREL}
-
-RUBY_SITELIBDIR?= ${LOCALBASE}/lib/ruby/site_ruby/${RUBY_VER}
-RUBY_SITEARCHLIBDIR?= ${LOCALBASE}/lib/ruby/site_ruby/${RUBY_VER}/${RUBY_ARCH}
+USE_RUBY= yes
+USE_RUBY_AMSTD= yes
+USE_RUBY_SETUP= yes
post-patch:
${PERL} -i -ne '/\btmail\b/ and print' \
@@ -36,23 +27,15 @@ post-patch:
for d in cparse strscanso; do ${RM} -rf ${WRKSRC}/ext/$$d; done
for d in amstd raccrt strscan; do ${RM} -rf ${WRKSRC}/lib/$$d; done
-do-configure:
- @cd ${WRKSRC}; \
- ${SETENV} ${CONFIGURE_ENV} ${RUBY} setup.rb config
-
-do-build:
- @cd ${WRKSRC}; \
- ${SETENV} ${MAKE_ENV} ${RUBY} setup.rb setup
-
do-install:
- @cd ${WRKSRC}; \
- ${SETENV} ${MAKE_ENV} ${RUBY} setup.rb install
.if !defined(NOPORTDOCS)
- ${MKDIR} ${PREFIX}/share/examples/ruby/tmail
- ${CP} -R ${WRKSRC}/sample/ ${PREFIX}/share/examples/ruby/tmail/
- ${MKDIR} ${PREFIX}/share/doc/ruby/tmail/ja
- ${CP} -R ${WRKSRC}/README.en ${WRKSRC}/doc.en/ ${PREFIX}/share/doc/ruby/tmail/
- ${CP} -R ${WRKSRC}/README.ja ${WRKSRC}/doc.ja/ ${PREFIX}/share/doc/ruby/tmail/ja/
+ ${MKDIR} ${RUBY_EXAMPLESDIR}/tmail
+ ${CP} -R ${WRKSRC}/sample/ ${RUBY_EXAMPLESDIR}/tmail/
+ ${MKDIR} ${RUBY_DOCDIR}/tmail/ja
+ ${CP} -R ${WRKSRC}/README.en ${WRKSRC}/doc.en/ ${RUBY_DOCDIR}/tmail/
+ ${CP} -R ${WRKSRC}/README.ja ${WRKSRC}/doc.ja/ ${RUBY_DOCDIR}/tmail/ja/
.endif
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+.include "${PORTSDIR}/Mk/bsd.ruby.mk"
+.include <bsd.port.post.mk>