A WebKit browser component for KDE (KPart).

It is used by default in our KDE 4 because KHTML (or, more technically, KJS)
crashes at start. Thus it's a run-time dependency of kde-baseapps package.
This commit is contained in:
zhuk 2013-04-24 19:19:31 +00:00
parent b326ca1f31
commit e66f6c2c6d
5 changed files with 56 additions and 0 deletions

29
www/kwebkitpart/Makefile Normal file
View File

@ -0,0 +1,29 @@
# $OpenBSD: Makefile,v 1.1.1.1 2013/04/24 19:19:31 zhuk Exp $
CATEGORIES = www
COMMENT = Webkit-based KPart for KDE
HOMEPAGE = https://projects.kde.org/projects/extragear/base/kwebkitpart
DISTNAME = kwebkitpart-1.2
EXTRACT_SUFX = .tar.bz2
MASTER_SITES = ftp://3ps.if.ua/pub/OpenBSD/distfiles/ \
http://spacehopper.org/mirrors/ \
http://www.ohvost.ru/dnl/kde/src/
# LGPLv2+
PERMIT_PACKAGE_CDROM = Yes
WANTLIB = c m pthread stdc++
WANTLIB += lib/qt4/QtDBus lib/qt4/QtGui lib/qt4/QtNetwork
WANTLIB += lib/qt4/QtSvg lib/qt4/QtWebKit lib/qt4/QtXml
WANTLIB += ${KDE4LIB}/kdeui ${KDE4LIB}/kio ${KDE4LIB}/kparts
WANTLIB += ${KDE4LIB}/kdewebkit ${KDE4LIB}/nepomuk ${KDE4LIB}/nepomukutils
WANTLIB += soprano
RUN_DEPENDS = x11/gtk+2,-guic
MODULES = x11/kde4
MODKDE4_USE = libs
.include <bsd.port.mk>

2
www/kwebkitpart/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (kwebkitpart-1.2.tar.bz2) = LYC+1X/DfJhqxMwAgCXC2XEBk56InK1yY4spNKG28No=
SIZE (kwebkitpart-1.2.tar.bz2) = 100067

View File

@ -0,0 +1,10 @@
$OpenBSD: patch-src_kwebkitpart_desktop,v 1.1.1.1 2013/04/24 19:19:31 zhuk Exp $
Increase preference to make Webkit KPart supersede KHTML one.
--- src/kwebkitpart.desktop.orig Fri Oct 14 00:51:10 2011
+++ src/kwebkitpart.desktop Fri Oct 14 00:51:20 2011
@@ -92,4 +92,4 @@ Name[zh_TW]=WebKit
X-KDE-Default-UserAgent=Mozilla/5.0 (%PLATFORM%; %SECURITY%; %OSNAME% %OSVERSION% %SYSTYPE%; %LANGUAGE%) AppleWebKit/533.3 (KHTML, like Gecko) %APPVERSION% Safari/533.3
X-KDE-ServiceTypes=KParts/ReadOnlyPart,Browser/View
X-KDE-Library=kwebkitpart
-InitialPreference=9
+InitialPreference=11

View File

@ -0,0 +1 @@
A WebKit browser component for KDE (KPart).

14
www/kwebkitpart/pkg/PLIST Normal file
View File

@ -0,0 +1,14 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2013/04/24 19:19:31 zhuk Exp $
lib/kde4/kwebkitpart.so
share/apps/kwebkitpart/
share/apps/kwebkitpart/error.html
share/apps/kwebkitpart/kwebkitpart.rc
share/icons/hicolor/128x128/apps/webkit.png
share/icons/hicolor/16x16/apps/webkit.png
share/icons/hicolor/22x22/apps/webkit.png
share/icons/hicolor/32x32/apps/webkit.png
share/icons/hicolor/48x48/apps/webkit.png
share/icons/hicolor/64x64/apps/webkit.png
share/kde4/services/kwebkitpart.desktop
@exec %D/bin/gtk-update-icon-cache -q -t %D/share/icons/hicolor
@unexec-delete %D/bin/gtk-update-icon-cache -q -t %D/share/icons/hicolor