diff options
author | Rong-En Fan <rafan@FreeBSD.org> | 2006-11-03 15:28:29 +0000 |
---|---|---|
committer | Rong-En Fan <rafan@FreeBSD.org> | 2006-11-03 15:28:29 +0000 |
commit | 628fb6cc188e09b525aafdfe588ca88fd3570183 (patch) | |
tree | 66db0b77237c76247c108f8e7cb3f9ad634ce363 /print | |
parent | ab913b0f3899701ac7bb95627c1c66d0031a9781 (diff) |
- Some tweaks, no patch required
Submitted by: sat
Notes
Notes:
svn path=/head/; revision=176280
Diffstat (limited to 'print')
-rw-r--r-- | print/pkpgcounter/Makefile | 20 | ||||
-rw-r--r-- | print/pkpgcounter/files/patch-setup.py | 16 | ||||
-rw-r--r-- | print/pkpgcounter/pkg-descr | 3 |
3 files changed, 13 insertions, 26 deletions
diff --git a/print/pkpgcounter/Makefile b/print/pkpgcounter/Makefile index 505c22609b35..0c531f83d05b 100644 --- a/print/pkpgcounter/Makefile +++ b/print/pkpgcounter/Makefile @@ -11,7 +11,7 @@ CATEGORIES= print python MASTER_SITES= http://www.pykota.com/software/pkpgcounter/download/tarballs/ MAINTAINER= rafan@FreeBSD.org -COMMENT= A generic Page Description Language parser +COMMENT= Count pages and ink coverage precent BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/PIL.pth:${PORTSDIR}/graphics/py-imaging RUN_DEPENDS= ${BUILD_DEPENDS} @@ -19,17 +19,17 @@ RUN_DEPENDS= ${BUILD_DEPENDS} USE_PYTHON= yes USE_PYDISTUTILS= yes -MAN1= pkpgcounter.1 -NOMANCOMPRES= no +MAN1= ${PORTNAME}.1 PORTDOCS= README COPYING BUGS CREDITS NEWS - -post-install: -.if !defined(NOPORTDOCS) - ${MKDIR} ${DOCSDIR} - for f in ${PORTDOCS}; do \ - ${INSTALL_MAN} ${WRKSRC}/$$f ${DOCSDIR}; \ - done +.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> diff --git a/print/pkpgcounter/files/patch-setup.py b/print/pkpgcounter/files/patch-setup.py deleted file mode 100644 index 0fc88e53a61e..000000000000 --- a/print/pkpgcounter/files/patch-setup.py +++ /dev/null @@ -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)) - diff --git a/print/pkpgcounter/pkg-descr b/print/pkpgcounter/pkg-descr index 9e9c80c815d2..28e8176c83e5 100644 --- a/print/pkpgcounter/pkg-descr +++ b/print/pkpgcounter/pkg-descr @@ -15,4 +15,7 @@ It currently supports the following file types: - 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/ |