summaryrefslogtreecommitdiff
path: root/irc/keitairc2/Makefile
blob: 56b9e493f4fcf1537f8c2c33f5e8f138d9284fce (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
42
43
44
45
46
47
48
49
50
# New ports collection makefile for:	keitairc2
# Date created:		18 Jan 2008
# Whom:			Makoto Matsushita <matusita@FreeBSD.ORG>
#
# $FreeBSD$
#

PORTNAME=		keitairc
PORTVERSION=		2.0
#PORTREVISION=		1
CATEGORIES=		irc
MASTER_SITES=		SFJP
MASTER_SITE_SUBDIR=	${PORTNAME}/47485
#DISTNAME=		keitairc-2.0

#PATCH_SITES=		http://home.jp.FreeBSD.org/~matusita/keitairc2/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	IRC proxy for mobilephone that have a web interface

RUN_DEPENDS=	p5-POE-Component-IRC>=0:${PORTSDIR}/irc/p5-POE-Component-IRC \
		p5-URI>=0:${PORTSDIR}/net/p5-URI \
		p5-libwww>=0:${PORTSDIR}/www/p5-libwww \
		p5-HTML-Template>=0:${PORTSDIR}/www/p5-HTML-Template \
		p5-XML-Simple>=0:${PORTSDIR}/textproc/p5-XML-Simple \
		p5-Proc-Daemon>=0:${PORTSDIR}/devel/p5-Proc-Daemon \
		p5-AppConfig>=0:${PORTSDIR}/devel/p5-AppConfig

CONFLICTS=	keitairc-1.*
NO_BUILD=	yes
USE_PERL5=	5.8.0+
USE_PERL5_REASON= runs on perl 5.8 or later

post-extract:
	${FIND} ${WRKSRC} -name .cvsignore | ${XARGS} ${RM} -rf

post-patch:
	${FIND} ${WRKSRC} -name '*.orig' | ${XARGS} ${RM} -rf
	${REINPLACE_CMD} -i '' -e "s,^#!/usr/bin/perl$$,#!${PERL}," ${WRKSRC}/keitairc
	${REINPLACE_CMD} -i '' -e "s,/usr/share/keitairc/lib,${DATADIR}/lib,"  ${WRKSRC}/keitairc
	${REINPLACE_CMD} -i '' -e "s,__KEITAIRC_DATA_DIR__,${DATADIR}/lib,"  ${WRKSRC}/lib/Keitairc/Config.pm

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/keitairc ${PREFIX}/bin
	${MKDIR} ${DATADIR}
.for dir in doc etc lib
	${CP} -R ${WRKSRC}/${dir} ${DATADIR}
.endfor

.include <bsd.port.mk>