summaryrefslogtreecommitdiffstats
path: root/www/p5-RTx-Shredder/Makefile
blob: 93556c93302eeb15759db185d69e739e6aa5da0b (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
# New ports collection Makefile for: RTx-Shredder
# Date created:	        23 August 2008
# Whom:                 Matthew Seaman <m.seaman@infracaninophile.co.uk>
#
# $FreeBSD$
#

PORTNAME=	RTx-Shredder
PORTVERSION=	0.07
PORTREVISION=	2
CATEGORIES=	www perl5
MASTER_SITES=	CPAN
PKGNAMEPREFIX=	p5-

MAINTAINER=	m.seaman@infracaninophile.co.uk
COMMENT=	Cleanup RT database

BUILD_DEPENDS=	${LOCALBASE}/${RTHOME}/bin/rt:${PORTSDIR}/www/rt36 \
		p5-DBIx-SearchBuilder>=1.31:${PORTSDIR}/databases/p5-DBIx-SearchBuilder \
		p5-Exception-Class>=1.23:${PORTSDIR}/devel/p5-Exception-Class \
		${SITE_PERL}/${PERL_ARCH}/DBD/SQLite.pm:${PORTSDIR}/databases/p5-DBD-SQLite \
		${SITE_PERL}/Test/Deep.pm:${PORTSDIR}/devel/p5-Test-Deep
RUN_DEPENDS=	${BUILD_DEPENDS}

RTHOME?=	rt3
PLIST_SUB+=	RTHOME=${RTHOME}

PERL_CONFIGURE=	yes
CONFIGURE_ENV+=	RTHOME=${PREFIX}/${RTHOME}

MAN3=		RTx::Shredder.3				\
		RTx::Shredder::Constants.3		\
		RTx::Shredder::Dependencies.3		\
		RTx::Shredder::Plugin.3			\
		RTx::Shredder::Plugin::Attachments.3	\
		RTx::Shredder::Plugin::Base.3		\
		RTx::Shredder::Plugin::Objects.3	\
		RTx::Shredder::Plugin::Tickets.3	\
		RTx::Shredder::Plugin::Users.3		\
		RTx::Shredder::Record.3

# Don't use normal CONFIGURE_ARGS.  Disable doc_?????_indstall targets to
# suppress installing perllocal.pod.  This duplicates code from bsd.perl.mk
# rather undesirably.
do-configure:
	@cd ${CONFIGURE_WRKSRC} && \
	    ${SETENV} ${CONFIGURE_ENV} ${PERL5} ./${CONFIGURE_SCRIPT} && \
	    ${PERL5} -pi -e 's/ doc_(perl|site|\$$\(INSTALLDIRS\))_install$$//' Makefile

.include <bsd.port.mk>
OpenPOWER on IntegriCloud