aboutsummaryrefslogtreecommitdiffstats
path: root/devel/libdbusmenu-qt
diff options
context:
space:
mode:
authoravilla <avilla@FreeBSD.org>2010-11-16 18:10:35 +0800
committeravilla <avilla@FreeBSD.org>2010-11-16 18:10:35 +0800
commitd957433372e9b556d91c7cb6b2dc18ef1a71d228 (patch)
treef750f5c6404aadb91f4be27a8e06603b755b669f /devel/libdbusmenu-qt
parentbe6db5486258c9016dddf8d4cea3ed18f39b0ef6 (diff)
downloadfreebsd-ports-gnome-d957433372e9b556d91c7cb6b2dc18ef1a71d228.tar.gz
freebsd-ports-gnome-d957433372e9b556d91c7cb6b2dc18ef1a71d228.tar.zst
freebsd-ports-gnome-d957433372e9b556d91c7cb6b2dc18ef1a71d228.zip
- Update to 0.6.4.
- Add some external contributions rejected by Canonical because of copyright issues. [1] Approved by: tabthorpe (mentor) Obtained from: http://bazaar.launchpad.net/~kubuntu-members/libdbusmenu-qt/ubuntu/files/head:/debian/patches/ [1]
Diffstat (limited to 'devel/libdbusmenu-qt')
-rw-r--r--devel/libdbusmenu-qt/Makefile8
-rw-r--r--devel/libdbusmenu-qt/distinfo5
-rw-r--r--devel/libdbusmenu-qt/files/patch-CMakeLists.txt10
-rw-r--r--devel/libdbusmenu-qt/files/patch-dbusmenu-qt.pc.in10
-rw-r--r--devel/libdbusmenu-qt/files/patch-src__CMakeLists.txt33
-rw-r--r--devel/libdbusmenu-qt/files/patch-src__dbusmenuexporter.cpp10
-rw-r--r--devel/libdbusmenu-qt/files/patch-src__dbusmenuimporter.cpp80
-rw-r--r--devel/libdbusmenu-qt/pkg-plist2
8 files changed, 141 insertions, 17 deletions
diff --git a/devel/libdbusmenu-qt/Makefile b/devel/libdbusmenu-qt/Makefile
index b71401f4625c..493cc7bd519d 100644
--- a/devel/libdbusmenu-qt/Makefile
+++ b/devel/libdbusmenu-qt/Makefile
@@ -6,9 +6,10 @@
#
PORTNAME= libdbusmenu-qt
-PORTVERSION= 0.6.0
+PORTVERSION= 0.6.4
CATEGORIES= devel
-MASTER_SITES= http://launchpadlibrarian.net/53980131/
+MASTER_SITES= ${MASTER_SITE_LOCAL}
+MASTER_SITE_SUBDIR= avilla
MAINTAINER= kde@FreeBSD.org
COMMENT= Qt4 implementation of the DBusMenu protocol
@@ -25,6 +26,7 @@ MAKE_JOBS_SAFE= yes
post-patch:
@${REINPLACE_CMD} -e '/pkgconfig/ s/$${LIB_SUFFIX}/data/' \
- ${WRKSRC}/CMakeLists.txt
+ -e '/tests/ d' -e '/tools/ d' \
+ ${WRKSRC}/CMakeLists.txt
.include <bsd.port.mk>
diff --git a/devel/libdbusmenu-qt/distinfo b/devel/libdbusmenu-qt/distinfo
index aaeba2acfa7f..f08f2bb66e09 100644
--- a/devel/libdbusmenu-qt/distinfo
+++ b/devel/libdbusmenu-qt/distinfo
@@ -1,3 +1,2 @@
-MD5 (libdbusmenu-qt-0.6.0.tar.bz2) = 327d2b401f06b41f92250278cdb1b4e8
-SHA256 (libdbusmenu-qt-0.6.0.tar.bz2) = 881866db3db08ba1dc62a716d11f108554148d2fe90d4521d4da1f4a49fc7f15
-SIZE (libdbusmenu-qt-0.6.0.tar.bz2) = 30491
+SHA256 (libdbusmenu-qt-0.6.4.tar.bz2) = 67220a495039132e405f4c5ef380554275681fdd6fe0a6e82d9e4a718530a924
+SIZE (libdbusmenu-qt-0.6.4.tar.bz2) = 30620
diff --git a/devel/libdbusmenu-qt/files/patch-CMakeLists.txt b/devel/libdbusmenu-qt/files/patch-CMakeLists.txt
deleted file mode 100644
index 103ddad46921..000000000000
--- a/devel/libdbusmenu-qt/files/patch-CMakeLists.txt
+++ /dev/null
@@ -1,10 +0,0 @@
---- ./CMakeLists.txt.orig 2010-08-19 12:55:12.000000000 +0400
-+++ ./CMakeLists.txt 2010-09-01 23:35:53.634132670 +0400
-@@ -56,7 +56,3 @@
- option(BUILD_TESTS "Build tests" ON)
-
- add_subdirectory(src)
--if (BUILD_TESTS)
-- add_subdirectory(tests)
--endif (BUILD_TESTS)
--add_subdirectory(tools)
diff --git a/devel/libdbusmenu-qt/files/patch-dbusmenu-qt.pc.in b/devel/libdbusmenu-qt/files/patch-dbusmenu-qt.pc.in
new file mode 100644
index 000000000000..60ac2e410397
--- /dev/null
+++ b/devel/libdbusmenu-qt/files/patch-dbusmenu-qt.pc.in
@@ -0,0 +1,10 @@
+--- ./dbusmenu-qt.pc.in.orig 2010-09-23 10:08:35.000000000 +0000
++++ ./dbusmenu-qt.pc.in 2010-11-12 14:49:39.000000000 +0000
+@@ -1,6 +1,6 @@
+ prefix=@CMAKE_INSTALL_PREFIX@
+ exec_prefix=@CMAKE_INSTALL_PREFIX@
+-libdir=@CMAKE_INSTALL_PREFIX@/lib
++libdir=@CMAKE_INSTALL_PREFIX@/lib@LIB_SUFFIX@
+ includedir=@CMAKE_INSTALL_PREFIX@/include/dbusmenu-qt
+
+ Name: libdbusmenu-qt
diff --git a/devel/libdbusmenu-qt/files/patch-src__CMakeLists.txt b/devel/libdbusmenu-qt/files/patch-src__CMakeLists.txt
new file mode 100644
index 000000000000..7ca01761864d
--- /dev/null
+++ b/devel/libdbusmenu-qt/files/patch-src__CMakeLists.txt
@@ -0,0 +1,33 @@
+--- ./src/CMakeLists.txt.orig 2010-09-23 10:08:35.000000000 +0000
++++ ./src/CMakeLists.txt 2010-11-12 14:49:39.000000000 +0000
+@@ -17,6 +17,10 @@
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
+ endif (__DBUSMENU_HAVE_W_ALL)
+
++if (MSVC)
++ add_definitions(-D__PRETTY_FUNCTION__=__FUNCTION__)
++endif (MSVC)
++
+ # Check whether QIcon::name() exists. It was added in late Qt 4.7 cycle, and is
+ # not present in betas.
+ set(CMAKE_REQUIRED_INCLUDES "${QT_INCLUDE_DIR}")
+@@ -34,6 +38,7 @@
+ endif()
+ configure_file(dbusmenu_config.h.in ${CMAKE_CURRENT_BINARY_DIR}/dbusmenu_config.h @ONLY)
+
++
+ set(dbusmenu_qt_SRCS
+ dbusmenu_p.cpp
+ dbusmenuexporter.cpp
+@@ -74,7 +79,10 @@
+ )
+
+ install(TARGETS dbusmenu-qt
+- LIBRARY DESTINATION lib${LIB_SUFFIX})
++ LIBRARY DESTINATION lib${LIB_SUFFIX}
++ ARCHIVE DESTINATION lib
++ RUNTIME DESTINATION bin
++)
+
+ install(DIRECTORY .
+ DESTINATION include/dbusmenu-qt
diff --git a/devel/libdbusmenu-qt/files/patch-src__dbusmenuexporter.cpp b/devel/libdbusmenu-qt/files/patch-src__dbusmenuexporter.cpp
new file mode 100644
index 000000000000..f9bd22f52017
--- /dev/null
+++ b/devel/libdbusmenu-qt/files/patch-src__dbusmenuexporter.cpp
@@ -0,0 +1,10 @@
+--- ./src/dbusmenuexporter.cpp.orig 2010-09-23 10:08:35.000000000 +0000
++++ ./src/dbusmenuexporter.cpp 2010-11-12 14:49:39.000000000 +0000
+@@ -79,6 +79,7 @@
+ {
+ QVariantMap map;
+ map.insert("enabled", false);
++ map.insert("x-kde-title", true);
+
+ const QWidgetAction *widgetAction = qobject_cast<const QWidgetAction *>(action_);
+ DMRETURN_VALUE_IF_FAIL(widgetAction, map);
diff --git a/devel/libdbusmenu-qt/files/patch-src__dbusmenuimporter.cpp b/devel/libdbusmenu-qt/files/patch-src__dbusmenuimporter.cpp
new file mode 100644
index 000000000000..c252a3d9f8cc
--- /dev/null
+++ b/devel/libdbusmenu-qt/files/patch-src__dbusmenuimporter.cpp
@@ -0,0 +1,80 @@
+--- ./src/dbusmenuimporter.cpp.orig 2010-09-23 10:08:35.000000000 +0000
++++ ./src/dbusmenuimporter.cpp 2010-11-12 14:49:39.000000000 +0000
+@@ -32,6 +32,8 @@
+ #include <QSignalMapper>
+ #include <QTime>
+ #include <QTimer>
++#include <QToolButton>
++#include <QWidgetAction>
+
+ // Local
+ #include "dbusmenuitem_p.h"
+@@ -41,7 +43,6 @@
+
+ //#define BENCHMARK
+ #ifdef BENCHMARK
+-#include <QTime>
+ static QTime sChrono;
+ #endif
+
+@@ -66,6 +67,29 @@
+ DBusMenuImporterMethod m_method;
+ };
+
++class EventSniffer : public QObject
++{
++public:
++ EventSniffer(QObject *parent = 0)
++ : QObject(parent) { }
++
++ ~EventSniffer() { }
++
++ bool eventFilter(QObject *object, QEvent *event)
++ {
++ Q_UNUSED(object);
++
++ if (event->type() == QEvent::Paint ||
++ event->type() == QEvent::KeyPress ||
++ event->type() == QEvent::KeyRelease) {
++ return false;
++ }
++
++ event->accept();
++ return true;
++ }
++};
++
+ class DBusMenuImporterPrivate
+ {
+ public:
+@@ -143,8 +167,30 @@
+ group->addAction(action);
+ }
+ }
++
++ bool isMenuTitle = map.take("x-kde-title").toBool();
++
+ updateAction(action, map, map.keys());
+
++ if (isMenuTitle) {
++ QAction *buttonAction = action;
++ QFont font = buttonAction->font();
++ font.setBold(true);
++ buttonAction->setFont(font);
++ buttonAction->setEnabled(true);
++
++ QWidgetAction *action = new QWidgetAction(parent);
++ action->setObjectName("kmenu_title");
++ QToolButton *titleButton = new QToolButton(0);
++ EventSniffer *eventSniffer = new EventSniffer(titleButton);
++ titleButton->installEventFilter(eventSniffer); // prevent clicks on the title of the menu
++ titleButton->setDefaultAction(buttonAction);
++ titleButton->setDown(true); // prevent hover style changes in some styles
++ titleButton->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
++ action->setDefaultWidget(titleButton);
++ return action;
++ }
++
+ return action;
+ }
+
diff --git a/devel/libdbusmenu-qt/pkg-plist b/devel/libdbusmenu-qt/pkg-plist
index db3a2d80b8cf..d00ca726f648 100644
--- a/devel/libdbusmenu-qt/pkg-plist
+++ b/devel/libdbusmenu-qt/pkg-plist
@@ -4,6 +4,6 @@ include/dbusmenu-qt/dbusmenuexporter.h
include/dbusmenu-qt/dbusmenuimporter.h
lib/libdbusmenu-qt.so
lib/libdbusmenu-qt.so.2
-lib/libdbusmenu-qt.so.2.3.0
+lib/libdbusmenu-qt.so.2.3.4
libdata/pkgconfig/dbusmenu-qt.pc
@dirrm include/dbusmenu-qt