summaryrefslogtreecommitdiff
path: root/chat/kgb-bot/Makefile
blob: ce20ea8e65ce5870b53511956c297f0fc26b8135 (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# $NetBSD: Makefile,v 1.8 2017/04/19 11:24:36 jperkin Exp $
#

DISTNAME=	App-KGB-1.31
PKGNAME=	${DISTNAME:S/App-KGB/kgb-bot/}
PKGREVISION=	5

CATEGORIES=	chat perl5 scm
MASTER_SITES=	${MASTER_SITE_PERL_CPAN:=App/}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://alioth.debian.org/projects/kgb/
COMMENT=	Notify about VCS commits on IRC

USE_TOOLS+=	perl:run

DEPENDS+=		p5-Class-Accessor-[0-9]*:../../devel/p5-Class-Accessor
DEPENDS+=		p5-File-Touch-[0-9]*:../../devel/p5-File-Touch
DEPENDS+=		p5-IPC-Run-[0-9]*:../../devel/p5-IPC-Run
DEPENDS+=		p5-JSON-RPC-[0-9]*:../../www/p5-JSON-RPC
DEPENDS+=		p5-JSON-XS-[0-9]*:../../converters/p5-JSON-XS
DEPENDS+=		p5-POE-[0-9]*:../../devel/p5-POE
DEPENDS+=		p5-POE-Component-IRC-[0-9]*:../../chat/p5-POE-Component-IRC
DEPENDS+=		p5-POE-Component-Server-SOAP-[0-9]*:../../www/p5-POE-Component-Server-SOAP
DEPENDS+=		p5-Proc-PID-File-[0-9]*:../../devel/p5-Proc-PID-File
DEPENDS+=		p5-Schedule-RateLimiter-[0-9]*:../../devel/p5-Schedule-RateLimiter
DEPENDS+=		p5-SOAP-Lite-[0-9]*:../../net/p5-SOAP-Lite
DEPENDS+=		p5-subversion-[0-9]*:../../devel/p5-subversion
DEPENDS+=		p5-WWW-Shorten-[0-9]*:../../www/p5-WWW-Shorten
DEPENDS+=		p5-YAML-[0-9]*:../../textproc/p5-YAML

RCD_SCRIPTS=		kgb_bot
RCD_SCRIPT_SRC.kgb_bot=	files/kgb_bot.sh

REPLACE_INTERPRETER+=	perl
REPLACE.perl.old=	/usr/bin/perl
REPLACE.perl.new=	${TOOLS_PATH.perl}
REPLACE_FILES.perl=	script/kgb-add-project script/kgb-bot
REPLACE_FILES.perl+=	script/kgb-split-config script/kgb-client
REPLACE_FILES.perl+=	eg/simple-soap-client eg/simple-soap-server

SUBST_CLASSES+=		configs
SUBST_STAGE.configs=	pre-configure
SUBST_FILES.configs=	script/kgb-add-project script/kgb-bot
SUBST_FILES.configs+=	script/kgb-split-config
SUBST_SED.configs=	-e "s,/etc/,${PKG_SYSCONFDIR}/,g"

MAKE_ENV+=		PERL=${TOOLS_PATH.perl}

PERL5_PACKLIST=		auto/App/KGB/.packlist
PERL5_MODULE_TYPE=	Module::Build

.include "../../lang/perl5/module.mk"
.include "../../mk/bsd.pkg.mk"