summaryrefslogtreecommitdiff
path: root/archivers/p5-IO-Compress/Makefile
blob: 8f2d3fac0ac9e73afd30dde8a73a6d0ba8cdfd9b (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
55
56
57
58
59
60
# Created by: Martin Matuska <mm@FreeBSD.org>
# $FreeBSD$

PORTNAME=	IO-Compress
PORTVERSION=	2.062
CATEGORIES=	archivers perl5
MASTER_SITES=	CPAN
MASTER_SITE_SUBDIR=	CPAN:PMQS
PKGNAMEPREFIX=	p5-

MAINTAINER=	sunpoet@FreeBSD.org
COMMENT=	Perl5 compression modules (bzip2, deflate, gzip, zlib, zip)

LICENSE=	ART10 GPLv1
LICENSE_COMB=	dual

BUILD_DEPENDS=	p5-Compress-Raw-Bzip2>=2.062:${PORTSDIR}/archivers/p5-Compress-Raw-Bzip2 \
		p5-Compress-Raw-Zlib>=2.062:${PORTSDIR}/archivers/p5-Compress-Raw-Zlib
RUN_DEPENDS:=	${BUILD_DEPENDS}
TEST_DEPENDS=	p5-Test-Pod>=1:${PORTSDIR}/devel/p5-Test-Pod

CONFLICTS=	p5-Compress-Zlib-2* p5-IO-Compress-Base-2* p5-IO-Compress-Zlib-2* p5-IO-Compress-Bzip2-2*

USE_PERL5=	configure
USES=		perl5
NO_STAGE=	yes

MAN3=		Compress::Zlib.3 \
		File::GlobMapper.3 \
		IO::Compress::Base.3 \
		IO::Compress::Bzip2.3 \
		IO::Compress::Deflate.3 \
		IO::Compress::FAQ.3 \
		IO::Compress::Gzip.3 \
		IO::Compress::RawDeflate.3 \
		IO::Compress::Zip.3 \
		IO::Uncompress::AnyInflate.3 \
		IO::Uncompress::AnyUncompress.3 \
		IO::Uncompress::Base.3 \
		IO::Uncompress::Bunzip2.3 \
		IO::Uncompress::Gunzip.3 \
		IO::Uncompress::Inflate.3 \
		IO::Uncompress::RawInflate.3 \
		IO::Uncompress::Unzip.3

.include <bsd.port.pre.mk>

.if ${PERL_LEVEL} >= 501600
PLIST_SUB+=	EXE_FILES="@comment "
.else
MAN1+=		zipdetails.1
PLIST_SUB+=	EXE_FILES=""
.endif

post-patch:
.if ${PERL_LEVEL} >= 501600
	@${REINPLACE_CMD} -e '/EXE_FILES/d' ${WRKSRC}/Makefile.PL
.endif

.include <bsd.port.post.mk>