aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormakc <makc@FreeBSD.org>2010-05-26 15:34:15 +0800
committermakc <makc@FreeBSD.org>2010-05-26 15:34:15 +0800
commitb3d4da03445d8e09a148be40f0acd745860de3d3 (patch)
treeaafdbcaca32d9a6e5597e48e0503c9e95a5aeff8
parent21f1ca28d329bed3e0c5fb1682c92e0b13f6de8c (diff)
downloadfreebsd-ports-gnome-b3d4da03445d8e09a148be40f0acd745860de3d3.tar.gz
freebsd-ports-gnome-b3d4da03445d8e09a148be40f0acd745860de3d3.tar.zst
freebsd-ports-gnome-b3d4da03445d8e09a148be40f0acd745860de3d3.zip
Make setup for Nepomuk slightly more user-friendly:
add optional run dependency on databases/virtuoso add tiny script, that adjusts environment for KDE session
-rw-r--r--x11/kde4-runtime/Makefile15
-rw-r--r--x11/kde4-runtime/files/nepomuk-env.sh.in6
-rw-r--r--x11/kde4-runtime/pkg-plist2
-rw-r--r--x11/kdebase4-runtime/Makefile15
-rw-r--r--x11/kdebase4-runtime/files/nepomuk-env.sh.in6
-rw-r--r--x11/kdebase4-runtime/pkg-plist2
6 files changed, 44 insertions, 2 deletions
diff --git a/x11/kde4-runtime/Makefile b/x11/kde4-runtime/Makefile
index d04900015bc4..8efd24d07e74 100644
--- a/x11/kde4-runtime/Makefile
+++ b/x11/kde4-runtime/Makefile
@@ -8,6 +8,7 @@
PORTNAME= kdebase-runtime
PORTVERSION= ${KDE4_VERSION}
+PORTREVISION= 1
CATEGORIES= x11 kde
MASTER_SITES= ${MASTER_SITE_KDE}
MASTER_SITE_SUBDIR= ${KDE4_BRANCH}/${PORTVERSION}/src
@@ -33,7 +34,11 @@ USE_GETTEXT= yes
MAKE_JOBS_SAFE= yes
MAN1= kdesu.1
-OPTIONS= PULSEAUDIO "Enable playback via PulseAudio soundserver" off
+
+SUB_FILES= nepomuk-env.sh
+
+OPTIONS= PULSEAUDIO "Enable playback via PulseAudio soundserver" off \
+ VIRTUOSO "Install Virtuoso SQL server (required for Nepomuk)" off
# Explicitly disable alsa, see for details:
# http://mail.kde.org/pipermail/kde-freebsd/2010-March/008015.html
@@ -52,6 +57,10 @@ LIB_DEPENDS+= pulse.0:${PORTSDIR}/audio/pulseaudio
CMAKE_ARGS+= -DWITH_PulseAudio:BOOL=OFF
.endif
+.if defined(WITH_VIRTUOSO)
+RUN_DEPENDS+= ${LOCALBASE}/bin/virtuoso-t:${PORTSDIR}/databases/virtuoso
+.endif
+
.if exists(${LOCALBASE}/lib/soprano/libsoprano_virtuosobackend.so)
CMAKE_ARGS+= -DWITH_Nepomuk:BOOL=ON
MAN8= nepomukserver.8 nepomukservicestub.8
@@ -69,4 +78,8 @@ post-patch:
${PATCH_WRKSRC}/kioslave/man/man2html.cpp \
${PATCH_WRKSRC}/cmake/modules/FindCLucene.cmake
+post-install:
+ ${MKDIR} ${PREFIX}/env
+ ${INSTALL_SCRIPT} ${WRKDIR}/nepomuk-env.sh ${PREFIX}/env
+
.include <bsd.port.mk>
diff --git a/x11/kde4-runtime/files/nepomuk-env.sh.in b/x11/kde4-runtime/files/nepomuk-env.sh.in
new file mode 100644
index 000000000000..472cbb2580dc
--- /dev/null
+++ b/x11/kde4-runtime/files/nepomuk-env.sh.in
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+if [ %%PREFIX%% != %%LOCALBASE%% ]; then
+STRIGI_PLUGIN_PATH=${STRIGI_PLUGIN_PATH}:%%PREFIX%%/lib/strigi:%%LOCALBASE%%/lib/strigi
+export STRIGI_PLUGIN_PATH
+fi
diff --git a/x11/kde4-runtime/pkg-plist b/x11/kde4-runtime/pkg-plist
index 5dc744d58437..1db3aa271f1d 100644
--- a/x11/kde4-runtime/pkg-plist
+++ b/x11/kde4-runtime/pkg-plist
@@ -28,6 +28,7 @@ bin/kwriteconfig
%%NEPOMUK%%bin/nepomukservicestub
bin/plasmapkg
bin/solid-hardware
+env/nepomuk-env.sh
etc/xdg/menus/kde-information.menu
lib/attica_kde.so
lib/kconf_update_bin/phonon_devicepreference_update
@@ -2077,3 +2078,4 @@ share/sounds/KDE-Window-Shade-Up.ogg
@dirrm lib/kde4/plugins/phonon_platform
@dirrmtry etc/xdg/menus
@dirrmtry etc/xdg
+@dirrmtry env
diff --git a/x11/kdebase4-runtime/Makefile b/x11/kdebase4-runtime/Makefile
index d04900015bc4..8efd24d07e74 100644
--- a/x11/kdebase4-runtime/Makefile
+++ b/x11/kdebase4-runtime/Makefile
@@ -8,6 +8,7 @@
PORTNAME= kdebase-runtime
PORTVERSION= ${KDE4_VERSION}
+PORTREVISION= 1
CATEGORIES= x11 kde
MASTER_SITES= ${MASTER_SITE_KDE}
MASTER_SITE_SUBDIR= ${KDE4_BRANCH}/${PORTVERSION}/src
@@ -33,7 +34,11 @@ USE_GETTEXT= yes
MAKE_JOBS_SAFE= yes
MAN1= kdesu.1
-OPTIONS= PULSEAUDIO "Enable playback via PulseAudio soundserver" off
+
+SUB_FILES= nepomuk-env.sh
+
+OPTIONS= PULSEAUDIO "Enable playback via PulseAudio soundserver" off \
+ VIRTUOSO "Install Virtuoso SQL server (required for Nepomuk)" off
# Explicitly disable alsa, see for details:
# http://mail.kde.org/pipermail/kde-freebsd/2010-March/008015.html
@@ -52,6 +57,10 @@ LIB_DEPENDS+= pulse.0:${PORTSDIR}/audio/pulseaudio
CMAKE_ARGS+= -DWITH_PulseAudio:BOOL=OFF
.endif
+.if defined(WITH_VIRTUOSO)
+RUN_DEPENDS+= ${LOCALBASE}/bin/virtuoso-t:${PORTSDIR}/databases/virtuoso
+.endif
+
.if exists(${LOCALBASE}/lib/soprano/libsoprano_virtuosobackend.so)
CMAKE_ARGS+= -DWITH_Nepomuk:BOOL=ON
MAN8= nepomukserver.8 nepomukservicestub.8
@@ -69,4 +78,8 @@ post-patch:
${PATCH_WRKSRC}/kioslave/man/man2html.cpp \
${PATCH_WRKSRC}/cmake/modules/FindCLucene.cmake
+post-install:
+ ${MKDIR} ${PREFIX}/env
+ ${INSTALL_SCRIPT} ${WRKDIR}/nepomuk-env.sh ${PREFIX}/env
+
.include <bsd.port.mk>
diff --git a/x11/kdebase4-runtime/files/nepomuk-env.sh.in b/x11/kdebase4-runtime/files/nepomuk-env.sh.in
new file mode 100644
index 000000000000..472cbb2580dc
--- /dev/null
+++ b/x11/kdebase4-runtime/files/nepomuk-env.sh.in
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+if [ %%PREFIX%% != %%LOCALBASE%% ]; then
+STRIGI_PLUGIN_PATH=${STRIGI_PLUGIN_PATH}:%%PREFIX%%/lib/strigi:%%LOCALBASE%%/lib/strigi
+export STRIGI_PLUGIN_PATH
+fi
diff --git a/x11/kdebase4-runtime/pkg-plist b/x11/kdebase4-runtime/pkg-plist
index 5dc744d58437..1db3aa271f1d 100644
--- a/x11/kdebase4-runtime/pkg-plist
+++ b/x11/kdebase4-runtime/pkg-plist
@@ -28,6 +28,7 @@ bin/kwriteconfig
%%NEPOMUK%%bin/nepomukservicestub
bin/plasmapkg
bin/solid-hardware
+env/nepomuk-env.sh
etc/xdg/menus/kde-information.menu
lib/attica_kde.so
lib/kconf_update_bin/phonon_devicepreference_update
@@ -2077,3 +2078,4 @@ share/sounds/KDE-Window-Shade-Up.ogg
@dirrm lib/kde4/plugins/phonon_platform
@dirrmtry etc/xdg/menus
@dirrmtry etc/xdg
+@dirrmtry env