2006-09-12 15:55:23 +00:00
|
|
|
# Ports collection Makefile for: pkpgcounter
|
|
|
|
# Date created: Jan 1 2006
|
|
|
|
# Whom: Rong-En Fan <rafan@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= pkpgcounter
|
2007-09-12 04:37:11 +00:00
|
|
|
PORTVERSION= 3.00
|
2006-09-12 15:55:23 +00:00
|
|
|
CATEGORIES= print python
|
|
|
|
MASTER_SITES= http://www.pykota.com/software/pkpgcounter/download/tarballs/
|
|
|
|
|
|
|
|
MAINTAINER= rafan@FreeBSD.org
|
2006-11-03 15:28:29 +00:00
|
|
|
COMMENT= Count pages and ink coverage precent
|
2006-09-12 15:55:23 +00:00
|
|
|
|
|
|
|
BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/PIL.pth:${PORTSDIR}/graphics/py-imaging
|
|
|
|
RUN_DEPENDS= ${BUILD_DEPENDS}
|
|
|
|
|
|
|
|
USE_PYTHON= yes
|
|
|
|
USE_PYDISTUTILS= yes
|
|
|
|
|
2006-11-03 15:28:29 +00:00
|
|
|
MAN1= ${PORTNAME}.1
|
2006-09-12 15:55:23 +00:00
|
|
|
|
|
|
|
PORTDOCS= README COPYING BUGS CREDITS NEWS
|
2006-11-03 15:28:29 +00:00
|
|
|
.ifdef NOPORTDOCS
|
|
|
|
_SED_NODOCS= -e '/^data_files.append.*docfiles/s|.*||'
|
2006-09-12 15:55:23 +00:00
|
|
|
.endif
|
|
|
|
|
2006-11-03 15:28:29 +00:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} \
|
|
|
|
-e '/^directory.*man1/s|=.*|= "man/man1"|' \
|
|
|
|
-e '/^docdir/s|".*"|"${DOCSDIR}"|' \
|
|
|
|
${_SED_NODOCS} ${WRKSRC}/setup.py
|
|
|
|
|
2006-09-12 15:55:23 +00:00
|
|
|
.include <bsd.port.mk>
|