freebsd-ports/www/p5-WebService-NoPaste/Makefile
Andrej Zverev 3982ced0ba - Remove SITE_PERL from *_DEPENDS
Approved by: portmgr@ (bapt@)
2012-06-30 05:52:54 +00:00

43 lines
1004 B
Makefile

# 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= p5-IO-All>=0:${PORTSDIR}/devel/p5-IO-All \
p5-libwww>=0:${PORTSDIR}/www/p5-libwww \
p5-Spiffy>=0:${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+= p5-Clipboard>=0:${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>