[110749] trunk/dports/print/lcdf-typetools

larryv at macports.org larryv at macports.org
Wed Sep 4 21:58:38 PDT 2013


Revision: 110749
          https://trac.macports.org/changeset/110749
Author:   larryv at macports.org
Date:     2013-09-04 21:58:38 -0700 (Wed, 04 Sep 2013)
Log Message:
-----------
lcdf-typetools: Update to 2.99; fix libc++ build.

Modified Paths:
--------------
    trunk/dports/print/lcdf-typetools/Portfile

Added Paths:
-----------
    trunk/dports/print/lcdf-typetools/files/
    trunk/dports/print/lcdf-typetools/files/0001-Avoid-implicit-initializer-narrowing.patch

Modified: trunk/dports/print/lcdf-typetools/Portfile
===================================================================
--- trunk/dports/print/lcdf-typetools/Portfile	2013-09-05 04:25:37 UTC (rev 110748)
+++ trunk/dports/print/lcdf-typetools/Portfile	2013-09-05 04:58:38 UTC (rev 110749)
@@ -4,8 +4,7 @@
 PortSystem          1.0
 
 name                lcdf-typetools
-version             2.92
-revision            1
+version             2.99
 categories          print tex
 platforms           darwin
 license             GPL-2+
@@ -19,12 +18,18 @@
 homepage            http://www.lcdf.org/type/
 
 master_sites        ${homepage}
-checksums           md5     1977c78d564ee152f38729e2e9a9bbc4 \
-                    sha1    ac7efb68d3379d9052fa6103035c3f4c95b55854 \
-                    rmd160  301fd383904359deb07711a58e7a3eb49a7e7035
+checksums           rmd160  87b9b49ac74f0f5bfdef15a9bb32d79c31032fbe \
+                    sha256  cbb0ed8c42d078fb216b8f4b8ca7a29e0ad3c1969f580a6f2558c829a472adff
 
-configure.args      --mandir=${prefix}/share/man \
-                    --without-kpathsea
+if {[info exists configure.cxx_stdlib] &&
+    ${configure.cxx_stdlib} eq {libc++} &&
+    [string match *clang* ${configure.cxx}]
+} then {
+    patch.pre_args              -p1
+    patchfiles                  0001-Avoid-implicit-initializer-narrowing.patch
+    configure.cxxflags-append   -std=c++11
+}
+configure.args      --without-kpathsea
 
 destroot.target     install-strip
 post-destroot {

Added: trunk/dports/print/lcdf-typetools/files/0001-Avoid-implicit-initializer-narrowing.patch
===================================================================
--- trunk/dports/print/lcdf-typetools/files/0001-Avoid-implicit-initializer-narrowing.patch	                        (rev 0)
+++ trunk/dports/print/lcdf-typetools/files/0001-Avoid-implicit-initializer-narrowing.patch	2013-09-05 04:58:38 UTC (rev 110749)
@@ -0,0 +1,29 @@
+From 1743ebf838dfeff94cccd9cbb965e16ed4f1f804 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Lawrence=20Vela=CC=81zquez?= <larryv at alum.mit.edu>
+Date: Wed, 4 Sep 2013 02:35:44 -0400
+Subject: [PATCH] Avoid implicit initializer narrowing.
+
+See http://www.stroustrup.com/C++11FAQ.html#narrowing, which causes
+a build error when compiling as C++11 with recent Apple LLVM Compiler
+and libc++. Using an explicit cast works around the error, assuming the
+truncation is semantically safe.
+---
+ otftotfm/dvipsencoding.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/otftotfm/dvipsencoding.cc b/otftotfm/dvipsencoding.cc
+index 870c7d0..78b32da 100644
+--- a/otftotfm/dvipsencoding.cc
++++ b/otftotfm/dvipsencoding.cc
+@@ -444,7 +444,7 @@ DvipsEncoding::parse_ligkern_words(Vector<String> &v, int override, ErrorHandler
+ 	    return errh->warning("%<%s%> has no encoding, ignoring %<%s%>", v[2].c_str(), v[1].c_str());
+ 	if ((op & JT_KERN) && l && (av == J_ALL || bv == J_ALL))
+ 	    return errh->warning("%<%s %s %s%> illegal, only {0} works with *", v[0].c_str(), v[1].c_str(), v[2].c_str());
+-	Ligature lig = { av, bv, op, l, 0 };
++	Ligature lig = { av, bv, op, static_cast<int>(l), 0 };
+ 	add_ligkern(lig, override);
+ 	return 0;
+ 
+-- 
+1.8.4
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130904/148a27a8/attachment.html>


More information about the macports-changes mailing list