summaryrefslogtreecommitdiffstats
path: root/www/p5-WebService-NoPaste/Makefile
blob: b1f600631f5c1dbfb3eb1c7e07415069a60dcf23 (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
# New ports collection makefile for:	p5-WebService-NoPaste
# Date created:		2005-12-26
# Whom:			Gea-Suan Lin <gslin@netnews.NCTU.edu.tw>
#
# $FreeBSD$
#

PORTNAME=	WebService-NoPaste
PORTVERSION=	0.03
CATEGORIES=	www perl5
MASTER_SITES=	CPAN
PKGNAMEPREFIX=	p5-

MAINTAINER=	gslin@gslin.org
COMMENT=	A pastebin web application to upload snippets of text

BUILD_DEPENDS=	${SITE_PERL}/IO/All.pm:${PORTSDIR}/devel/p5-IO-All \
		${SITE_PERL}/LWP/UserAgent.pm:${PORTSDIR}/www/p5-libwww \
		${SITE_PERL}/Spiffy.pm:${PORTSDIR}/devel/p5-Spiffy
RUN_DEPENDS:=	${BUILD_DEPENDS}

PERL_CONFIGURE=	yes

MAN3=		WebService::NoPaste.3

OPTIONS=	X11	"Enable X11 Clipboard support"	off

.include <bsd.port.pre.mk>

.if defined(WITH_X11)
BUILD_DEPENDS+=	${SITE_PERL}/Clipboard.pm:${PORTSDIR}/x11/p5-Clipboard
.else
EXTRA_PATCHES+=	${FILESDIR}/extrapatch-lib-WebService-NoPaste.pm
.endif

post-patch:
	@${PERL} -pi -e "s|/usr/bin/perl|${PERL}|;" ${WRKSRC}/nopaste
.if !defined(WITH_X11)
	@${RM} ${WRKSRC}/lib/WebService/NoPaste.pm.orig
.endif

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