summaryrefslogtreecommitdiffstats
path: root/print/pkpgcounter/Makefile
blob: f9484c2d15c1cf18687c5fda1e8e0e4eef7e3f2e (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
# Ports collection Makefile for:	pkpgcounter
# Date created:				Jan 1 2006
# Whom:					Rong-En Fan <rafan@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	pkpgcounter
PORTVERSION=	3.50
PORTREVISION=	2
CATEGORIES=	print python
MASTER_SITES=	http://www.pykota.com/software/pkpgcounter/download/tarballs/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Count pages and ink coverage percent

BUILD_DEPENDS=	${PYTHON_SITELIBDIR}/PIL.pth:${PORTSDIR}/graphics/py-imaging
RUN_DEPENDS:=	${BUILD_DEPENDS}

LICENSE=	GPLv3
LICENSE_FILE=	${WRKSRC}/COPYING

USE_PYTHON=	yes
USE_PYDISTUTILS=	yes

MAN1=		${PORTNAME}.1

PORTDOCS=	README COPYING BUGS CREDITS NEWS
.ifdef NOPORTDOCS
_SED_NODOCS=	-e '/^data_files.append.*docfiles/s|.*||'
.endif

post-patch:
	@${REINPLACE_CMD} \
		-e '/^directory.*man1/s|=.*|= "man/man1"|' \
		-e '/^docdir/s|".*"|"${DOCSDIR}"|' \
		${_SED_NODOCS} ${WRKSRC}/setup.py

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