[103666] trunk/dports
ryandesign at macports.org
ryandesign at macports.org
Mon Mar 4 05:47:45 PST 2013
Revision: 103666
https://trac.macports.org/changeset/103666
Author: ryandesign at macports.org
Date: 2013-03-04 05:47:45 -0800 (Mon, 04 Mar 2013)
Log Message:
-----------
pdf2json: new port, version 0.61 (#37881)
Modified Paths:
--------------
trunk/dports/graphics/poppler/Portfile
trunk/dports/graphics/xpdf/Portfile
trunk/dports/graphics/xpdf-tools/Portfile
Added Paths:
-----------
trunk/dports/textproc/pdf2json/
trunk/dports/textproc/pdf2json/Portfile
trunk/dports/textproc/pdf2json/files/
trunk/dports/textproc/pdf2json/files/patch-Makefiles.diff
Modified: trunk/dports/graphics/poppler/Portfile
===================================================================
--- trunk/dports/graphics/poppler/Portfile 2013-03-04 13:26:59 UTC (rev 103665)
+++ trunk/dports/graphics/poppler/Portfile 2013-03-04 13:47:45 UTC (rev 103666)
@@ -5,7 +5,7 @@
PortGroup muniversal 1.0
name poppler
-conflicts xpdf-tools
+conflicts pdf2json xpdf-tools
version 0.22.1
license GPL-2+
maintainers devans openmaintainer
Modified: trunk/dports/graphics/xpdf/Portfile
===================================================================
--- trunk/dports/graphics/xpdf/Portfile 2013-03-04 13:26:59 UTC (rev 103665)
+++ trunk/dports/graphics/xpdf/Portfile 2013-03-04 13:47:45 UTC (rev 103666)
@@ -3,6 +3,7 @@
PortSystem 1.0
name xpdf
+conflicts pdf2json
set base_version 3.02
version ${base_version}pl5
revision 1
@@ -121,7 +122,7 @@
}
variant no_mangle_names description {do not mangle the CLI tool names, conflicts with poppler} {
- conflicts-append port:poppler
+ conflicts-append poppler
}
## make t1lib support a variant, see https://trac.macports.org/ticket/29629)
Modified: trunk/dports/graphics/xpdf-tools/Portfile
===================================================================
--- trunk/dports/graphics/xpdf-tools/Portfile 2013-03-04 13:26:59 UTC (rev 103665)
+++ trunk/dports/graphics/xpdf-tools/Portfile 2013-03-04 13:47:45 UTC (rev 103666)
@@ -14,7 +14,7 @@
## conflicts with poppler until poppler renames its CLI tools
## (then conflicts w/ poppler-tools if it gets created)
-conflicts poppler
+conflicts pdf2json poppler
supported_archs noarch
Added: trunk/dports/textproc/pdf2json/Portfile
===================================================================
--- trunk/dports/textproc/pdf2json/Portfile (rev 0)
+++ trunk/dports/textproc/pdf2json/Portfile 2013-03-04 13:47:45 UTC (rev 103666)
@@ -0,0 +1,39 @@
+# -*- 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
+# $Id$
+
+PortSystem 1.0
+
+name pdf2json
+conflicts poppler xpdf xpdf-tools
+version 0.61
+categories textproc pdf
+platforms darwin
+maintainers devaldi.com:pdf2json
+license GPL-2
+
+description PDF to JSON conversion utility
+
+long_description PDF2JSON is a conversion library based on XPDF (3.02) \
+ which can be used for high performance PDF page by page \
+ conversion to JSON and XML format.
+
+homepage http://code.google.com/p/pdf2json/
+master_sites googlecode
+
+checksums rmd160 44b9d9fb61113193a58db25aaa71d040067761f7 \
+ sha256 36faf337361768f3108ef4e8d9eacb16b5c6ac84623299b3c8d74d5166f21bd7
+
+extract.mkdir yes
+
+post-extract {
+ # DOS to UNIX line endings so we can patch
+ reinplace "s|\r||g" ${worksrcpath}/Makefile.in
+}
+
+patchfiles patch-Makefiles.diff
+
+post-patch {
+ reinplace "s|/usr/local|${prefix}|g" \
+ ${worksrcpath}/doc/sample-xpdfrc \
+ ${worksrcpath}/xpdf/GlobalParams.cc
+}
Property changes on: trunk/dports/textproc/pdf2json/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/textproc/pdf2json/files/patch-Makefiles.diff
===================================================================
--- trunk/dports/textproc/pdf2json/files/patch-Makefiles.diff (rev 0)
+++ trunk/dports/textproc/pdf2json/files/patch-Makefiles.diff 2013-03-04 13:47:45 UTC (rev 103666)
@@ -0,0 +1,104 @@
+--- Makefile.in.orig 2012-01-03 13:29:36.000000000 -0600
++++ Makefile.in 2013-02-01 23:37:01.000000000 -0600
+@@ -14,6 +14,7 @@
+
+ prefix = @prefix@
+ exec_prefix = @exec_prefix@
++mandir = @mandir@
+ srcdir = @srcdir@
+
+ INSTALL = /usr/bin/install -c
+@@ -41,16 +42,16 @@
+ # $(INSTALL_PROGRAM) xpdf/pdftoppm$(EXE) $(DESTDIR)${exec_prefix}/bin/pdftoppm$(EXE)
+ $(INSTALL_PROGRAM) xpdf/pdfimages$(EXE) $(DESTDIR)${exec_prefix}/bin/pdfimages$(EXE)
+ $(INSTALL_PROGRAM) src/pdf2json$(EXE) $(DESTDIR)${exec_prefix}/bin/pdf2json$(EXE)
+- -mkdir -p $(DESTDIR)${prefix}/man/man1
+-# $(INSTALL_DATA) $(srcdir)/doc/xpdf.1 $(DESTDIR)${prefix}/man/man1/xpdf.1
+- $(INSTALL_DATA) $(srcdir)/doc/pdftops.1 $(DESTDIR)${prefix}/man/man1/pdftops.1
+- $(INSTALL_DATA) $(srcdir)/doc/pdftotext.1 $(DESTDIR)${prefix}/man/man1/pdftotext.1
+- $(INSTALL_DATA) $(srcdir)/doc/pdfinfo.1 $(DESTDIR)${prefix}/man/man1/pdfinfo.1
+- $(INSTALL_DATA) $(srcdir)/doc/pdffonts.1 $(DESTDIR)${prefix}/man/man1/pdffonts.1
+-# $(INSTALL_DATA) $(srcdir)/doc/pdftoppm.1 $(DESTDIR)${prefix}/man/man1/pdftoppm.1
+- $(INSTALL_DATA) $(srcdir)/doc/pdfimages.1 $(DESTDIR)${prefix}/man/man1/pdfimages.1
+- -mkdir -p $(DESTDIR)${prefix}/man/man5
+- $(INSTALL_DATA) $(srcdir)/doc/xpdfrc.5 $(DESTDIR)${prefix}/man/man5/xpdfrc.5
++ -mkdir -p $(DESTDIR)${mandir}/man1
++# $(INSTALL_DATA) $(srcdir)/doc/xpdf.1 $(DESTDIR)${mandir}/man1/xpdf.1
++ $(INSTALL_DATA) $(srcdir)/doc/pdftops.1 $(DESTDIR)${mandir}/man1/pdftops.1
++ $(INSTALL_DATA) $(srcdir)/doc/pdftotext.1 $(DESTDIR)${mandir}/man1/pdftotext.1
++ $(INSTALL_DATA) $(srcdir)/doc/pdfinfo.1 $(DESTDIR)${mandir}/man1/pdfinfo.1
++ $(INSTALL_DATA) $(srcdir)/doc/pdffonts.1 $(DESTDIR)${mandir}/man1/pdffonts.1
++# $(INSTALL_DATA) $(srcdir)/doc/pdftoppm.1 $(DESTDIR)${mandir}/man1/pdftoppm.1
++ $(INSTALL_DATA) $(srcdir)/doc/pdfimages.1 $(DESTDIR)${mandir}/man1/pdfimages.1
++ -mkdir -p $(DESTDIR)${mandir}/man5
++ $(INSTALL_DATA) $(srcdir)/doc/xpdfrc.5 $(DESTDIR)${mandir}/man5/xpdfrc.5
+ -mkdir -p $(DESTDIR)${prefix}/etc
+ @if test ! -f $(DESTDIR)${prefix}/etc/xpdfrc; then \
+ echo "$(INSTALL_DATA) $(srcdir)/doc/sample-xpdfrc $(DESTDIR)${prefix}/etc/xpdfrc"; \
+--- fofi/Makefile.in.orig 2012-01-01 21:45:26.000000000 -0600
++++ fofi/Makefile.in 2013-02-01 10:42:20.000000000 -0600
+@@ -14,7 +14,7 @@
+ GOOSRCDIR = $(srcdir)/../goo
+ GOOLIBDIR = ../goo
+
+-CXXFLAGS = -I/usr/local/include @CXXFLAGS@ @DEFS@ -I.. -I$(GOOSRCDIR) -I$(srcdir)
++CXXFLAGS = @CXXFLAGS@ @DEFS@ -I.. -I$(GOOSRCDIR) -I$(srcdir)
+
+ CXX = @CXX@
+ AR = ar rc
+--- goo/Makefile.in.orig 2012-01-01 21:18:08.000000000 -0600
++++ goo/Makefile.in 2013-02-01 10:42:20.000000000 -0600
+@@ -12,7 +12,7 @@
+ VPATH = @srcdir@
+
+ CFLAGS = @CFLAGS@ @DEFS@ -I.. -I$(srcdir)
+-CXXFLAGS = -I/usr/local/include @CXXFLAGS@ @DEFS@ -I.. -I$(srcdir)
++CXXFLAGS = @CXXFLAGS@ @DEFS@ -I.. -I$(srcdir)
+
+ CC = @CC@
+ CXX = @CXX@
+--- splash/Makefile.in.orig 2012-01-01 22:04:49.000000000 -0600
++++ splash/Makefile.in 2013-02-01 23:30:10.000000000 -0600
+@@ -16,9 +16,9 @@
+ FOFISRCDIR = $(srcdir)/../fofi
+ FOFILIBDIR = ../fofi
+
+-CXXFLAGS = -I/usr/local/include @CXXFLAGS@ @DEFS@ -I.. -I$(GOOSRCDIR) -I$(FOFISRCDIR) -I$(srcdir)
++CXXFLAGS = @CXXFLAGS@ @DEFS@ -I.. -I$(GOOSRCDIR) -I$(FOFISRCDIR) -I$(srcdir)
+
+-CXX = g++
++CXX = @CXX@
+ AR = ar rc
+ RANLIB = ranlib
+
+--- src/Makefile.in.orig 2011-11-01 14:53:54.000000000 -0500
++++ src/Makefile.in 2013-02-01 23:28:01.000000000 -0600
+@@ -11,14 +11,14 @@
+ SPLASHSRCDIR = ../splash
+ SPLASHLIBDIR = ../splash
+
+-CXXFLAGS = -I/usr/local/include -g -O2 -DHAVE_CONFIG_H -DHAVE_DIRENT_H=1 -I.. -DHAVE_REWINDDIR=1 -DHAVE_POPEN=1 -I.. -I$(GOOSRCDIR) -I$(XPDFSRCDIR) -I$(FOFISRCDIR) -I$(SPLASHSRCDIR) -I$(srcdir) -I/usr/X11R6/include
++CXXFLAGS = -g -O2 @CXXFLAGS@ -DHAVE_CONFIG_H -DHAVE_DIRENT_H=1 -I.. -DHAVE_REWINDDIR=1 -DHAVE_POPEN=1 -I.. -I$(GOOSRCDIR) -I$(XPDFSRCDIR) -I$(FOFISRCDIR) -I$(SPLASHSRCDIR) -I$(srcdir) -I/usr/X11R6/include
+
+-LDFLAGS =
++LDFLAGS = @LDFLAGS@
+ FTLIBS =
+
+ OTHERLIBS =
+
+-CXX ?= c++
++CXX = @CXX@
+
+ LIBPREFIX = lib
+ EXE =
+--- xpdf/Makefile.in.orig 2012-01-01 22:07:51.000000000 -0600
++++ xpdf/Makefile.in 2013-02-01 10:42:20.000000000 -0600
+@@ -19,7 +19,7 @@
+ SPLASHSRCDIR = $(srcdir)/../splash
+ SPLASHLIBDIR = ../splash
+
+-CXXFLAGS = -I/usr/local/include @CXXFLAGS@ @DEFS@ -I.. -I$(GOOSRCDIR) -I$(FOFISRCDIR) -I$(SPLASHSRCDIR) -I$(srcdir)
++CXXFLAGS = @CXXFLAGS@ @DEFS@ -I.. -I$(GOOSRCDIR) -I$(FOFISRCDIR) -I$(SPLASHSRCDIR) -I$(srcdir)
+
+ LDFLAGS = @LDFLAGS@
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130304/141e3633/attachment-0001.html>
More information about the macports-changes
mailing list