aboutsummaryrefslogtreecommitdiffstats
path: root/mail/rubygem-tmail/Makefile
blob: f813734ef14f8dcc14c712ffb201ede072ab5b34 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# New ports collection makefile for:    Ruby-TMail
# Date created:     22 Aug 2000
# Whom:         Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD$
#

PORTNAME=   tmail
PORTVERSION=    0.9.3
CATEGORIES= mail ruby
MASTER_SITES=   ${MASTER_SITE_LOCAL} \
        http://www1.u-netsurf.ne.jp/~brew/mine/soft/
MASTER_SITE_SUBDIR= knu
PKGNAMEPREFIX=  ${RUBY_PKGNAMEPREFIX}
DIST_SUBDIR=    ruby

MAINTAINER= knu@FreeBSD.org

RUN_DEPENDS=    ${RUBY_SITELIBDIR}/racc/parser.rb:${PORTSDIR}/devel/ruby-racc-runtime \
        ${RUBY_SITELIBDIR}/strscan.rb:${PORTSDIR}/devel/ruby-strscan

USE_RUBY=   yes
USE_RUBY_AMSTD= yes
USE_RUBY_SETUP= yes

post-patch:
    ${RUBY} -i -ne '/\btmail\b/ and print' \
        ${WRKSRC}/ext/PATHCONV ${WRKSRC}/lib/PATHCONV
    for d in cparse cscan; do ${RM} -rf ${WRKSRC}/ext/$$d; done
    for d in amstd raccrt strscan; do ${RM} -rf ${WRKSRC}/lib/$$d; done

do-install:
.if !defined(NOPORTDOCS)
    ${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>