[MacPorts] #37881: New macport: PDF2JSON
#37881: New macport: PDF2JSON ------------------------+-------------------------------- Reporter: pdf2json@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: ------------------------+-------------------------------- We would like to submit the PDF2JON which builds on top of XPDF library to Mac Ports. This library can be used to convert PDF documents to JSON files. -- Ticket URL: <https://trac.macports.org/ticket/37881> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37881: New macport: PDF2JSON -------------------------+-------------------------------- Reporter: pdf2json@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: | -------------------------+-------------------------------- Comment (by ryandesign@…): Thanks. Some comments: * The master_sites should probably just be "googlecode" * The empty depends_lib and configure.args lines should be removed since they do nothing. -- Ticket URL: <https://trac.macports.org/ticket/37881#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37881: New macport: PDF2JSON -------------------------+-------------------------------- Reporter: pdf2json@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: | -------------------------+-------------------------------- Comment (by pdf2json@…): Hi Ryan, thanks for your reply, so how will you find the builds if I change the master_sites to just read googlecode? In other words how will you find the .tar.gz ? -- Ticket URL: <https://trac.macports.org/ticket/37881#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37881: New macport: PDF2JSON -------------------------+-------------------------------- Reporter: pdf2json@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: | -------------------------+-------------------------------- Comment (by larryv@…): Replying to [comment:2 pdf2json@…]:
Hi Ryan, thanks for your reply, so how will you find the builds if I change the master_sites to just read googlecode? In other words how will you find the .tar.gz ?
"googlecode" is a [http://guide.macports.org/chunked/reference.phases.html#reference.phases.fet... predefined fetch mirror]. -- Ticket URL: <https://trac.macports.org/ticket/37881#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37881: New macport: PDF2JSON -------------------------+-------------------------------- Reporter: pdf2json@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: | -------------------------+-------------------------------- Comment (by pdf2json@…): Oh I see! Cool beans. Attaching a new version of the portfile with updated master_sites and distfiles properties -- Ticket URL: <https://trac.macports.org/ticket/37881#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37881: New macport: PDF2JSON -------------------------+-------------------------------- Reporter: pdf2json@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: | -------------------------+-------------------------------- Comment (by pdf2json@…): actually, noticed an error in the home page url. attaching again. -- Ticket URL: <https://trac.macports.org/ticket/37881#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37881: New port: pdf2json -------------------------+-------------------------- Reporter: pdf2json@… | Owner: ryandesign@… Type: submission | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: pdf2json | -------------------------+-------------------------- Changes (by ryandesign@…): * cc: ryandesign@… (added) * owner: macports-tickets@… => ryandesign@… * status: new => assigned * port: => pdf2json Comment: Thanks. I'm still working on fixing a few things before I commit this. -- Ticket URL: <https://trac.macports.org/ticket/37881#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37881: New port: pdf2json -------------------------+-------------------------- Reporter: pdf2json@… | Owner: ryandesign@… Type: submission | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: pdf2json | -------------------------+-------------------------- Comment (by pdf2json@…): Ok, let me know if there is anything I can do anything to help -- Ticket URL: <https://trac.macports.org/ticket/37881#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37881: New port: pdf2json -------------------------+-------------------------- Reporter: pdf2json@… | Owner: ryandesign@… Type: submission | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: pdf2json | -------------------------+-------------------------- Comment (by pdf2json@…): Any news on adding this macport? -- Ticket URL: <https://trac.macports.org/ticket/37881#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37881: New port: pdf2json -------------------------+-------------------------- Reporter: pdf2json@… | Owner: ryandesign@… Type: submission | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: Port: pdf2json | -------------------------+-------------------------- Changes (by ryandesign@…): * cc: ryandesign@… (removed) * status: assigned => closed * resolution: => fixed Comment: Sorry for the delay. Please make sure you test your ports before you submit them; this one failed immediately with: {{{ sh: line 0: cd: .../pdf2json-0.61: No such file or directory" }}} Committed in r103666 with these further changes: * Added "extract.mkdir yes" because the tarball does not extract into an enclosing directory. * Added our standard modeline. * Removed the line "distfiles pdf2json-0.61.tar.gz" because that's the default. * Changed the primary category to "textproc" because "pdf" is not a valid primary category. * The Makefile does not honor the `--mandir` argument that the configure script advertises, and does not use the value which the configure script says is the default, resulting in: {{{ Warning: violation by /opt/local/man Warning: pdf2json violates the layout of the ports-filesystems! Warning: Please fix or indicate this misbehavior (if it is intended), it will be an error in future releases! }}} Added a patch to fix this, which needs to be committed to the upstream sources. (Possibly similar changes are needed to correctly support `--bindir`, though that's not important for MacPorts since we're fine with the default.) * The main Makefile contained some carriage returns which made for difficulties in applying the above patch. Added a post-extract block to remove the carriage returns. * Added line "conflicts poppler xpdf xpdf-tools" to this port (and indicated that poppler, xpdf and xpdf-tools conflict with pdf2json) because of these problems: {{{ Error: org.macports.activate for port pdf2json returned: Image error: /opt/local/bin/pdffonts is being used by the active poppler port. Please deactivate this port first, or use 'port -f activate pdf2json' to force the activation. }}} {{{ Error: org.macports.activate for port pdf2json returned: Image error: /opt/local/bin/pdffonts is being used by the active xpdf-tools port. Please deactivate this port first, or use 'port -f activate pdf2json' to force the activation. }}} {{{ Error: org.macports.activate for port pdf2json returned: Image error: /opt/local/etc/xpdfrc is being used by the active xpdf port. Please deactivate this port first, or use 'port -f activate pdf2json' to force the activation. }}} Ideally ports should not conflict with each other. If this can be fixed, please do (could pdf2json use the existing xpdf and xpdf-tools ports instead of providing its own copy?); otherwise, the "conflicts" line will at least alert users to the problem early. * Added a patch to remove -I/usr/local/include from Makefiles because we don't want to use any files the user might have installed there. * Added a patch to add @CXXFLAGS@ and @LDFLAGS@ in src/Makefile.in so that we're building for the right architectures. * Added a patch to use @CXX@ in src/Makefile.in and splash/Makefile.in so that we're UsingTheRightCompiler. * Copied a post-patch block from the xpdf portfile to replace /usr/local with ${prefix} in doc/sample-xpdfrc and xpdf/GlobalParams.cc. * The xpdf port also adds a dependency on the ghostscript port for its fonts. Does pdf2json also use those fonts? If so should we add that same dependency so pdf2json? -- Ticket URL: <https://trac.macports.org/ticket/37881#comment:9> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts