diff options
-rw-r--r-- | deskutils/gnote/Makefile | 61 | ||||
-rw-r--r-- | deskutils/gnote/distinfo | 3 | ||||
-rw-r--r-- | deskutils/gnote/files/patch-configure | 11 | ||||
-rw-r--r-- | deskutils/gnote/files/patch-src_debug.cpp | 11 | ||||
-rw-r--r-- | deskutils/gnote/files/patch-src_sharp_datetime.cpp | 36 | ||||
-rw-r--r-- | deskutils/gnote/pkg-descr | 6 | ||||
-rw-r--r-- | deskutils/gnote/pkg-plist | 249 |
7 files changed, 377 insertions, 0 deletions
diff --git a/deskutils/gnote/Makefile b/deskutils/gnote/Makefile new file mode 100644 index 000000000..560a7ea59 --- /dev/null +++ b/deskutils/gnote/Makefile @@ -0,0 +1,61 @@ +# New ports collection makefile for: gnote +# Date created: 20 July 2009 +# Whom: Mezz <mezz@FreeBSD.org> +# +# $FreeBSD$ +# $MCom$ +# + +PORTNAME= gnote +PORTVERSION= 0.7.0 +CATEGORIES= deskutils gnome +MASTER_SITES= GNOME + +MAINTAINER= gnome@FreeBSD.org +COMMENT= A port of Tomboy to C++, note taking application + +LIB_DEPENDS= gtkmm-2.4.1:${PORTSDIR}/x11-toolkits/gtkmm24 \ + gtkspell.0:${PORTSDIR}/textproc/gtkspell \ + boost_filesystem.4:${PORTSDIR}/devel/boost-libs \ + uuid.1:${PORTSDIR}/misc/e2fsprogs-libuuid + +USE_GMAKE= yes +USE_BZIP2= yes +USE_GNOME= gnomehack gnomeprefix gconf2 intltool ltverhack gnomepanel +USE_GETTEXT= yes +INSTALLS_OMF= yes +GCONF_SCHEMAS= gnote.schemas +USE_AUTOTOOLS= libtool:22 +INSTALLS_ICONS= yes +GNU_CONFIGURE= yes +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" \ + PANELAPPLET_SERVER_DIR="${PREFIX}/libdata/bonobo/servers" +CONFIGURE_ARGS= --disable-dbus +DOCS= AUTHORS COPYING ChangeLog NEWS README TODO +MAN1= gnote.1 + +.if !defined(WITHOUT_APPLET) +LIB_DEPENDS+= panelappletmm-2.6:${PORTSDIR}/x11-toolkits/libpanelappletmm +CONFIGURE_ARGS+=--enable-applet +PLIST_SUB+= APPLET="" +.else +CONFIGURE_ARGS+=--disable-applet +PLIST_SUB+= APPLET="@comment " +.endif + +PLIST_SUB+= VERSION=${PORTVERSION} + +post-patch: + @${REINPLACE_CMD} -e 's|/usr/include/boost|${LOCALBASE}/include/boost|g' \ + ${WRKSRC}/configure + +.ifndef (NOPORTDOCS) +post-install: + @${MKDIR} ${DOCSDIR} +.for i in ${DOCS} + @${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR} +.endfor +.endif + +.include <bsd.port.mk> diff --git a/deskutils/gnote/distinfo b/deskutils/gnote/distinfo new file mode 100644 index 000000000..827875829 --- /dev/null +++ b/deskutils/gnote/distinfo @@ -0,0 +1,3 @@ +MD5 (gnote-0.7.0.tar.bz2) = 8f94505846d2464e5474f82a6a882f77 +SHA256 (gnote-0.7.0.tar.bz2) = 8824761fd23e08b934c070da9780838f9ffdf324d3ea3ab63402db4f0d8e14db +SIZE (gnote-0.7.0.tar.bz2) = 1304296 diff --git a/deskutils/gnote/files/patch-configure b/deskutils/gnote/files/patch-configure new file mode 100644 index 000000000..5587ef539 --- /dev/null +++ b/deskutils/gnote/files/patch-configure @@ -0,0 +1,11 @@ +--- configure.orig 2009-12-07 19:13:21.000000000 -0500 ++++ configure 2009-12-07 19:14:18.000000000 -0500 +@@ -17128,7 +17128,7 @@ fi + if test "x$prefix" = "x$ac_default_prefix"; then + PANELAPPLET_LIBDIR=`$PKG_CONFIG --variable=libdir libpanelapplet-2.0` + fi +- if test "x$PANELAPPLET_LIBDIR" != "x"; then ++ if test "x$PANELAPPLET_LIBDIR" != "x" -a "x$PANELAPPLET_SERVER_DIR" = "x" ; then + PANELAPPLET_SERVER_DIR="$PANELAPPLET_LIBDIR/bonobo/servers" + fi + # Set PANELAPPLET_SERVER_DIR default if it's not already set diff --git a/deskutils/gnote/files/patch-src_debug.cpp b/deskutils/gnote/files/patch-src_debug.cpp new file mode 100644 index 000000000..cb2fe3805 --- /dev/null +++ b/deskutils/gnote/files/patch-src_debug.cpp @@ -0,0 +1,11 @@ +--- src/debug.cpp.orig 2009-11-25 14:12:33.000000000 +0100 ++++ src/debug.cpp 2009-12-03 17:28:54.000000000 +0100 +@@ -126,7 +126,7 @@ + // static boost::recursive_mutex mutex; + // boost::recursive_mutex::scoped_lock lock(mutex); + char buf[128]; +- snprintf(buf, 128, "(%d) ", (int)pthread_self()); ++ snprintf(buf, 128, "(%d) ", (pthread_t)pthread_self()); + fwrite(buf, 1, strlen(buf), stderr); + fwrite(prefix, 1, strlen(prefix), stderr); + diff --git a/deskutils/gnote/files/patch-src_sharp_datetime.cpp b/deskutils/gnote/files/patch-src_sharp_datetime.cpp new file mode 100644 index 000000000..2950c4715 --- /dev/null +++ b/deskutils/gnote/files/patch-src_sharp_datetime.cpp @@ -0,0 +1,36 @@ +--- src/sharp/datetime.cpp.orig 2009-12-28 12:46:01.000000000 +0100 ++++ src/sharp/datetime.cpp 2010-01-02 22:05:18.000000000 +0100 +@@ -83,14 +83,14 @@ namespace sharp { + int DateTime::year() const + { + struct tm result; +- localtime_r(&m_date.tv_sec, &result); ++ localtime_r((const time_t *)&m_date.tv_sec, &result); + return result.tm_year + 1900; + } + + int DateTime::day_of_year() const + { + struct tm result; +- localtime_r(&m_date.tv_sec, &result); ++ localtime_r((const time_t *)&m_date.tv_sec, &result); + return result.tm_yday; + } + +@@ -109,14 +109,14 @@ namespace sharp { + std::string DateTime::to_string(const char * format) const + { + struct tm result; +- return _to_string(format, localtime_r(&m_date.tv_sec, &result)); ++ return _to_string(format, localtime_r((const time_t *)&m_date.tv_sec, &result)); + } + + + std::string DateTime::to_short_time_string() const + { + struct tm result; +- return _to_string("%R", localtime_r(&m_date.tv_sec, &result)); ++ return _to_string("%R", localtime_r((const time_t *)&m_date.tv_sec, &result)); + } + + std::string DateTime::to_iso8601() const diff --git a/deskutils/gnote/pkg-descr b/deskutils/gnote/pkg-descr new file mode 100644 index 000000000..5dd92d247 --- /dev/null +++ b/deskutils/gnote/pkg-descr @@ -0,0 +1,6 @@ +Gnote is a port of Tomboy to C++. + +It is the same note taking application, including most of the add-ins (more +are to come). Synchronization support is being worked on. + +WWW: http://live.gnome.org/Gnote diff --git a/deskutils/gnote/pkg-plist b/deskutils/gnote/pkg-plist new file mode 100644 index 000000000..44a19b259 --- /dev/null +++ b/deskutils/gnote/pkg-plist @@ -0,0 +1,249 @@ +bin/gnote +lib/gnote/addins/%%VERSION%%/backlinks.a +lib/gnote/addins/%%VERSION%%/backlinks.la +lib/gnote/addins/%%VERSION%%/backlinks.so +lib/gnote/addins/%%VERSION%%/bugzilla.a +lib/gnote/addins/%%VERSION%%/bugzilla.la +lib/gnote/addins/%%VERSION%%/bugzilla.so +lib/gnote/addins/%%VERSION%%/exporttohtml.a +lib/gnote/addins/%%VERSION%%/exporttohtml.la +lib/gnote/addins/%%VERSION%%/exporttohtml.so +lib/gnote/addins/%%VERSION%%/fixedwidth.a +lib/gnote/addins/%%VERSION%%/fixedwidth.la +lib/gnote/addins/%%VERSION%%/fixedwidth.so +lib/gnote/addins/%%VERSION%%/inserttimestamp.a +lib/gnote/addins/%%VERSION%%/inserttimestamp.la +lib/gnote/addins/%%VERSION%%/inserttimestamp.so +lib/gnote/addins/%%VERSION%%/libnoteoftheday.a +lib/gnote/addins/%%VERSION%%/libnoteoftheday.la +lib/gnote/addins/%%VERSION%%/libnoteoftheday.so +lib/gnote/addins/%%VERSION%%/printnotes.a +lib/gnote/addins/%%VERSION%%/printnotes.la +lib/gnote/addins/%%VERSION%%/printnotes.so +lib/gnote/addins/%%VERSION%%/stickynoteimport.a +lib/gnote/addins/%%VERSION%%/stickynoteimport.la +lib/gnote/addins/%%VERSION%%/stickynoteimport.so +lib/gnote/addins/%%VERSION%%/tomboyimport.a +lib/gnote/addins/%%VERSION%%/tomboyimport.la +lib/gnote/addins/%%VERSION%%/tomboyimport.so +lib/gnote/addins/%%VERSION%%/underline.a +lib/gnote/addins/%%VERSION%%/underline.la +lib/gnote/addins/%%VERSION%%/underline.so +%%APPLET%%libdata/bonobo/servers/GNOME_GnoteApplet.server +%%APPLET%%libexec/gnote-applet +share/applications/gnote.desktop +%%PORTDOCS%%%%DOCSDIR%%/AUTHORS +%%PORTDOCS%%%%DOCSDIR%%/COPYING +%%PORTDOCS%%%%DOCSDIR%%/ChangeLog +%%PORTDOCS%%%%DOCSDIR%%/NEWS +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%%%DOCSDIR%%/TODO +share/gnome/help/gnote/C/figures/add-notebook-search.png +share/gnome/help/gnote/C/figures/add-to-notebook.png +share/gnome/help/gnote/C/figures/delete-notebook.png +share/gnome/help/gnote/C/figures/gnote-main-menu.png +share/gnome/help/gnote/C/figures/gnote-new-note.png +share/gnome/help/gnote/C/figures/gnote-panel.png +share/gnome/help/gnote/C/figures/gnote-pindown.png +share/gnome/help/gnote/C/figures/gnote-pinup.png +share/gnome/help/gnote/C/figures/gnote-preferences-add-ins.png +share/gnome/help/gnote/C/figures/gnote-preferences-editing.png +share/gnome/help/gnote/C/figures/gnote-preferences-hotkeys.png +share/gnome/help/gnote/C/figures/gnote-preferences-synchronization.png +share/gnome/help/gnote/C/figures/gnote-tools.png +share/gnome/help/gnote/C/figures/move-notes-search.png +share/gnome/help/gnote/C/figures/new-notebook.png +share/gnome/help/gnote/C/figures/note-template.png +share/gnome/help/gnote/C/figures/notebook-icon.png +share/gnome/help/gnote/C/gnote.xml +share/gnome/help/gnote/C/legal.xml +share/gnome/help/gnote/de/figures/add-notebook-search.png +share/gnome/help/gnote/de/figures/add-to-notebook.png +share/gnome/help/gnote/de/figures/delete-notebook.png +share/gnome/help/gnote/de/figures/gnote-main-menu.png +share/gnome/help/gnote/de/figures/gnote-new-note.png +share/gnome/help/gnote/de/figures/gnote-panel.png +share/gnome/help/gnote/de/figures/gnote-pindown.png +share/gnome/help/gnote/de/figures/gnote-pinup.png +share/gnome/help/gnote/de/figures/gnote-preferences-add-ins.png +share/gnome/help/gnote/de/figures/gnote-preferences-editing.png +share/gnome/help/gnote/de/figures/gnote-preferences-hotkeys.png +share/gnome/help/gnote/de/figures/gnote-preferences-synchronization.png +share/gnome/help/gnote/de/figures/gnote-tools.png +share/gnome/help/gnote/de/figures/move-notes-search.png +share/gnome/help/gnote/de/figures/new-notebook.png +share/gnome/help/gnote/de/figures/note-template.png +share/gnome/help/gnote/de/figures/notebook-icon.png +share/gnome/help/gnote/de/gnote.xml +share/gnome/help/gnote/de/legal.xml +share/gnome/help/gnote/el/figures/add-notebook-search.png +share/gnome/help/gnote/el/figures/add-to-notebook.png +share/gnome/help/gnote/el/figures/delete-notebook.png +share/gnome/help/gnote/el/figures/gnote-main-menu.png +share/gnome/help/gnote/el/figures/gnote-new-note.png +share/gnome/help/gnote/el/figures/gnote-panel.png +share/gnome/help/gnote/el/figures/gnote-pindown.png +share/gnome/help/gnote/el/figures/gnote-pinup.png +share/gnome/help/gnote/el/figures/gnote-preferences-add-ins.png +share/gnome/help/gnote/el/figures/gnote-preferences-editing.png +share/gnome/help/gnote/el/figures/gnote-preferences-hotkeys.png +share/gnome/help/gnote/el/figures/gnote-preferences-synchronization.png +share/gnome/help/gnote/el/figures/gnote-tools.png +share/gnome/help/gnote/el/figures/move-notes-search.png +share/gnome/help/gnote/el/figures/new-notebook.png +share/gnome/help/gnote/el/figures/note-template.png +share/gnome/help/gnote/el/figures/notebook-icon.png +share/gnome/help/gnote/el/gnote.xml +share/gnome/help/gnote/el/legal.xml +share/gnome/help/gnote/es/figures/add-notebook-search.png +share/gnome/help/gnote/es/figures/add-to-notebook.png +share/gnome/help/gnote/es/figures/delete-notebook.png +share/gnome/help/gnote/es/figures/gnote-main-menu.png +share/gnome/help/gnote/es/figures/gnote-new-note.png +share/gnome/help/gnote/es/figures/gnote-panel.png +share/gnome/help/gnote/es/figures/gnote-pindown.png +share/gnome/help/gnote/es/figures/gnote-pinup.png +share/gnome/help/gnote/es/figures/gnote-preferences-add-ins.png +share/gnome/help/gnote/es/figures/gnote-preferences-editing.png +share/gnome/help/gnote/es/figures/gnote-preferences-hotkeys.png +share/gnome/help/gnote/es/figures/gnote-preferences-synchronization.png +share/gnome/help/gnote/es/figures/gnote-tools.png +share/gnome/help/gnote/es/figures/move-notes-search.png +share/gnome/help/gnote/es/figures/new-notebook.png +share/gnome/help/gnote/es/figures/note-template.png +share/gnome/help/gnote/es/figures/notebook-icon.png +share/gnome/help/gnote/es/gnote.xml +share/gnome/help/gnote/es/legal.xml +share/gnome/help/gnote/sv/figures/add-notebook-search.png +share/gnome/help/gnote/sv/figures/add-to-notebook.png +share/gnome/help/gnote/sv/figures/delete-notebook.png +share/gnome/help/gnote/sv/figures/gnote-main-menu.png +share/gnome/help/gnote/sv/figures/gnote-new-note.png +share/gnome/help/gnote/sv/figures/gnote-panel.png +share/gnome/help/gnote/sv/figures/gnote-pindown.png +share/gnome/help/gnote/sv/figures/gnote-pinup.png +share/gnome/help/gnote/sv/figures/gnote-preferences-add-ins.png +share/gnome/help/gnote/sv/figures/gnote-preferences-editing.png +share/gnome/help/gnote/sv/figures/gnote-preferences-hotkeys.png +share/gnome/help/gnote/sv/figures/gnote-preferences-synchronization.png +share/gnome/help/gnote/sv/figures/gnote-tools.png +share/gnome/help/gnote/sv/figures/move-notes-search.png +share/gnome/help/gnote/sv/figures/new-notebook.png +share/gnome/help/gnote/sv/figures/note-template.png +share/gnome/help/gnote/sv/figures/notebook-icon.png +share/gnome/help/gnote/sv/gnote.xml +share/gnome/help/gnote/sv/legal.xml +%%DATADIR%%/GNOME_GnoteApplet.xml +%%DATADIR%%/UIManagerLayout.xml +%%DATADIR%%/exporttohtml.xsl +%%DATADIR%%/icons/hicolor/16x16/actions/note-new.png +%%DATADIR%%/icons/hicolor/16x16/actions/notebook-new.png +%%DATADIR%%/icons/hicolor/16x16/apps/bug.png +%%DATADIR%%/icons/hicolor/16x16/places/note.png +%%DATADIR%%/icons/hicolor/16x16/places/notebook.png +%%DATADIR%%/icons/hicolor/16x16/status/pin-active.png +%%DATADIR%%/icons/hicolor/16x16/status/pin-down.png +%%DATADIR%%/icons/hicolor/16x16/status/pin-up.png +%%DATADIR%%/icons/hicolor/22x22/actions/filter-note-all.png +%%DATADIR%%/icons/hicolor/22x22/actions/filter-note-unfiled.png +%%DATADIR%%/icons/hicolor/22x22/actions/note-new.png +%%DATADIR%%/icons/hicolor/22x22/actions/notebook-new.png +%%DATADIR%%/icons/hicolor/22x22/places/note.png +%%DATADIR%%/icons/hicolor/22x22/places/notebook.png +%%DATADIR%%/icons/hicolor/24x24/actions/filter-note-all.png +%%DATADIR%%/icons/hicolor/24x24/actions/filter-note-unfiled.png +%%DATADIR%%/icons/hicolor/24x24/actions/note-new.png +%%DATADIR%%/icons/hicolor/24x24/actions/notebook-new.png +%%DATADIR%%/icons/hicolor/24x24/places/note.png +%%DATADIR%%/icons/hicolor/24x24/places/notebook.png +%%DATADIR%%/icons/hicolor/48x48/actions/notebook-new.png +%%DATADIR%%/icons/hicolor/scalable/actions/notebook-new.svg +share/icons/hicolor/16x16/apps/gnote.png +share/icons/hicolor/22x22/apps/gnote.png +share/icons/hicolor/24x24/apps/gnote.png +share/icons/hicolor/32x32/apps/gnote.png +share/icons/hicolor/48x48/apps/gnote.png +share/icons/hicolor/scalable/apps/gnote.svg +share/locale/ar/LC_MESSAGES/gnote.mo +share/locale/as/LC_MESSAGES/gnote.mo +share/locale/bg/LC_MESSAGES/gnote.mo +share/locale/bn_IN/LC_MESSAGES/gnote.mo +share/locale/ca/LC_MESSAGES/gnote.mo +share/locale/cs/LC_MESSAGES/gnote.mo +share/locale/da/LC_MESSAGES/gnote.mo +share/locale/de/LC_MESSAGES/gnote.mo +share/locale/el/LC_MESSAGES/gnote.mo +share/locale/en_GB/LC_MESSAGES/gnote.mo +share/locale/es/LC_MESSAGES/gnote.mo +share/locale/fr/LC_MESSAGES/gnote.mo +share/locale/gl/LC_MESSAGES/gnote.mo +share/locale/gu/LC_MESSAGES/gnote.mo +share/locale/he/LC_MESSAGES/gnote.mo +share/locale/hu/LC_MESSAGES/gnote.mo +share/locale/id/LC_MESSAGES/gnote.mo +share/locale/it/LC_MESSAGES/gnote.mo +share/locale/ja/LC_MESSAGES/gnote.mo +share/locale/kn/LC_MESSAGES/gnote.mo +share/locale/ko/LC_MESSAGES/gnote.mo +share/locale/lt/LC_MESSAGES/gnote.mo +share/locale/mr/LC_MESSAGES/gnote.mo +share/locale/or/LC_MESSAGES/gnote.mo +share/locale/pa/LC_MESSAGES/gnote.mo +share/locale/pl/LC_MESSAGES/gnote.mo +share/locale/pt/LC_MESSAGES/gnote.mo +share/locale/pt_BR/LC_MESSAGES/gnote.mo +share/locale/ru/LC_MESSAGES/gnote.mo +share/locale/sl/LC_MESSAGES/gnote.mo +share/locale/sv/LC_MESSAGES/gnote.mo +share/locale/ta/LC_MESSAGES/gnote.mo +share/locale/te/LC_MESSAGES/gnote.mo +share/locale/th/LC_MESSAGES/gnote.mo +share/locale/zh_CN/LC_MESSAGES/gnote.mo +share/omf/gnote/gnote-C.omf +share/omf/gnote/gnote-de.omf +share/omf/gnote/gnote-el.omf +share/omf/gnote/gnote-es.omf +share/omf/gnote/gnote-sv.omf +@dirrm share/omf/gnote +@dirrmtry share/locale/te/LC_MESSAGES +@dirrmtry share/locale/te +@dirrmtry share/locale/mr/LC_MESSAGES +@dirrmtry share/locale/mr +@dirrmtry share/locale/bn_IN/LC_MESSAGES +@dirrmtry share/locale/bn_IN +@dirrmtry share/locale/as/LC_MESSAGES +@dirrmtry share/locale/as +@dirrm %%DATADIR%%/icons/hicolor/scalable/actions +@dirrm %%DATADIR%%/icons/hicolor/scalable +@dirrm %%DATADIR%%/icons/hicolor/48x48/actions +@dirrm %%DATADIR%%/icons/hicolor/48x48 +@dirrm %%DATADIR%%/icons/hicolor/24x24/places +@dirrm %%DATADIR%%/icons/hicolor/24x24/actions +@dirrm %%DATADIR%%/icons/hicolor/24x24 +@dirrm %%DATADIR%%/icons/hicolor/22x22/places +@dirrm %%DATADIR%%/icons/hicolor/22x22/actions +@dirrm %%DATADIR%%/icons/hicolor/22x22 +@dirrm %%DATADIR%%/icons/hicolor/16x16/status +@dirrm %%DATADIR%%/icons/hicolor/16x16/places +@dirrm %%DATADIR%%/icons/hicolor/16x16/apps +@dirrm %%DATADIR%%/icons/hicolor/16x16/actions +@dirrm %%DATADIR%%/icons/hicolor/16x16 +@dirrm %%DATADIR%%/icons/hicolor +@dirrm %%DATADIR%%/icons +@dirrm %%DATADIR%% +@dirrm share/gnome/help/gnote/sv/figures +@dirrm share/gnome/help/gnote/sv +@dirrm share/gnome/help/gnote/es/figures +@dirrm share/gnome/help/gnote/es +@dirrm share/gnome/help/gnote/el/figures +@dirrm share/gnome/help/gnote/el +@dirrm share/gnome/help/gnote/de/figures +@dirrm share/gnome/help/gnote/de +@dirrm share/gnome/help/gnote/C/figures +@dirrm share/gnome/help/gnote/C +@dirrm share/gnome/help/gnote +%%PORTDOCS%%@dirrm %%DOCSDIR%% +@dirrmtry share/applications +@dirrmtry lib/gnote/addins/%%VERSION%% +@dirrmtry lib/gnote/addins +@dirrmtry lib/gnote |