aboutsummaryrefslogtreecommitdiff
path: root/misc/phraze/Makefile
blob: d319ed6c8cca9e45999746269ed1811013c06c4d (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
# Created by: Michael L. Hostbaek <mich@freebsdcluster.org>
# $FreeBSD$

PORTNAME=	phraze
PORTVERSION=	0.4
CATEGORIES=	misc
MASTER_SITES=	http://www.incava.org/pub/phraze/

MAINTAINER=	mich@FreeBSD.org
COMMENT=	Converts telephone number to combinations of valid words

USE_RUBY=	yes
NO_BUILD=	yes

post-patch:
	@${REINPLACE_CMD} -e 's|^#!/usr/bin/ruby|#!${RUBY}|; \
	s|/usr/share/phraze|${DATADIR}|' ${WRKSRC}/phraze ${WRKSRC}/phraze.1

do-install:
	@${MKDIR} ${STAGEDIR}${DATADIR}
	${INSTALL_DATA} ${WRKSRC}/wordlist.phr ${STAGEDIR}${DATADIR}
	${INSTALL_SCRIPT} ${WRKSRC}/phraze ${STAGEDIR}${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/phraze.1 ${STAGEDIR}${MANPREFIX}/man/man1

.include <bsd.port.mk>