summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--editors/calligra/Makefile9
-rw-r--r--editors/calligra/files/patch-filters-kword-CMakeLists.txt16
-rw-r--r--editors/calligra/pkg-plist5
-rw-r--r--editors/koffice-kde4/Makefile9
-rw-r--r--editors/koffice-kde4/files/patch-filters-kword-CMakeLists.txt16
-rw-r--r--editors/koffice-kde4/pkg-plist5
6 files changed, 48 insertions, 12 deletions
diff --git a/editors/calligra/Makefile b/editors/calligra/Makefile
index af0d570691fe..ed8733b6c347 100644
--- a/editors/calligra/Makefile
+++ b/editors/calligra/Makefile
@@ -7,7 +7,7 @@
PORTNAME= koffice
PORTVERSION= 2.3.3
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= editors kde
MASTER_SITES= ${MASTER_SITE_KDE}
MASTER_SITE_SUBDIR= ${KOFFICE2_BRANCH}/${PORTNAME}-${PORTVERSION}/
@@ -33,7 +33,6 @@ LIB_DEPENDS= boost_thread.4:${PORTSDIR}/devel/boost-libs \
poppler-qt4.3:${PORTSDIR}/graphics/poppler-qt4 \
tiff.4:${PORTSDIR}/graphics/tiff \
gsl.16:${PORTSDIR}/math/gsl \
- wv2.4:${PORTSDIR}/textproc/wv2 \
freetype.9:${PORTSDIR}/print/freetype2 \
qimageblitz.4:${PORTSDIR}/x11/qimageblitz \
fontconfig.1:${PORTSDIR}/x11-fonts/fontconfig \
@@ -41,6 +40,8 @@ LIB_DEPENDS= boost_thread.4:${PORTSDIR}/devel/boost-libs \
dcmdata.3:${PORTSDIR}/devel/dcmtk
RUN_DEPENDS= ${LOCALBASE}/lib/libpqxx.a:${PORTSDIR}/databases/postgresql-libpqxx30
+CONFLICTS= calligra-[0-9]*
+
USE_BZIP2= yes
USE_CMAKE= yes
USE_ICONV= yes
@@ -110,10 +111,6 @@ post-patch:
${PATCH_WRKSRC}/cmake/modules/FindImageMagick.cmake
${REINPLACE_CMD} -e 's|/usr/include|${LOCALBASE}/include|' \
${PATCH_WRKSRC}/cmake/modules/FindWPD.cmake
- ${REINPLACE_CMD} -e 's|-DHAVE_ICONV_H|-DHAVE_ICONV_H -L${LOCALBASE}/lib -liconv -Wl,-rpath -Wl,${LOCALBASE}/lib -liconv|' \
- ${PATCH_WRKSRC}/filters/kword/CMakeLists.txt
- ${REINPLACE_CMD} -e '/add_subdirectory(wv2)/d' \
- ${PATCH_WRKSRC}/filters/kword/msword-odf/CMakeLists.txt
post-install:
@-update-mime-database ${PREFIX}/share/mime
diff --git a/editors/calligra/files/patch-filters-kword-CMakeLists.txt b/editors/calligra/files/patch-filters-kword-CMakeLists.txt
new file mode 100644
index 000000000000..5e139efd9f19
--- /dev/null
+++ b/editors/calligra/files/patch-filters-kword-CMakeLists.txt
@@ -0,0 +1,16 @@
+--- filters/kword/CMakeLists.txt
++++ filters/kword/CMakeLists.txt
+@@ -42,7 +42,12 @@ IF( HAVE_SYS_ICONV_H )
+ SET( ICONV_COMPILE_DEFINITIONS ${ICONV_COMPILE_DEFINITIONS} "-DHAVE_SYS_ICONV_H" )
+ ENDIF( HAVE_SYS_ICONV_H )
+
+-TRY_RUN( MODERN_ICONV_RUN MODERN_ICONV_COMPILE ${CMAKE_CURRENT_BINARY_DIR}/CMakeTmp ${CMAKE_SOURCE_DIR}/cmake/TestModernIconv.c COMPILE_DEFINITIONS ${ICONV_COMPILE_DEFINITIONS} )
++TRY_RUN( MODERN_ICONV_RUN MODERN_ICONV_COMPILE
++ ${CMAKE_CURRENT_BINARY_DIR}/CMakeTmp
++ ${CMAKE_SOURCE_DIR}/cmake/TestModernIconv.c
++ CMAKE_FLAGS "-DLINK_LIBRARIES:STRING=${ICONV_LIBRARIES}"
++ "-DINCLUDE_DIRECTORIES:STRING=${ICONV_INCLUDE_DIR}"
++ COMPILE_DEFINITIONS ${ICONV_COMPILE_DEFINITIONS} )
+
+ IF( MODERN_ICONV_RUN GREATER 0 OR NOT MODERN_ICONV_COMPILE )
+ MESSAGE( STATUS "wv2 depends on a modern iconv installation, supporting UNICODELITTLE and" )
diff --git a/editors/calligra/pkg-plist b/editors/calligra/pkg-plist
index d1862ababb1a..0facf58bdc5d 100644
--- a/editors/calligra/pkg-plist
+++ b/editors/calligra/pkg-plist
@@ -566,6 +566,7 @@ lib/kde4/kspreadtextmodule.so
lib/kde4/kspreadtrigonometrymodule.so
lib/kde4/kwordkword1dot3import.so
lib/kde4/kwordpart.so
+lib/kde4/mswordodf_import.so
lib/kde4/musicshape.so
lib/kde4/okularGenerator_odp.so
lib/kde4/oowriterexport.so
@@ -694,6 +695,9 @@ lib/libkowidgets.so.8.0.0
lib/libkowmf.so
lib/libkowmf.so.8
lib/libkowmf.so.8.0.0
+lib/libkowv2.so
+lib/libkowv2.so.4
+lib/libkowv2.so.4.0.1
lib/libkplatokernel.so
lib/libkplatokernel.so.8
lib/libkplatokernel.so.8.0.0
@@ -2782,6 +2786,7 @@ share/kde4/services/kword_docx_import.desktop
share/kde4/services/kword_hancomword_import.desktop
share/kde4/services/kword_html_export.desktop
share/kde4/services/kword_html_import.desktop
+share/kde4/services/kword_msword-odf_import.desktop
share/kde4/services/kword_oowriter_export.desktop
share/kde4/services/kword_oowriter_import.desktop
share/kde4/services/kword_palmdoc_export.desktop
diff --git a/editors/koffice-kde4/Makefile b/editors/koffice-kde4/Makefile
index af0d570691fe..ed8733b6c347 100644
--- a/editors/koffice-kde4/Makefile
+++ b/editors/koffice-kde4/Makefile
@@ -7,7 +7,7 @@
PORTNAME= koffice
PORTVERSION= 2.3.3
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= editors kde
MASTER_SITES= ${MASTER_SITE_KDE}
MASTER_SITE_SUBDIR= ${KOFFICE2_BRANCH}/${PORTNAME}-${PORTVERSION}/
@@ -33,7 +33,6 @@ LIB_DEPENDS= boost_thread.4:${PORTSDIR}/devel/boost-libs \
poppler-qt4.3:${PORTSDIR}/graphics/poppler-qt4 \
tiff.4:${PORTSDIR}/graphics/tiff \
gsl.16:${PORTSDIR}/math/gsl \
- wv2.4:${PORTSDIR}/textproc/wv2 \
freetype.9:${PORTSDIR}/print/freetype2 \
qimageblitz.4:${PORTSDIR}/x11/qimageblitz \
fontconfig.1:${PORTSDIR}/x11-fonts/fontconfig \
@@ -41,6 +40,8 @@ LIB_DEPENDS= boost_thread.4:${PORTSDIR}/devel/boost-libs \
dcmdata.3:${PORTSDIR}/devel/dcmtk
RUN_DEPENDS= ${LOCALBASE}/lib/libpqxx.a:${PORTSDIR}/databases/postgresql-libpqxx30
+CONFLICTS= calligra-[0-9]*
+
USE_BZIP2= yes
USE_CMAKE= yes
USE_ICONV= yes
@@ -110,10 +111,6 @@ post-patch:
${PATCH_WRKSRC}/cmake/modules/FindImageMagick.cmake
${REINPLACE_CMD} -e 's|/usr/include|${LOCALBASE}/include|' \
${PATCH_WRKSRC}/cmake/modules/FindWPD.cmake
- ${REINPLACE_CMD} -e 's|-DHAVE_ICONV_H|-DHAVE_ICONV_H -L${LOCALBASE}/lib -liconv -Wl,-rpath -Wl,${LOCALBASE}/lib -liconv|' \
- ${PATCH_WRKSRC}/filters/kword/CMakeLists.txt
- ${REINPLACE_CMD} -e '/add_subdirectory(wv2)/d' \
- ${PATCH_WRKSRC}/filters/kword/msword-odf/CMakeLists.txt
post-install:
@-update-mime-database ${PREFIX}/share/mime
diff --git a/editors/koffice-kde4/files/patch-filters-kword-CMakeLists.txt b/editors/koffice-kde4/files/patch-filters-kword-CMakeLists.txt
new file mode 100644
index 000000000000..5e139efd9f19
--- /dev/null
+++ b/editors/koffice-kde4/files/patch-filters-kword-CMakeLists.txt
@@ -0,0 +1,16 @@
+--- filters/kword/CMakeLists.txt
++++ filters/kword/CMakeLists.txt
+@@ -42,7 +42,12 @@ IF( HAVE_SYS_ICONV_H )
+ SET( ICONV_COMPILE_DEFINITIONS ${ICONV_COMPILE_DEFINITIONS} "-DHAVE_SYS_ICONV_H" )
+ ENDIF( HAVE_SYS_ICONV_H )
+
+-TRY_RUN( MODERN_ICONV_RUN MODERN_ICONV_COMPILE ${CMAKE_CURRENT_BINARY_DIR}/CMakeTmp ${CMAKE_SOURCE_DIR}/cmake/TestModernIconv.c COMPILE_DEFINITIONS ${ICONV_COMPILE_DEFINITIONS} )
++TRY_RUN( MODERN_ICONV_RUN MODERN_ICONV_COMPILE
++ ${CMAKE_CURRENT_BINARY_DIR}/CMakeTmp
++ ${CMAKE_SOURCE_DIR}/cmake/TestModernIconv.c
++ CMAKE_FLAGS "-DLINK_LIBRARIES:STRING=${ICONV_LIBRARIES}"
++ "-DINCLUDE_DIRECTORIES:STRING=${ICONV_INCLUDE_DIR}"
++ COMPILE_DEFINITIONS ${ICONV_COMPILE_DEFINITIONS} )
+
+ IF( MODERN_ICONV_RUN GREATER 0 OR NOT MODERN_ICONV_COMPILE )
+ MESSAGE( STATUS "wv2 depends on a modern iconv installation, supporting UNICODELITTLE and" )
diff --git a/editors/koffice-kde4/pkg-plist b/editors/koffice-kde4/pkg-plist
index d1862ababb1a..0facf58bdc5d 100644
--- a/editors/koffice-kde4/pkg-plist
+++ b/editors/koffice-kde4/pkg-plist
@@ -566,6 +566,7 @@ lib/kde4/kspreadtextmodule.so
lib/kde4/kspreadtrigonometrymodule.so
lib/kde4/kwordkword1dot3import.so
lib/kde4/kwordpart.so
+lib/kde4/mswordodf_import.so
lib/kde4/musicshape.so
lib/kde4/okularGenerator_odp.so
lib/kde4/oowriterexport.so
@@ -694,6 +695,9 @@ lib/libkowidgets.so.8.0.0
lib/libkowmf.so
lib/libkowmf.so.8
lib/libkowmf.so.8.0.0
+lib/libkowv2.so
+lib/libkowv2.so.4
+lib/libkowv2.so.4.0.1
lib/libkplatokernel.so
lib/libkplatokernel.so.8
lib/libkplatokernel.so.8.0.0
@@ -2782,6 +2786,7 @@ share/kde4/services/kword_docx_import.desktop
share/kde4/services/kword_hancomword_import.desktop
share/kde4/services/kword_html_export.desktop
share/kde4/services/kword_html_import.desktop
+share/kde4/services/kword_msword-odf_import.desktop
share/kde4/services/kword_oowriter_export.desktop
share/kde4/services/kword_oowriter_import.desktop
share/kde4/services/kword_palmdoc_export.desktop