[127665] trunk/dports/graphics/inkscape-devel/Portfile
devans at macports.org
devans at macports.org
Fri Oct 31 14:48:48 PDT 2014
Revision: 127665
https://trac.macports.org/changeset/127665
Author: devans at macports.org
Date: 2014-10-31 14:48:48 -0700 (Fri, 31 Oct 2014)
Log Message:
-----------
inkscape-devel: update to trunk bzr 13648, depend on lcms2, update +svg2 configuration, drop python variants and build with python27, default to strict build.
Modified Paths:
--------------
trunk/dports/graphics/inkscape-devel/Portfile
Modified: trunk/dports/graphics/inkscape-devel/Portfile
===================================================================
--- trunk/dports/graphics/inkscape-devel/Portfile 2014-10-31 21:42:48 UTC (rev 127664)
+++ trunk/dports/graphics/inkscape-devel/Portfile 2014-10-31 21:48:48 UTC (rev 127665)
@@ -5,7 +5,7 @@
name inkscape-devel
conflicts inkscape
-set bzr_rev 13625
+set bzr_rev 13648
version 0.48.99.${bzr_rev}
epoch 1
license GPL-2 LGPL-2.1
@@ -42,7 +42,7 @@
port:gsl \
port:gtkmm \
port:dbus-glib \
- port:lcms \
+ port:lcms2 \
port:poppler \
port:boost \
port:ImageMagick \
@@ -50,42 +50,20 @@
port:libexif \
port:libvisio-0.1 \
port:libwpg-0.3 \
- port:gtkspell2
+ port:gtkspell2 \
+ port:py27-lxml \
+ port:py27-numpy
pre-fetch {
ui_msg "---> Fetching source from bzr repository: this may take a while"
}
-variant python26 conflicts python27 description {Configure to use Python version 2.6} {
- depends_lib-append \
- port:py26-lxml \
- port:py26-numpy
-
- post-patch {
- reinplace "s|\"python-interpreter\", \"python\"|\"python-interpreter\", \"python2.6\"|g" ${worksrcpath}/src/extension/implementation/script.cpp
- reinplace "s|^#include \"Object.h\"|#include \"${prefix}/include/poppler/Object.h\"|" ${worksrcpath}/src/extension/internal/pdfinput/pdf-parser.h
- reinplace "s|^#include \"Object.h\"|#include \"${prefix}/include/poppler/Object.h\"|" ${worksrcpath}/src/extension/internal/pdfinput/pdf-parser.cpp
- }
-
- configure.python \
- ${prefix}/bin/python2.6
+post-patch {
+ reinplace "s|\"python-interpreter\", \"python\"|\"python-interpreter\", \"python2.7\"|g" ${worksrcpath}/src/extension/implementation/script.cpp
+ reinplace "s|^#include \"Object.h\"|#include \"${prefix}/include/poppler/Object.h\"|" ${worksrcpath}/src/extension/internal/pdfinput/pdf-parser.h
+ reinplace "s|^#include \"Object.h\"|#include \"${prefix}/include/poppler/Object.h\"|" ${worksrcpath}/src/extension/internal/pdfinput/pdf-parser.cpp
}
-variant python27 conflicts python26 description {Configure to use Python version 2.7} {
- depends_lib-append \
- port:py27-lxml \
- port:py27-numpy
-
- post-patch {
- reinplace "s|\"python-interpreter\", \"python\"|\"python-interpreter\", \"python2.7\"|g" ${worksrcpath}/src/extension/implementation/script.cpp
- reinplace "s|^#include \"Object.h\"|#include \"${prefix}/include/poppler/Object.h\"|" ${worksrcpath}/src/extension/internal/pdfinput/pdf-parser.h
- reinplace "s|^#include \"Object.h\"|#include \"${prefix}/include/poppler/Object.h\"|" ${worksrcpath}/src/extension/internal/pdfinput/pdf-parser.cpp
- }
-
- configure.python \
- ${prefix}/bin/python2.7
-}
-
variant gtk3 description {Enable experimental GTK+ 3 build} {
depends_lib-delete port:gtkspell2 \
port:gtk2 \
@@ -100,11 +78,14 @@
variant svg2 description {Enable experimental SVG level 2 proposed features} {
configure.cppflags-append \
- "-DWITH_MESH -DWITH_CSSBLEND -DWITH_CSSCOMPOSITE"
+ "-DWITH_MESH -DWITH_CSSBLEND -DWITH_CSSCOMPOSITE -DWITH_SVG2"
}
configure.cmd ./autogen.sh && ./configure
+configure.python \
+ ${prefix}/bin/python2.7
+
configure.args --without-gnome-vfs \
--enable-lcms \
--enable-poppler-cairo \
@@ -119,10 +100,12 @@
configure.cxxflags-append -std=c++11
}
-if {![variant_isset python26] && ![variant_isset python27]} {
- default_variants +python27
+variant strict description {Enable strict build} {
+ configure.args-replace --disable-strict-build --enable-strict-build
}
+default_variants +strict
+
#
# the following dummy variants are used
# to identify this port's binary dependencies
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141031/da4834d7/attachment.html>
More information about the macports-changes
mailing list