diff options
author | mezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059> | 2007-10-11 06:20:52 +0800 |
---|---|---|
committer | mezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059> | 2007-10-11 06:20:52 +0800 |
commit | d553e66125ba71263cb1d1dda29d00d19186e9ea (patch) | |
tree | f10d6db69b5bc7a5ac8995b4080969685feb9c86 /deskutils | |
parent | 0bf7715d8a2be8d25482f66c2dd3c97ff7e67fdc (diff) | |
download | marcuscom-ports-d553e66125ba71263cb1d1dda29d00d19186e9ea.tar.gz marcuscom-ports-d553e66125ba71263cb1d1dda29d00d19186e9ea.tar.zst marcuscom-ports-d553e66125ba71263cb1d1dda29d00d19186e9ea.zip |
Fix the installation.
Reported by: pointyhat-exp
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@9754 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'deskutils')
-rw-r--r-- | deskutils/pinot/Makefile | 103 | ||||
-rw-r--r-- | deskutils/pinot/distinfo | 3 | ||||
-rw-r--r-- | deskutils/pinot/files/patch-dbusxapianindex_reload03 | 77 | ||||
-rw-r--r-- | deskutils/pinot/files/pkg-message.in | 13 | ||||
-rw-r--r-- | deskutils/pinot/pkg-descr | 23 | ||||
-rw-r--r-- | deskutils/pinot/pkg-plist | 73 |
6 files changed, 292 insertions, 0 deletions
diff --git a/deskutils/pinot/Makefile b/deskutils/pinot/Makefile new file mode 100644 index 000000000..040474d2b --- /dev/null +++ b/deskutils/pinot/Makefile @@ -0,0 +1,103 @@ +# New ports collection makefile for: pinot +# Date created: 2006-11-19 +# Whom: Thierry Thomas <thierry@pompo.net> +# +# $FreeBSD$ +# + +PORTNAME= pinot +PORTVERSION= 0.76 +PORTREVISION= 2 +CATEGORIES= deskutils +MASTER_SITES= ${MASTER_SITE_BERLIOS} +#MASTER_SITES= http://www.chez.com/colinf/pinot/ \ +# http://amra.dyndns.org/ +MASTER_SITE_SUBDIR= ${PORTNAME} + +MAINTAINER= thierry@FreeBSD.org +COMMENT= Personal search and metasearch for the Free Desktop + +BUILD_DEPENDS= update-desktop-database:${PORTSDIR}/devel/desktop-file-utils \ + ${SQ3THOL}:${PORTSDIR}/databases/sqlite3-threads +LIB_DEPENDS= xapian.16:${PORTSDIR}/databases/xapian-core \ + gtkmm-2.4:${PORTSDIR}/x11-toolkits/gtkmm24 \ + textcat.0:${PORTSDIR}/textproc/libtextcat \ + dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib \ + xml\\+\\+-2.6:${PORTSDIR}/textproc/libxml++26 \ + boost_thread.4:${PORTSDIR}/devel/boost \ + gmime-2.0:${PORTSDIR}/mail/gmime2 \ + tag.5:${PORTSDIR}/audio/taglib \ + curl.4:${PORTSDIR}/ftp/curl +RUN_DEPENDS= update-mime-database:${PORTSDIR}/misc/shared-mime-info \ + ${SQ3THOL}:${PORTSDIR}/databases/sqlite3-threads \ + antiword:${PORTSDIR}/textproc/antiword \ + xdg-open:${PORTSDIR}/devel/xdg-utils \ + pdftotext:${PORTSDIR}/graphics/xpdf \ + unzip:${PORTSDIR}/archivers/unzip \ + unrtf:${PORTSDIR}/textproc/unrtf + +GNU_CONFIGURE= yes +CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL} +CONFIGURE_ARGS= --with-http=curl +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib" \ + MKDIR_P="mkdir -p" + +USE_GETTEXT= yes +USE_XLIB= yes +#USE_SQLITE= 3 # Replaced by sqlite3-threads +USE_PYTHON= yes +USE_LDCONFIG= ${PREFIX}/lib/pinot/filters + +.if defined(WITH_SOAP) +BUILD_DEPENDS+= ${LOCALBASE}/lib/libgsoap.a:${PORTSDIR}/devel/gsoap +CONFIGURE_ARGS+= --enable-soap=yes +.endif + +.if defined(WITH_DEBUG) +CONFIGURE_ARGS+= --enable-debug=yes +.endif + +SQ3THOL= ${LOCALBASE}/share/sqlite3/sqlite3_with_threads-override-locks + +INSTALLS_ICONS= yes + +SUB_FILES= pkg-message +PKGMESSAGE= ${WRKDIR}/pkg-message + +MAN1= pinot-dbus-daemon.1 pinot-index.1 pinot-search.1 pinot.1 + +PORTDOCS= AUTHORS ChangeLog ChangeLog-dijon INSTALL NEWS README TODO + +LM2FIX= textcat_conf.txt textcat3_conf.txt +SHR2FIX= Search/pinot-search.1 README +UL2FIX= Utils/xdgmime/xdgmime.c + +post-extract: +# remove pre-generated messages catalogs + ${FIND} ${WRKSRC}/po -name "*.gmo" -delete + +pre-configure: + ${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|' ${WRKSRC}/configure + ${REINPLACE_CMD} -e 's|/usr/share|${LOCALBASE}/share|' \ + ${LM2FIX:S|^|${WRKSRC}/|} + ${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \ + ${UL2FIX:S|^|${WRKSRC}/|} + ${REINPLACE_CMD} -e 's|/usr/share|${PREFIX}/share|' \ + ${SHR2FIX:S|^|${WRKSRC}/|} + ${REINPLACE_CMD} -e 's|Icon=pinot.png|Icon=pinot|g' \ + ${WRKSRC}/*.desktop + +post-install: + @${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py \ + ${PREFIX}/lib/deskbar-applet/handlers + @${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py \ + ${PREFIX}/lib/deskbar-applet/handlers +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR} +.endif + @${ECHO_MSG} + @${CAT} ${PKGMESSAGE} + @${ECHO_MSG} + +.include <bsd.port.mk> diff --git a/deskutils/pinot/distinfo b/deskutils/pinot/distinfo new file mode 100644 index 000000000..6adfc44bc --- /dev/null +++ b/deskutils/pinot/distinfo @@ -0,0 +1,3 @@ +MD5 (pinot-0.76.tar.gz) = 253a75dace38460cb34478f71432c99f +SHA256 (pinot-0.76.tar.gz) = 26e78d341810e9889b2296db931e32a835f8618d01408883c6cbe092f5966067 +SIZE (pinot-0.76.tar.gz) = 881357 diff --git a/deskutils/pinot/files/patch-dbusxapianindex_reload03 b/deskutils/pinot/files/patch-dbusxapianindex_reload03 new file mode 100644 index 000000000..08db723ae --- /dev/null +++ b/deskutils/pinot/files/patch-dbusxapianindex_reload03 @@ -0,0 +1,77 @@ +--- Index/DBusXapianIndex.cpp 2007-08-22 21:58:20.000000000 +0800 ++++ Index/DBusXapianIndex.cpp 2007-09-01 11:23:26.000000000 +0800 +@@ -17,15 +17,6 @@ + */ + + #include <iostream> +-extern "C" +-{ +-#if DBUS_VERSION < 1000000 +-#define DBUS_API_SUBJECT_TO_CHANGE +-#endif +-#include <dbus/dbus.h> +-#include <dbus/dbus-glib.h> +-#include <dbus/dbus-glib-lowlevel.h> +-} + + #include "Languages.h" + #include "XapianDatabaseFactory.h" +@@ -302,7 +293,7 @@ + /// Asks the D-Bus service to reload its configuration. + bool DBusXapianIndex::reload(void) + { +- bool reloading = false; ++ gboolean reloading = FALSE; + + DBusGConnection *pBus = getBusConnection(); + if (pBus == NULL) +@@ -333,7 +324,12 @@ + g_object_unref(pBusProxy); + // FIXME: don't we have to call dbus_g_connection_unref(pBus); ? + +- return reloading; ++ if (reloading == TRUE) ++ { ++ return true; ++ } ++ ++ return false; + } + + +--- Index/DBusXapianIndex.h 2007-08-22 21:54:40.000000000 +0800 ++++ Index/DBusXapianIndex.h 2007-09-01 11:23:37.000000000 +0800 +@@ -21,12 +21,15 @@ + + #include <string> + #include <set> ++#include "config.h" + extern "C" + { + #if DBUS_VERSION < 1000000 + #define DBUS_API_SUBJECT_TO_CHANGE + #endif + #include <dbus/dbus.h> ++#include <dbus/dbus-glib.h> ++#include <dbus/dbus-glib-lowlevel.h> + } + + #include "XapianIndex.h" +--- UI/GTK2/src/pinot.cc 2007-08-22 22:01:28.000000000 +0800 ++++ UI/GTK2/src/pinot.cc 2007-09-01 10:55:10.000000000 +0800 +@@ -29,6 +29,7 @@ + #include <glibmm/ustring.h> + #include <glibmm/miscutils.h> + #include <glibmm/convert.h> ++#include "config.h" + extern "C" + { + #if DBUS_VERSION < 1000000 +@@ -50,7 +51,6 @@ + #include "ViewHistory.h" + #include "DownloaderInterface.h" + #include "XapianIndex.h" +-#include "config.h" + #include "NLS.h" + #include "PinotSettings.h" + #include "mainWindow.hh" diff --git a/deskutils/pinot/files/pkg-message.in b/deskutils/pinot/files/pkg-message.in new file mode 100644 index 000000000..6baf21a23 --- /dev/null +++ b/deskutils/pinot/files/pkg-message.in @@ -0,0 +1,13 @@ +=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=- +Threading issues may cause the daemon to crash unexpectedly. +A fix is to add the following lines to /etc/libmap.conf (which may not exist): + +[%%PREFIX%%/bin/pinot] +libpthread.so.2 libc_r.so.6 +libpthread.so libc_r.so +[%%PREFIX%%/bin/pinot-dbus-daemon] +libpthread.so.2 libc_r.so.6 +libpthread.so libc_r.so + +Refer to the libmap.conf(5) man page for details. +=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=- diff --git a/deskutils/pinot/pkg-descr b/deskutils/pinot/pkg-descr new file mode 100644 index 000000000..b08e5a1f0 --- /dev/null +++ b/deskutils/pinot/pkg-descr @@ -0,0 +1,23 @@ +Pinot is a D-Bus service that crawls, indexes your documents and monitors them +for changes, with a GTK-based user interface that enables to query the index +built by the service or your favourite Web engine, and display and analyze the +results. + +Features: +- advanced queries (probabilistic search, boolean filters, date ranges). +- language detection. +- listing of indexed documents. +- editing of metadata. +- automatic results labeling. +- stored queries. +- results ranking history. +- dynamic document summaries. +- only crawl and index the directories you choose. +- D-Bus interface for easy integration with other applications, eg Deskbar + Applet. +- no dependency on GNOME or KDE. +- support for common file types. +- search your desktop and the Web. +- query remote indexes. + +WWW: http://pinot.berlios.de/ diff --git a/deskutils/pinot/pkg-plist b/deskutils/pinot/pkg-plist new file mode 100644 index 000000000..344980ebf --- /dev/null +++ b/deskutils/pinot/pkg-plist @@ -0,0 +1,73 @@ +bin/pinot +bin/pinot-dbus-daemon +bin/pinot-index +bin/pinot-search +etc/pinot/external-filters.xml +etc/pinot/globalconfig.xml +etc/pinot/textcat3_conf.txt +etc/pinot/textcat_conf.txt +etc/xdg/autostart/pinot-dbus-daemon.desktop +lib/deskbar-applet/handlers/pinot-live.py +lib/deskbar-applet/handlers/pinot-live.pyc +lib/deskbar-applet/handlers/pinot-live.pyo +lib/pinot/filters/libexternalfilter.so +lib/pinot/filters/libexternalfilter.so.0 +lib/pinot/filters/libmboxfilter.so +lib/pinot/filters/libmboxfilter.so.0 +lib/pinot/filters/libtaglibfilter.so +lib/pinot/filters/libtaglibfilter.so.0 +share/applications/pinot.desktop +share/dbus-1/services/de.berlios.Pinot.service +share/icons/hicolor/16x16/apps/pinot.png +share/icons/hicolor/22x22/apps/pinot.png +share/icons/hicolor/24x24/apps/pinot.png +share/icons/hicolor/32x32/apps/pinot.png +share/icons/hicolor/48x48/apps/pinot.png +share/locale/de/LC_MESSAGES/pinot.mo +share/locale/es/LC_MESSAGES/pinot.mo +share/locale/fr/LC_MESSAGES/pinot.mo +share/locale/it/LC_MESSAGES/pinot.mo +share/locale/nl/LC_MESSAGES/pinot.mo +share/locale/pt/LC_MESSAGES/pinot.mo +share/locale/pt_BR/LC_MESSAGES/pinot.mo +share/locale/ru/LC_MESSAGES/pinot.mo +share/locale/sv/LC_MESSAGES/pinot.mo +share/locale/zh_TW/LC_MESSAGES/pinot.mo +%%DATADIR%%/AmazonAPI.src +%%DATADIR%%/engines/A9.src +%%DATADIR%%/engines/Accoona.src +%%DATADIR%%/engines/BitTorrent.src +%%DATADIR%%/engines/Clusty.src +%%DATADIR%%/engines/CreativeCommons.src +%%DATADIR%%/engines/Exalead.src +%%DATADIR%%/engines/Freshmeat.src +%%DATADIR%%/engines/Google.src +%%DATADIR%%/engines/GoogleCodeSearch.src +%%DATADIR%%/engines/KodersDescription.xml +%%DATADIR%%/engines/MSN.src +%%DATADIR%%/engines/MozDexDescription.xml +%%DATADIR%%/engines/OmegaDescription.xml +%%DATADIR%%/engines/RollYOTopNews.src +%%DATADIR%%/engines/Topix.src +%%DATADIR%%/engines/Wikipedia.src +%%DATADIR%%/engines/WiseNut.src +%%DATADIR%%/engines/Yahoo.src +%%DATADIR%%/engines/YahooAPI.src +%%DATADIR%%/metase-gtk2.glade +%%DATADIR%%/metase-gtk2.gladep +%%DATADIR%%/pinot-dbus-daemon.xml +%%DATADIR%%/xapian-powered.png +@dirrm %%DATADIR%%/engines +@dirrm %%DATADIR%% +@dirrmtry share/icons/hicolor/48x48/apps +@dirrmtry share/icons/hicolor/48x48 +@dirrmtry share/icons/hicolor +@dirrmtry share/icons +@dirrmtry share/applications +@dirrm lib/pinot/filters +@dirrm lib/pinot +@dirrmtry lib/deskbar-applet/handlers +@dirrmtry lib/deskbar-applet +@dirrmtry etc/xdg/autostart +@dirrmtry etc/xdg +@dirrm etc/pinot |