? work Index: Makefile =================================================================== RCS file: /home/pcvs/ports/print/pkpgcounter/Makefile,v retrieving revision 1.3 diff -u -r1.3 Makefile --- Makefile 31 Oct 2006 04:55:09 -0000 1.3 +++ Makefile 2 Nov 2006 17:05:14 -0000 @@ -8,28 +8,26 @@ PORTNAME= pkpgcounter PORTVERSION= 2.11 CATEGORIES= print python -MASTER_SITES= http://www.pykota.com/software/pkpgcounter/download/tarballs/ +MASTER_SITES= http://www.pykota.com/software/pkpgcounter/download/tarballs/ CSME MAINTAINER= rafan@FreeBSD.org -COMMENT= A generic Page Description Language parser +COMMENT= Counts pages and ink coverage percent BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/PIL.pth:${PORTSDIR}/graphics/py-imaging -RUN_DEPENDS= ${BUILD_DEPENDS} +RUN_DEPENDS:= ${BUILD_DEPENDS} USE_PYTHON= yes USE_PYDISTUTILS= yes - -MAN1= pkpgcounter.1 -NOMANCOMPRES= no - -PORTDOCS= README COPYING BUGS CREDITS NEWS - -post-install: -.if !defined(NOPORTDOCS) - ${MKDIR} ${DOCSDIR} - for f in ${PORTDOCS}; do \ - ${INSTALL_MAN} ${WRKSRC}/$$f ${DOCSDIR}; \ - done +PORTDOCS= BUGS COPYING CREDITS NEWS README +MAN1= ${PORTNAME}.1 +.ifdef NOPORTDOCS +_SED_NODOCS= -e '/^data_files.append.*docfiles/s|.*||' .endif +post-patch: + @${REINPLACE_CMD} \ + -e '/^directory.*man1/s|=.*|= "${MAN1PREFIX}/man/man1"|' \ + -e '/^docdir/s|".*"|"${DOCSDIR}"|' \ + ${_SED_NODOCS} ${WRKSRC}/setup.py + .include Index: pkg-descr =================================================================== RCS file: /home/pcvs/ports/print/pkpgcounter/pkg-descr,v retrieving revision 1.2 diff -u -r1.2 pkg-descr --- pkg-descr 15 Sep 2006 13:00:07 -0000 1.2 +++ pkg-descr 2 Nov 2006 17:05:14 -0000 @@ -2,17 +2,22 @@ either count the number of pages or compute the percent of ink coverage needed to print various types of documents. -It currently supports the following file types: - - PostScript (both DSC compliant and binary) - - PDF - - PCL3/4/5 - - PCLXL (aka PCL6) - - DVI - - TIFF - - ESC/P2 - - OpenDocument (ISO/IEC DIS 26300) - - Zenographics ZjStream - - Samsung QPDL (aka SPL2) - - Samsung SPL1 +It currently recognizes the following file formats : +* PostScript (both DSC compliant and binary) +* PDF +* PCL3/4/5 +* PCLXL (aka PCL6) +* DVI +* Plain text +* TIFF +* ESC/P2 +* OpenDocument (ISO/IEC DIS 26300) +* Zenographics ZjStream +* Samsung QPDL (aka SPL2) +* Samsung SPL1 + +The five latter ones, as well as some TIFF documents, are currently +only supported in page counting mode. WWW: http://www.pykota.com/software/pkpgcounter/ +Author: Jerome Alet Index: files/patch-setup.py =================================================================== RCS file: files/patch-setup.py diff -N files/patch-setup.py --- files/patch-setup.py 12 Sep 2006 15:55:23 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,16 +0,0 @@ ---- setup.py.orig Thu May 18 05:36:05 2006 -+++ setup.py Fri Jun 9 06:46:03 2006 -@@ -53,12 +53,8 @@ - lang = mofile.split(os.sep)[1] - directory = os.sep.join(["share", "locale", lang, "LC_MESSAGES"]) - data_files.append((directory, [ mofile ])) -- --docdir = "share/doc/pkpgcounter" --docfiles = ["README", "COPYING", "BUGS", "CREDITS", "NEWS"] --data_files.append((docdir, docfiles)) - --directory = os.sep.join(["share", "man", "man1"]) -+directory = os.sep.join(["man", "man1"]) - manpages = glob.glob(os.sep.join(["man", "*.1"])) - data_files.append((directory, manpages)) -