[143999] trunk/dports/textproc
raimue at macports.org
raimue at macports.org
Tue Dec 29 10:49:23 PST 2015
Revision: 143999
https://trac.macports.org/changeset/143999
Author: raimue at macports.org
Date: 2015-12-29 10:49:23 -0800 (Tue, 29 Dec 2015)
Log Message:
-----------
textproc/pdfgrep, textproc/pdfgrep-legacy:
Add new pdfgrep-legacy port for old versions of OS X, closes #50076
Modified Paths:
--------------
trunk/dports/textproc/pdfgrep/Portfile
Added Paths:
-----------
trunk/dports/textproc/pdfgrep-legacy/
trunk/dports/textproc/pdfgrep-legacy/Portfile
Modified: trunk/dports/textproc/pdfgrep/Portfile
===================================================================
--- trunk/dports/textproc/pdfgrep/Portfile 2015-12-29 16:32:54 UTC (rev 143998)
+++ trunk/dports/textproc/pdfgrep/Portfile 2015-12-29 18:49:23 UTC (rev 143999)
@@ -5,6 +5,7 @@
name pdfgrep
version 1.4.1
revision 1
+conflicts pdfgrep-legacy
categories textproc
platforms darwin
license GPL-2+
@@ -23,6 +24,13 @@
depends_lib port:poppler \
port:pcre
+pre-fetch {
+ if {${name} == ${subport} && ${os.platform} eq "darwin" && ${os.major} < 13} {
+ ui_error "${name} only runs on Mac OS X 10.9 or greater as it requires features of C++11. Please install pdfgrep-legacy instead."
+ return -code error "incompatible Mac OS X version"
+ }
+}
+
configure.args --without-unac
variant unac description {Use unac to remove accents and ligatures before searching} {
Copied: trunk/dports/textproc/pdfgrep-legacy/Portfile (from rev 137168, trunk/dports/textproc/pdfgrep/Portfile)
===================================================================
--- trunk/dports/textproc/pdfgrep-legacy/Portfile (rev 0)
+++ trunk/dports/textproc/pdfgrep-legacy/Portfile 2015-12-29 18:49:23 UTC (rev 143999)
@@ -0,0 +1,38 @@
+# $Id$
+
+PortSystem 1.0
+
+name pdfgrep-legacy
+set realname pdfgrep
+version 1.3.2
+conflicts pdfgrep
+categories textproc
+platforms darwin
+license GPL-2+
+maintainers raimue
+description A tool to search text in PDF files.
+long_description \
+ Pdfgrep is a tool to search text in PDF files. It works similar to grep. \
+ This port is intended to support releases of OS X <= 10.8 which is \
+ unsupported in the current version as it requires C++11 \ features.
+
+homepage https://pdfgrep.org/
+master_sites https://pdfgrep.org/download/
+distname ${realname}-${version}
+
+checksums rmd160 75499a372cf1b2daefdfa57cbee79381b2661d72 \
+ sha256 386b167434443dd299d389a0ef292d708123255cbab0e179e11b65ba51d9b386
+
+depends_build port:pkgconfig
+depends_lib port:poppler
+
+configure.args --without-unac
+
+variant unac description {Use unac to remove accents and ligatures before searching} {
+ depends_lib-append port:unac
+ configure.args-delete --without-unac
+ configure.args-append --with-unac
+}
+
+livecheck.type regex
+livecheck.regex {latest version is (\d+(\.\d+)+)}
Property changes on: trunk/dports/textproc/pdfgrep-legacy/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:mergeinfo
+ /branches/mld-qt-481/dports/textproc/pdfgrep/Portfile:92720,92813,92891,92963,93522,93556,93699,93743,93771-93773,93806,93817-93818,93856
Added: svn:eol-style
+ native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151229/84c09de7/attachment.html>
More information about the macports-changes
mailing list