Page MenuHomeFreeBSD

D10190.id26866.diff
No OneTemporary

D10190.id26866.diff

Index: head/MOVED
===================================================================
--- head/MOVED
+++ head/MOVED
@@ -4469,7 +4469,6 @@
deskutils/kbirthday||2013-07-26|Has expired: Depends on Qt 3.x
deskutils/kblticker||2013-07-26|Has expired: Depends on Qt 3.x
deskutils/kchm||2013-07-26|Has expired: Depends on Qt 3.x
-deskutils/kchmviewer||2013-07-26|Has expired: Depends on Qt 3.x
deskutils/kdepim3||2013-07-26|Has expired: Depends on Qt 3.x
deskutils/kdissert||2013-07-26|Has expired: Depends on Qt 3.x
deskutils/kickpim||2013-07-26|Has expired: Depends on Qt 3.x
@@ -9169,3 +9168,4 @@
devel/libytnef|converters/ytnef|2017-03-29|Merged into converters/ytnef
databases/py-sqlalchemy08|databases/py-sqlalchemy10|2017-03-29|Has expired: Upstream has declared this version EoL: please migrate to databases/py-sqlalchemy10
devel/py3-meson||2017-03-30|Removed
+deskutils/kchmviewer-kde4|deskutils/kchmviewer|2017-03-31|Renamed to drop the -kde4 suffix
Index: head/deskutils/Makefile
===================================================================
--- head/deskutils/Makefile
+++ head/deskutils/Makefile
@@ -123,7 +123,7 @@
SUBDIR += jjclient
SUBDIR += jlj
SUBDIR += kcharselect
- SUBDIR += kchmviewer-kde4
+ SUBDIR += kchmviewer
SUBDIR += kdeconnect
SUBDIR += kdepim4
SUBDIR += kdepim4-runtime
Index: head/deskutils/kchmviewer-kde4/Makefile
===================================================================
--- head/deskutils/kchmviewer-kde4/Makefile
+++ head/deskutils/kchmviewer-kde4/Makefile
@@ -1,31 +0,0 @@
-# Created by: Markus Brueffer <markus@FreeBSD.org>
-# $FreeBSD$
-
-PORTNAME= kchmviewer
-PORTVERSION= 7.2
-DISTVERSIONSUFFIX= .1
-PORTREVISION= 1
-CATEGORIES= deskutils kde
-MASTER_SITES= SF
-
-MAINTAINER= ports@FreeBSD.org
-COMMENT= KDE viewer for CHM files
-
-LIB_DEPENDS= libchm.so:misc/chmlib \
- libzip.so:archivers/libzip
-
-USES= cmake:outsource gettext-tools kde:4
-USE_KDE= kdelibs automoc4
-USE_QT4= webkit qmake_build moc_build rcc_build uic_build
-
-WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION}
-
-post-patch:
- ${REINPLACE_CMD} 's,/usr/bin/kate,${KDE_PREFIX}/bin/kate,' \
- ${WRKSRC}/src/config.cpp
-
-post-install:
- ${MKDIR} ${STAGEDIR}${PREFIX}/share/pixmaps
- ${INSTALL_DATA} ${WRKSRC}/packages/kchmviewer.png ${STAGEDIR}${PREFIX}/share/pixmaps
-
-.include <bsd.port.mk>
Index: head/deskutils/kchmviewer-kde4/distinfo
===================================================================
--- head/deskutils/kchmviewer-kde4/distinfo
+++ head/deskutils/kchmviewer-kde4/distinfo
@@ -1,2 +0,0 @@
-SHA256 (kchmviewer-7.2.1.tar.gz) = 91c5a74b26956e76400a02285d534d1eebbb51ee478dcaaab7beff7aa870772a
-SIZE (kchmviewer-7.2.1.tar.gz) = 342665
Index: head/deskutils/kchmviewer-kde4/files/patch-packages__CMakeLists.txt
===================================================================
--- head/deskutils/kchmviewer-kde4/files/patch-packages__CMakeLists.txt
+++ head/deskutils/kchmviewer-kde4/files/patch-packages__CMakeLists.txt
@@ -1,9 +0,0 @@
---- ./packages/CMakeLists.txt.orig 2009-12-15 09:27:57.000000000 +0300
-+++ ./packages/CMakeLists.txt 2009-12-15 22:51:58.000000000 +0300
-@@ -1,4 +1,4 @@
--INSTALL( FILES kchmviewer.desktop DESTINATION ${KDE4_XDG_APPS_INSTALL_DIR} )
--KDE4_INSTALL_ICONS( ${KDE4_ICON_INSTALL_DIR} )
-+INSTALL( FILES kchmviewer.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
-+KDE4_INSTALL_ICONS( ${ICON_INSTALL_DIR} )
- KDE4_UPDATE_ICONCACHE( )
-
Index: head/deskutils/kchmviewer-kde4/files/patch-src__CMakeLists.txt
===================================================================
--- head/deskutils/kchmviewer-kde4/files/patch-src__CMakeLists.txt
+++ head/deskutils/kchmviewer-kde4/files/patch-src__CMakeLists.txt
@@ -1,9 +0,0 @@
---- ./src/CMakeLists.txt.orig 2011-12-19 07:16:43.000000000 +0000
-+++ ./src/CMakeLists.txt 2012-01-13 21:28:06.869127671 +0000
-@@ -53,5 +53,5 @@
- ${QT_QTWEBKIT_LIBRARY}
- ${KDE4_KFILE_LIBS} )
-
--INSTALL( TARGETS kchmviewer DESTINATION ${KDE4_BIN_INSTALL_DIR} )
-+INSTALL( TARGETS kchmviewer DESTINATION ${BIN_INSTALL_DIR} )
-
Index: head/deskutils/kchmviewer-kde4/pkg-descr
===================================================================
--- head/deskutils/kchmviewer-kde4/pkg-descr
+++ head/deskutils/kchmviewer-kde4/pkg-descr
@@ -1,11 +0,0 @@
-KchmViewer is a chm (MS HTML help file format) viewer. Unlike most existing
-CHM viewers for Unix, it uses Trolltech's Qt widget library, and does not
-depend on KDE or Gnome. However, it may be compiled with full KDE support,
-including KDE widgets and KIO/KHTML.
-
-The main advantage of KchmViewer is non-english language support. Unlike
-others, KchmViewer in most cases correctly detects help file encoding,
-correctly shows tables of context of russian, korean, chinese and japanese
-help files, and correctly searches in non-english help files.
-
-WWW: http://www.kchmviewer.net/
Index: head/deskutils/kchmviewer-kde4/pkg-plist
===================================================================
--- head/deskutils/kchmviewer-kde4/pkg-plist
+++ head/deskutils/kchmviewer-kde4/pkg-plist
@@ -1,15 +0,0 @@
-bin/kchmviewer
-share/applications/kde4/kchmviewer.desktop
-share/locale/cs/LC_MESSAGES/kchmviewer.mo
-share/locale/fr/LC_MESSAGES/kchmviewer.mo
-share/locale/hu/LC_MESSAGES/kchmviewer.mo
-share/locale/it/LC_MESSAGES/kchmviewer.mo
-share/locale/nl/LC_MESSAGES/kchmviewer.mo
-share/locale/pt_BR/LC_MESSAGES/kchmviewer.mo
-share/locale/ru/LC_MESSAGES/kchmviewer.mo
-share/locale/sv/LC_MESSAGES/kchmviewer.mo
-share/locale/tr/LC_MESSAGES/kchmviewer.mo
-share/locale/uk/LC_MESSAGES/kchmviewer.mo
-share/locale/zh_CN/LC_MESSAGES/kchmviewer.mo
-share/locale/zh_TW/LC_MESSAGES/kchmviewer.mo
-share/pixmaps/kchmviewer.png
Index: head/deskutils/kchmviewer/Makefile
===================================================================
--- head/deskutils/kchmviewer/Makefile
+++ head/deskutils/kchmviewer/Makefile
@@ -0,0 +1,20 @@
+# Created by: Markus Brueffer <markus@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= kchmviewer
+PORTVERSION= 7.7
+CATEGORIES= deskutils kde
+MASTER_SITES= SF
+
+MAINTAINER= kde@FreeBSD.org
+COMMENT= KDE viewer for CHM files
+
+LIB_DEPENDS= libchm.so:misc/chmlib \
+ libzip.so:archivers/libzip
+
+USES= dos2unix qmake:outsource
+USE_QT5= core dbus gui network printsupport webkit widgets xml \
+ buildtools_build qmake_build
+USE_XORG= x11
+
+.include <bsd.port.mk>
Index: head/deskutils/kchmviewer/distinfo
===================================================================
--- head/deskutils/kchmviewer/distinfo
+++ head/deskutils/kchmviewer/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1490818978
+SHA256 (kchmviewer-7.7.tar.gz) = 27cbac45c786b1718550a87e6f86010e161302b426c6396ff2a3091b913b17dd
+SIZE (kchmviewer-7.7.tar.gz) = 345952
Index: head/deskutils/kchmviewer/files/patch-src_src.pro
===================================================================
--- head/deskutils/kchmviewer/files/patch-src_src.pro
+++ head/deskutils/kchmviewer/files/patch-src_src.pro
@@ -0,0 +1,65 @@
+This patch contains the following (by hunks)
+ 1) also link against libX11 on FreeBSD
+ 2) this is obtained from arch, to fix underlinking
+ and
+ remove the wrong Qt5 version check
+ 4) create installation targets
+
+--- src/src.pro.orig 2017-03-29 21:21:13 UTC
++++ src/src.pro
+@@ -67,7 +67,7 @@ QT += webkit \
+ webkitwidgets \
+ printsupport
+
+-linux-g++*:{
++unix:{
+ LIBS += -lX11
+ }
+
+@@ -108,26 +108,16 @@ unix:!macx: {
+ HEADERS += dbus_interface.h
+ SOURCES += dbus_interface.cpp
+ CONFIG += dbus
+- LIBS += ../lib/libebook/libebook.a
++ LIBS += ../lib/libebook/libebook.a -lchm -lzip
+ POST_TARGETDEPS += ../lib/libebook/libebook.a
+ }
+
+ greaterThan(QT_MAJOR_VERSION, 4) {
+ # Qt 5
+- greaterThan(QT_MINOR_VERSION, 5) {
+- # Qt 5.6+
+- error("You use Qt5.6+ - QWebEngine is not yet suitable for kchmviewer and is not supported")
+- QT += webengine webenginewidgets
+- DEFINES += USE_WEBENGINE
+- SOURCES += viewwindow_webengine.cpp dataprovider_qwebengine.cpp
+- HEADERS += dataprovider_qwebengine.h viewwindow_webengine.h
+- } else {
+- # Qt 5.0-5.5
+- QT += webkit webkitwidgets
+- DEFINES += USE_WEBKIT
+- SOURCES += viewwindow_webkit.cpp dataprovider_qwebkit.cpp
+- HEADERS += dataprovider_qwebkit.h viewwindow_webkit.h
+- }
++ QT += webkit webkitwidgets
++ DEFINES += USE_WEBKIT
++ SOURCES += viewwindow_webkit.cpp dataprovider_qwebkit.cpp
++ HEADERS += dataprovider_qwebkit.h viewwindow_webkit.h
+ } else {
+ message("Qt4 is not supported anymore, please do not report any errors")
+ QT += webkit webkitwidgets
+@@ -135,3 +125,14 @@ greaterThan(QT_MAJOR_VERSION, 4) {
+ SOURCES += viewwindow_webkit.cpp dataprovider_qwebkit.cpp
+ HEADERS += dataprovider_qwebkit.h viewwindow_webkit.h
+ }
++
++# Define installation target for the binary
++target.path = $$PREFIX/bin
++# ... and for the icon
++icons.files = ../packages/kchmviewer.png
++icons.path = $$PREFIX/share/pixmaps
++# ... and the desktop file
++desktop.files = ../packages/kchmviewer.desktop
++desktop.path = $$PREFIX/share/applications
++
++INSTALLS += desktop icons target
Index: head/deskutils/kchmviewer/pkg-descr
===================================================================
--- head/deskutils/kchmviewer/pkg-descr
+++ head/deskutils/kchmviewer/pkg-descr
@@ -0,0 +1,11 @@
+KchmViewer is a chm (MS HTML help file format) viewer. Unlike most existing
+CHM viewers for Unix, it uses Trolltech's Qt widget library, and does not
+depend on KDE or Gnome. However, it may be compiled with full KDE support,
+including KDE widgets and KIO/KHTML.
+
+The main advantage of KchmViewer is non-english language support. Unlike
+others, KchmViewer in most cases correctly detects help file encoding,
+correctly shows tables of context of russian, korean, chinese and japanese
+help files, and correctly searches in non-english help files.
+
+WWW: http://www.kchmviewer.net/
Index: head/deskutils/kchmviewer/pkg-plist
===================================================================
--- head/deskutils/kchmviewer/pkg-plist
+++ head/deskutils/kchmviewer/pkg-plist
@@ -0,0 +1,3 @@
+bin/kchmviewer
+share/applications/kchmviewer.desktop
+share/pixmaps/kchmviewer.png

File Metadata

Mime Type
text/plain
Expires
Mon, Oct 5, 2:30 PM (3 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40242317
Default Alt Text
D10190.id26866.diff (10 KB)

Event Timeline