aboutsummaryrefslogtreecommitdiffstats
path: root/mail/ruby-tmail/Makefile
blob: 311d312337c8a73f8c27c89d5f9f6445c814fa5c (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.8
PORTREVISION=   1
CATEGORIES= mail ruby
MASTER_SITES=   http://www.loveruby.net/archive/
MASTER_SITE_SUBDIR= knu
PKGNAMEPREFIX=  ${RUBY_PKGNAMEPREFIX}
DISTNAME=   ${PORTNAME}-${PORTVERSION}-all
DIST_SUBDIR=    ruby

MAINTAINER= knu@FreeBSD.org

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

USE_RUBY=   yes
USE_RUBY_AMSTD= yes
USE_RUBY_SETUP= yes

CONFIGURE_ARGS= --with=tmail

WRKDIR_TMAIL=   ${WRKSRC}/packages/tmail

do-install:
.if !defined(NOPORTDOCS)
    ${MKDIR} ${RUBY_EXAMPLESDIR}/${PORTNAME}
    ${CP} -R ${WRKDIR_TMAIL}/sample/ ${RUBY_EXAMPLESDIR}/${PORTNAME}/
    ${MKDIR} ${RUBY_DOCDIR}/${PORTNAME}/ja
    ${CP} -R ${WRKDIR_TMAIL}/README.en ${WRKDIR_TMAIL}/doc.en/* ${RUBY_DOCDIR}/${PORTNAME}/
    ${CP} -R ${WRKDIR_TMAIL}/README.ja ${WRKDIR_TMAIL}/doc.ja/* ${RUBY_DOCDIR}/${PORTNAME}/ja/
.endif

.include <bsd.port.mk>