diff options
author | wiz <wiz@pkgsrc.org> | 2012-01-23 23:34:37 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2012-01-23 23:34:37 +0000 |
commit | c9b36bd3f106be2064c8167c1fb473b7846d6695 (patch) | |
tree | 34cd7e773505e4cc9839ffce891426682f86f0d6 /textproc | |
parent | ca7111d519e139f0987bf2f6b450e44991af0e56 (diff) | |
download | pkgsrc-c9b36bd3f106be2064c8167c1fb473b7846d6695.tar.gz |
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.
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/py-pdf-parser/DESCR | 5 | ||||
-rw-r--r-- | textproc/py-pdf-parser/Makefile | 32 | ||||
-rw-r--r-- | textproc/py-pdf-parser/PLIST | 2 | ||||
-rw-r--r-- | textproc/py-pdf-parser/distinfo | 6 | ||||
-rw-r--r-- | textproc/py-pdf-parser/patches/patch-pdf-parser.py | 13 |
5 files changed, 58 insertions, 0 deletions
diff --git a/textproc/py-pdf-parser/DESCR b/textproc/py-pdf-parser/DESCR new file mode 100644 index 00000000000..d8528b148a0 --- /dev/null +++ b/textproc/py-pdf-parser/DESCR @@ -0,0 +1,5 @@ +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. diff --git a/textproc/py-pdf-parser/Makefile b/textproc/py-pdf-parser/Makefile new file mode 100644 index 00000000000..218775a8e57 --- /dev/null +++ b/textproc/py-pdf-parser/Makefile @@ -0,0 +1,32 @@ +# $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" diff --git a/textproc/py-pdf-parser/PLIST b/textproc/py-pdf-parser/PLIST new file mode 100644 index 00000000000..35c2fb0af3e --- /dev/null +++ b/textproc/py-pdf-parser/PLIST @@ -0,0 +1,2 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2012/01/23 23:34:37 wiz Exp $ +bin/pdf-parser.py diff --git a/textproc/py-pdf-parser/distinfo b/textproc/py-pdf-parser/distinfo new file mode 100644 index 00000000000..816ae281fd0 --- /dev/null +++ b/textproc/py-pdf-parser/distinfo @@ -0,0 +1,6 @@ +$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 diff --git a/textproc/py-pdf-parser/patches/patch-pdf-parser.py b/textproc/py-pdf-parser/patches/patch-pdf-parser.py new file mode 100644 index 00000000000..44ded1ec939 --- /dev/null +++ b/textproc/py-pdf-parser/patches/patch-pdf-parser.py @@ -0,0 +1,13 @@ +$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() |