[143950] trunk/dports/graphics/libcdr-0.1/Portfile

devans at macports.org devans at macports.org
Mon Dec 28 15:15:10 PST 2015


Revision: 143950
          https://trac.macports.org/changeset/143950
Author:   devans at macports.org
Date:     2015-12-28 15:15:10 -0800 (Mon, 28 Dec 2015)
Log Message:
-----------
libcdr-0.1: update to version 0.1.2, remove outdated boost fix and add a new one, enable test phase, dependencies.

Modified Paths:
--------------
    trunk/dports/graphics/libcdr-0.1/Portfile

Modified: trunk/dports/graphics/libcdr-0.1/Portfile
===================================================================
--- trunk/dports/graphics/libcdr-0.1/Portfile	2015-12-28 23:07:40 UTC (rev 143949)
+++ trunk/dports/graphics/libcdr-0.1/Portfile	2015-12-28 23:15:10 UTC (rev 143950)
@@ -5,8 +5,7 @@
 
 name                libcdr-0.1
 set dname           libcdr
-version             0.1.1
-revision            1
+version             0.1.2
 categories          graphics
 license             {GPL-2.1+ LGPL-2.1+ MPL-1.1+}
 maintainers         devans openmaintainer
@@ -23,10 +22,11 @@
 
 distname            ${dname}-${version}
 
-checksums           sha256  d0a6e0667e5a37fe059bcb81d5077fc2abffc7e7bac86fe302fbcf927d58df1f \
-                    rmd160  5d6ea7a497103c1c6d889c8a74f0e97e13a3569f
+checksums           sha256  6bdb20bcdec5ad1a115d0a3aada7d4b2758e9d22801d72b4ecc2e55fb3d5d42c \
+                    rmd160  5b4e32bfd17e4e1cb0345da719624f1b8931e223
 
-depends_build       port:pkgconfig
+depends_build       port:pkgconfig \
+                    port:cppunit
 
 depends_lib         port:librevenge \
                     port:boost \
@@ -43,27 +43,34 @@
 use_autoreconf  yes
 autoreconf.args -fvi
 
-# In boost 1.59.0, a number of symbols related to the Boost.System library have been renamed
-# for compatibility with the C++ committee's standard library specs.  The old symbols have been deprecated
-# and aliases to the new symbols are provided.  When boost headers are included, these aliases
-# can create dependencies on the Boost.System library even if no Boost.System symbols are actually used.
-# Typically this causes missing symbol errors during linking when LDFLAGS (legitimately) does not
-# include -lboost_system-mt.
+# questionable fix for libstdc++ build failures with boost 1.59 and (indirect) inclusion of boost/thread/detail/move.hpp
+# libstdc++ supports rvalue references but defining BOOST_NO_CXX11_RVALUE_REFERENCES disables the
+# inclusion of <type_traits> which is not libstdc++ compatible
 #
-# Asserting BOOST_SYSTEM_NO_DEPRECATED deactivates these aliases allowing this and other effected
-# ports to build as before.
-#
-# See http://www.boost.org/doc/libs/1_59_0/libs/system/doc/reference.html#Deprecated-names for details
-#
-# This workaround can be removed when the offending deprecation aliases are removed in a future
-# version of boost.
+# In file included from CDRParser.cpp:20:
+# In file included from /opt/local/include/boost/spirit/include/classic.hpp:11:
+# In file included from /opt/local/include/boost/spirit/home/classic.hpp:29:
+# In file included from /opt/local/include/boost/spirit/home/classic/utility.hpp:37:
+# In file included from /opt/local/include/boost/spirit/home/classic/utility/scoped_lock.hpp:13:
+# In file included from /opt/local/include/boost/thread/lock_types.hpp:11:
+# /opt/local/include/boost/thread/detail/move.hpp:31:10: fatal error: 'type_traits' file not found
+# #include <type_traits>
 
-configure.cppflags-append "-DBOOST_SYSTEM_NO_DEPRECATED"
+platform darwin {
+    if {${configure.cxx_stdlib} eq "libstdc++"} {
+        configure.cppflags-append \
+            -DBOOST_NO_CXX11_RVALUE_REFERENCES
+    }
+}
 
 configure.args      --disable-werror \
                     --disable-silent-rules \
+                    --enable-tests \
                     --without-docs
 
+test.run            yes
+test.target         check
+
 variant docs description {Build API documentation} {
     depends_build-append  port:doxygen
     configure.args-replace --without-docs --with-docs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151228/3a8f82b0/attachment-0001.html>


More information about the macports-changes mailing list