46842846fc
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.
32 lines
759 B
Makefile
32 lines
759 B
Makefile
# $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"
|