source: trunk/dports/textproc/pdf2json/Portfile

Last change on this file was 103666, checked in by ryandesign@…, 5 years ago

pdf2json: new port, version 0.61 (#37881)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.2 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 103666 2013-03-04 13:47:45Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                pdf2json
7conflicts           poppler xpdf xpdf-tools
8version             0.61
9categories          textproc pdf
10platforms           darwin
11maintainers         devaldi.com:pdf2json
12license             GPL-2
13
14description         PDF to JSON conversion utility
15
16long_description    PDF2JSON is a conversion library based on XPDF (3.02) \
17                    which can be used for high performance PDF page by page \
18                    conversion to JSON and XML format.
19
20homepage            http://code.google.com/p/pdf2json/
21master_sites        googlecode
22
23checksums           rmd160  44b9d9fb61113193a58db25aaa71d040067761f7 \
24                    sha256  36faf337361768f3108ef4e8d9eacb16b5c6ac84623299b3c8d74d5166f21bd7
25
26extract.mkdir       yes
27
28post-extract {
29    # DOS to UNIX line endings so we can patch
30    reinplace "s|\r||g" ${worksrcpath}/Makefile.in
31}
32
33patchfiles          patch-Makefiles.diff
34
35post-patch {
36    reinplace "s|/usr/local|${prefix}|g" \
37        ${worksrcpath}/doc/sample-xpdfrc \
38        ${worksrcpath}/xpdf/GlobalParams.cc
39}
Note: See TracBrowser for help on using the repository browser.