Mon Jan 23 23:34:37 2012 UTC ()
Initial import of py-pdf-parser-0.3.7:
This tool will parse a PDF document to identify the fundamental
elements used in the analyzed file. It will not render a PDF
document. The code of the parser is quick-and-dirty, I'm not
recommending this as text book case for PDF parsers, but it gets
the job done.
Status:
Vendor Tag: TNF
Release Tags: pkgsrc-20120124
(wiz)
diff -r0 -r1.1.1.1 pkgsrc/textproc/py-pdf-parser/Makefile
diff -r0 -r1.1.1.1 pkgsrc/textproc/py-pdf-parser/PLIST
diff -r0 -r1.1.1.1 pkgsrc/textproc/py-pdf-parser/DESCR
diff -r0 -r1.1.1.1 pkgsrc/textproc/py-pdf-parser/distinfo
diff -r0 -r1.1.1.1 pkgsrc/textproc/py-pdf-parser/patches/patch-pdf-parser.py
# $NetBSD: Makefile,v 1.1.1.1 2012/01/23 23:34:37 wiz Exp $
#
DISTNAME= pdf-parser_V0_3_7
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/_V/-/:S/_/./g}
CATEGORIES= textproc
MASTER_SITES= http://www.didierstevens.com/files/software/
EXTRACT_SUFX= .zip
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://blog.didierstevens.com/programs/pdf-tools/
COMMENT= Parse PDF document to identify the fundamental elements
LICENSE= public-domain
PKG_DESTDIR_SUPPORT= user-destdir
WRKSRC= ${WRKDIR}
USE_LANGUAGES= # none
REPLACE_PYTHON= pdf-parser.py
INSTALLATION_DIRS= bin
PYTHON_VERSIONS_ACCEPTED= 26 25
do-build:
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/pdf-parser.py ${DESTDIR}${PREFIX}/bin
.include "../../lang/python/application.mk"
.include "../../mk/bsd.pkg.mk"
@comment $NetBSD: PLIST,v 1.1.1.1 2012/01/23 23:34:37 wiz Exp $
bin/pdf-parser.py
This tool will parse a PDF document to identify the fundamental
elements used in the analyzed file. It will not render a PDF
document. The code of the parser is quick-and-dirty, I'm not
recommending this as text book case for PDF parsers, but it gets
the job done.
$NetBSD: distinfo,v 1.1.1.1 2012/01/23 23:34:37 wiz Exp $
SHA1 (pdf-parser_V0_3_7.zip) = c5b92dbb06c59a81d8762784612629a772ad2681
RMD160 (pdf-parser_V0_3_7.zip) = b3cab33df88b3dd26475690beaff229e2c4ee703
Size (pdf-parser_V0_3_7.zip) = 7114 bytes
SHA1 (patch-pdf-parser.py) = 88372ba772feb24df570b63bdc63ff5ac48d05d4
$NetBSD: patch-pdf-parser.py,v 1.1.1.1 2012/01/23 23:34:37 wiz Exp $
Do not enforce version restriction; let pkgsrc framework deal with it.
--- pdf-parser.py.orig 2010-01-09 23:56:08.000000000 +0000
+++ pdf-parser.py
@@ -894,5 +894,5 @@ def TestPythonVersion(enforceMaximumVers
print 'Should you encounter problems, please use Python version %d.%d.%d' % __maximum_python_version__
if __name__ == '__main__':
- TestPythonVersion(enforceMaximumVersion=True)
+ TestPythonVersion(enforceMaximumVersion=False)
Main()