2013-09-20 22:43:59 +00:00
|
|
|
# Created by: Rong-En Fan <rafan@FreeBSD.org>
|
2006-09-12 15:55:23 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= pkpgcounter
|
2008-08-26 06:13:22 +00:00
|
|
|
PORTVERSION= 3.50
|
2010-02-05 11:46:55 +00:00
|
|
|
PORTREVISION= 2
|
2006-09-12 15:55:23 +00:00
|
|
|
CATEGORIES= print python
|
|
|
|
MASTER_SITES= http://www.pykota.com/software/pkpgcounter/download/tarballs/
|
|
|
|
|
2012-02-26 12:20:47 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2012-08-02 09:02:43 +00:00
|
|
|
COMMENT= Count pages and ink coverage percent
|
2006-09-12 15:55:23 +00:00
|
|
|
|
|
|
|
BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/PIL.pth:${PORTSDIR}/graphics/py-imaging
|
2012-06-10 18:42:48 +00:00
|
|
|
RUN_DEPENDS:= ${BUILD_DEPENDS}
|
2006-09-12 15:55:23 +00:00
|
|
|
|
2011-03-23 15:53:22 +00:00
|
|
|
LICENSE= GPLv3
|
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
|
2006-09-12 15:55:23 +00:00
|
|
|
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
|
|
|
|
|
2013-09-20 22:43:59 +00:00
|
|
|
NO_STAGE= yes
|
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>
|