summaryrefslogtreecommitdiff
path: root/mail/ruby-tmail/Makefile
blob: 1c0db333d4a350577b3bdfd401c59d201ab4d80d (plain)
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
# $NetBSD: Makefile,v 1.2 2003/07/17 21:47:00 grant Exp $
# FreeBSD: ports/mail/ruby-tmail/Makefile,v 1.10 2001/01/27 09:46:32 knu Exp

DISTNAME=	tmail-0.9.4
PKGNAME=	${RUBY_PKGNAMEPREFIX}${DISTNAME}
CATEGORIES=	mail
MASTER_SITES=	http://www.xdsl.ne.jp/Cd/aamine/soft/

MAINTAINER=	taca@NetBSD.org
HOMEPAGE=	http://www.xdsl.ne.jp/Cd/aamine/
COMMENT=	Mail manipulating library for Ruby including MIME multipart support

DEPENDS+= 	${RUBY_PKGNAMEPREFIX}racc-runtime>=1.3.6:../../devel/ruby-racc-runtime
DEPENDS+=	${RUBY_PKGNAMEPREFIX}strscan>=0.6.1:../../devel/ruby-strscan

DIST_SUBDIR=	ruby
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

post-install:
	${INSTALL_DATA_DIR} ${RUBY_EXAMPLESDIR}/tmail
	${CP} -R ${WRKSRC}/sample/* ${RUBY_EXAMPLESDIR}/tmail
	${INSTALL_DATA_DIR} ${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

.include "../../lang/ruby-base/Makefile.common"
.include "../../mk/bsd.pkg.mk"