--- a/packaging/macports/textproc/recoll/Portfile
+++ b/packaging/macports/textproc/recoll/Portfile
@@ -4,7 +4,7 @@
PortGroup app 1.0
name recoll
-version 1.19.11p1
+version 1.24.3
categories textproc
platforms darwin
license GPL-2+
@@ -22,14 +22,15 @@
size 2675171
depends_lib port:xapian-core \
- port:qt4-mac \
+ port:qt5 \
+ port:qt5-qtwebkit \
port:aspell \
port:libiconv \
port:zlib
depends_run port:antiword \
- port:catdoc \
- port:libxslt \
+ port:py27-libxml2 \
+ port:py27-libxslt \
port:poppler \
port:unrtf \
port:unzip
@@ -39,10 +40,17 @@
patch-rclaspell-dylib.diff \
patch-netcon-traces.diff
-configure.args --without-x \
- --disable-x11mon
+# Note: this is probably not the right way to configure QMAKE
+configure.args QMAKE=${prefix}/libexec/qt5/bin/qmake \
+ --without-x \
+ --disable-x11mon \
+ --disable-python-module
build.args CC=${configure.cc} CXX=${configure.cxx}
+pre-destroot {
+ xinstall -m 755 ${worksrcpath}/qtgui/recoll.app/Contents/MacOS/recoll ${destroot}${prefix}/bin/${name}
+}
+
# g++-4.2: -E, -S, -save-temps and -M options are not allowed with multiple -arch flags
universal_variant no