diff options
-rw-r--r-- | deskutils/drivel/Makefile | 60 | ||||
-rw-r--r-- | deskutils/drivel/distinfo | 3 | ||||
-rw-r--r-- | deskutils/drivel/files/patch-show-options | 64 | ||||
-rw-r--r-- | deskutils/drivel/files/patch-src-blog_lj | 47 | ||||
-rw-r--r-- | deskutils/drivel/files/patch-src-main | 11 | ||||
-rw-r--r-- | deskutils/drivel/pkg-descr | 15 | ||||
-rw-r--r-- | deskutils/drivel/pkg-plist | 74 |
7 files changed, 274 insertions, 0 deletions
diff --git a/deskutils/drivel/Makefile b/deskutils/drivel/Makefile new file mode 100644 index 000000000..8a8a69ee2 --- /dev/null +++ b/deskutils/drivel/Makefile @@ -0,0 +1,60 @@ +# New ports collection makefile for: drivel +# Date created: Thu Feb 26 23:13:12 CET 2004 +# Whom: Koop Mast <kwm@rainbow-runner.nl> +# +# $FreeBSD$ +# + +PORTNAME= drivel +PORTVERSION= 2.0.2 +PORTREVISION= 2 +CATEGORIES= deskutils gnome +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= ${PORTNAME} + +MAINTAINER= jbq@caraldi.com +COMMENT= Blog editor for GNOME + +LIB_DEPENDS= curl.3:${PORTSDIR}/ftp/curl + +INSTALLS_ICONS= yes +USE_X_PREFIX= yes +USE_BZIP2= yes +USE_GNOME= gnomeprefix gnomehack libgnomeui intlhack gtksourceview +USE_BZIP2= yes +USE_GMAKE= yes +INSTALLS_OMF= yes +USE_AUTOTOOLS= libtool:15 +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" + +GCONF_SCHEMAS= drivel.schemas + +.ifndef(WITHOUT_RHYTHMBOX) +CONFIGURE_ARGS+= --with-rhythmbox +BUILD_DEPENDS+= rhythmbox:${PORTSDIR}/audio/rhythmbox +RUN_DEPENDS+= ${BUILD_DEPENDS} +.else +CONFIGURE_ARGS+= --without-rhythmbox +.endif + +.ifndef(WITHOUT_GTKSPELL) +LIB_DEPENDS+= gtkspell.0:${PORTSDIR}/textproc/gtkspell +.else +CONFIGURE_ARGS+= --without-gtkspell +.endif + +pre-everything:: + @${ECHO_MSG} "" + @${ECHO_MSG} "Define WITHOUT_RHYTHMBOX=yes to disable rhythmbox backend" + @${ECHO_MSG} "Define WITHOUT_GTKSPELL=yes to disable gtkspell" + @${ECHO_MSG} "" + +post-patch: + @${REINPLACE_CMD} -e 's|datadir)/icons/gnome|prefix)/share/icons/gnome|g' \ + ${WRKSRC}/pixmaps/Makefile.in + @${REINPLACE_CMD} -e 's|;;|;|g' \ + ${WRKSRC}/src/journal.c \ + ${WRKSRC}/src/msg_queue.c + +.include <bsd.port.mk> diff --git a/deskutils/drivel/distinfo b/deskutils/drivel/distinfo new file mode 100644 index 000000000..001d00797 --- /dev/null +++ b/deskutils/drivel/distinfo @@ -0,0 +1,3 @@ +MD5 (drivel-2.0.2.tar.bz2) = b77d376946ab32f0f8992c5e0baf1f51 +SHA256 (drivel-2.0.2.tar.bz2) = cdf058e843cde20f48d11c4e0d6be61f9892392a8dcc049b6904a861e1f20baf +SIZE (drivel-2.0.2.tar.bz2) = 684729 diff --git a/deskutils/drivel/files/patch-show-options b/deskutils/drivel/files/patch-show-options new file mode 100644 index 000000000..9b69c1a81 --- /dev/null +++ b/deskutils/drivel/files/patch-show-options @@ -0,0 +1,64 @@ +--- src/journal.c.orig 25 Jun 2005 16:19:28 -0000 1.127 ++++ src/journal.c 8 Mar 2006 13:18:06 -0000 +@@ -1401,6 +1401,16 @@ + return; + } + ++static void ++journal_set_expander(DrivelClient *dc, gboolean state) ++{ ++ gtk_expander_set_expanded (GTK_EXPANDER (dc->journal_expander), state); ++ if (state) ++ gtk_label_set_text_with_mnemonic(GTK_LABEL(dc->journal_more_options), _("Hide _options")); ++ else ++ gtk_label_set_text_with_mnemonic(GTK_LABEL(dc->journal_more_options), _("Show more _options")); ++} ++ + /* display the default items for a blank journal entry and set the sensitivity + of the widgets appropriately */ + +@@ -1482,7 +1492,7 @@ + + /* set the expander state */ + state = gconf_client_get_bool (dc->client, dc->gconf->expander_open, NULL); +- gtk_expander_set_expanded (GTK_EXPANDER (dc->journal_expander), state); ++ journal_set_expander (dc,state); + gtk_toggle_action_set_active (GTK_TOGGLE_ACTION (dc->menu_view_options), state); + + /* enable/disable highlighting */ +@@ -1753,7 +1763,7 @@ + value = gconf_entry_get_value (entry); + state = gconf_value_get_bool (value); + +- gtk_expander_set_expanded (GTK_EXPANDER (dc->journal_expander), state); ++ journal_set_expander (dc,state); + gtk_toggle_action_set_active (GTK_TOGGLE_ACTION (dc->menu_view_options), state); + + return; +@@ -3399,7 +3409,7 @@ + { "Strike", GTK_STOCK_STRIKETHROUGH, NULL, NULL, NULL, G_CALLBACK (strikethrough_cb) }, + { "Super", NULL, N_("Supe_rscript"), NULL, NULL, G_CALLBACK (superscript_cb) }, + { "Sub", NULL, N_("Subs_cript"), NULL, NULL, G_CALLBACK (subscript_cb) }, +- { "List", NULL, N_("L_ist"), NULL, NULL, G_CALLBACK (list_cb) }, ++ { "List", NULL, N_("Lis_t"), NULL, NULL, G_CALLBACK (list_cb) }, + { "ListItem", NULL, N_("List Ite_m"), NULL, NULL, G_CALLBACK (listitem_cb) }, + { "Indent", NULL, N_("I_ndent"), NULL, NULL, G_CALLBACK (blockquote_cb) }, + { "InsertLink", "drivel-insert-link", N_("Insert _Link..."), NULL, N_("Create a link to a web page, livejournal user, or a long journal entry"), G_CALLBACK (insert_link_cb) }, +@@ -3675,6 +3685,7 @@ + + /* options expander */ + dc->journal_expander = glade_xml_get_widget (xml, "more_options"); ++ dc->journal_more_options = glade_xml_get_widget (xml, "more_options_label"); + + /* buttons */ + help_button = glade_xml_get_widget (xml, "help_button"); +--- src/drivel.h.orig 30 Aug 2005 17:46:18 -0000 1.56 ++++ src/drivel.h 8 Mar 2006 13:18:06 -0000 +@@ -215,6 +215,7 @@ + GtkWidget *journal_text; + GtkWidget *journal_security; + GtkWidget *journal_expander; ++ GtkWidget *journal_more_options; + GtkWidget *journal_picture; + GtkWidget *journal_comment; + GtkWidget *journal_autoformat; diff --git a/deskutils/drivel/files/patch-src-blog_lj b/deskutils/drivel/files/patch-src-blog_lj new file mode 100644 index 000000000..9c4382e1f --- /dev/null +++ b/deskutils/drivel/files/patch-src-blog_lj @@ -0,0 +1,47 @@ +--- src/blog_lj.c.orig 25 Jun 2005 16:19:28 -0000 1.27 ++++ src/blog_lj.c 28 Feb 2006 16:41:41 -0000 +@@ -826,6 +826,11 @@ + + for (j = 0; j < prop_count; j++) + { ++ g_snprintf (key, 32, "prop_%d_itemid", j + 1); ++ mesg = drivel_request_value_lookup (dr, key); ++ if (strcmp(mesg,itemid[i])!=0) ++ continue; ++ + g_snprintf (key, 32, "prop_%d_name", j + 1); + mesg = drivel_request_value_lookup (dr, key); + +@@ -869,28 +874,28 @@ + { + prop = journal_prop_new (); + prop->name = g_strdup ("music"); +- prop->value = g_strdup (picture[i]); ++ prop->value = g_strdup (music[i]); + g_array_append_val (entry->properties, prop); + } + if (mood[i]) + { + prop = journal_prop_new (); + prop->name = g_strdup ("mood"); +- prop->value = g_strdup (picture[i]); ++ prop->value = g_strdup (mood[i]); + g_array_append_val (entry->properties, prop); + } + if (comments[i]) + { + prop = journal_prop_new (); + prop->name = g_strdup ("comments"); +- prop->value = g_strdup (picture[i]); ++ prop->value = g_strdup (comments[i]); + g_array_append_val (entry->properties, prop); + } + if (autoformat[i]) + { + prop = journal_prop_new (); + prop->name = g_strdup ("autoformat"); +- prop->value = g_strdup (picture[i]); ++ prop->value = g_strdup (autoformat[i]); + g_array_append_val (entry->properties, prop); + } + prop = journal_prop_new (); diff --git a/deskutils/drivel/files/patch-src-main b/deskutils/drivel/files/patch-src-main new file mode 100644 index 000000000..b35c7251e --- /dev/null +++ b/deskutils/drivel/files/patch-src-main @@ -0,0 +1,11 @@ +--- src/main.c.orig 30 Aug 2005 17:46:19 -0000 1.60 ++++ src/main.c 6 Mar 2006 17:05:44 -0000 +@@ -253,7 +253,7 @@ + { + c = g_utf8_get_char_validated (p, -1); + +- if (!g_unichar_isalnum (c) && c != '_' && c!= '-') ++ if (!g_unichar_isalnum (c) && c != '_' && c!= '-' && c!='@' && c!='.') + { + retval = FALSE; + break; diff --git a/deskutils/drivel/pkg-descr b/deskutils/drivel/pkg-descr new file mode 100644 index 000000000..b2d3713f5 --- /dev/null +++ b/deskutils/drivel/pkg-descr @@ -0,0 +1,15 @@ +Drivel is a GNOME client for working with online journals, also known as +weblogs or simply blogs. It retains a simple and elegant design while providing +many powerful features, including: + + * Support for LiveJournal, Blogger, MovableType, Advogato, and Atom + journals (systems based off these are also supported, including WordPress + and Drupal) + * The ability to post, edit, delete, and view recent entries + * Integrated spellchecking and HTML syntax highlighting + * Offline composition and editing + * Automatic recovery in the event of a crash + * Journal system extensions, including LiveJournal security groups and + MovableType categories + +WWW: http://www.dropline.net/drivel/ diff --git a/deskutils/drivel/pkg-plist b/deskutils/drivel/pkg-plist new file mode 100644 index 000000000..ab34355ba --- /dev/null +++ b/deskutils/drivel/pkg-plist @@ -0,0 +1,74 @@ +bin/drivel +share/gnome/application-registry/drivel.applications +share/gnome/applications/gnome-drivel.desktop +share/gnome/drivel/glade/drivel.glade +share/gnome/drivel/languages/livejournal.lang +share/gnome/help/drivel/C/drivel.xml +share/gnome/help/drivel/C/legal.xml +share/gnome/mime-info/drivel.keys +share/gnome/mime-info/drivel.mime +share/gnome/omf/drivel/drivel-C.omf +share/gnome/pixmaps/drivel-48.png +share/gnome/pixmaps/drivel/advogato.png +share/gnome/pixmaps/drivel/atom.png +share/gnome/pixmaps/drivel/blogger.png +share/gnome/pixmaps/drivel/checkbutton.xpm +share/gnome/pixmaps/drivel/combobox.xpm +share/gnome/pixmaps/drivel/community.png +share/gnome/pixmaps/drivel/doublearrow.png +share/gnome/pixmaps/drivel/drivel_splash.png +share/gnome/pixmaps/drivel/drivel-24.png +share/gnome/pixmaps/drivel/entry.xpm +share/gnome/pixmaps/drivel/feed.png +share/gnome/pixmaps/drivel/hscale.xpm +share/gnome/pixmaps/drivel/insert_image.png +share/gnome/pixmaps/drivel/insert_object.png +share/gnome/pixmaps/drivel/leftarrow.png +share/gnome/pixmaps/drivel/livejournal.png +share/gnome/pixmaps/drivel/mt.png +share/gnome/pixmaps/drivel/private.png +share/gnome/pixmaps/drivel/protected.png +share/gnome/pixmaps/drivel/public.png +share/gnome/pixmaps/drivel/radiobutton.xpm +share/gnome/pixmaps/drivel/rightarrow.png +share/gnome/pixmaps/drivel/user.png +share/gnome/pixmaps/drivel/tray_livejournal.png +share/gnome/pixmaps/drivel/xmms.xpm +share/icons/gnome/48x48/mimetypes/gnome-mime-application-x-drivel.png +share/locale/bg/LC_MESSAGES/drivel.mo +share/locale/cs/LC_MESSAGES/drivel.mo +share/locale/de/LC_MESSAGES/drivel.mo +share/locale/el/LC_MESSAGES/drivel.mo +share/locale/en_CA/LC_MESSAGES/drivel.mo +share/locale/en_GB/LC_MESSAGES/drivel.mo +share/locale/es/LC_MESSAGES/drivel.mo +share/locale/ja/LC_MESSAGES/drivel.mo +share/locale/nb/LC_MESSAGES/drivel.mo +share/locale/nl/LC_MESSAGES/drivel.mo +share/locale/no/LC_MESSAGES/drivel.mo +share/locale/pa/LC_MESSAGES/drivel.mo +share/locale/pl/LC_MESSAGES/drivel.mo +share/locale/pt/LC_MESSAGES/drivel.mo +share/locale/pt_BR/LC_MESSAGES/drivel.mo +share/locale/rw/LC_MESSAGES/drivel.mo +share/locale/sq/LC_MESSAGES/drivel.mo +share/locale/sr/LC_MESSAGES/drivel.mo +share/locale/sr@Latn/LC_MESSAGES/drivel.mo +share/locale/sv/LC_MESSAGES/drivel.mo +share/locale/zh_CN/LC_MESSAGES/drivel.mo +share/locale/zh_TW/LC_MESSAGES/drivel.mo +share/mime/application/x-drivel.xml +share/mime/packages/drivel.xml +@unexec /bin/rmdir %D/share/locale/rw/LC_MESSAGES 2>/dev/null || /usr/bin/true +@unexec /bin/rmdir %D/share/locale/rw 2>/dev/null || /usr/bin/true +@dirrmtry share/icons/gnome/48x48/mimetypes +@dirrmtry share/icons/gnome/48x48 +@dirrm share/gnome/pixmaps/drivel +@dirrm share/gnome/omf/drivel +@dirrm share/gnome/help/drivel/C +@dirrm share/gnome/help/drivel +@dirrm share/gnome/drivel/languages +@dirrm share/gnome/drivel/glade +@dirrm share/gnome/drivel +@exec %%LOCALBASE%%/bin/update-mime-database %D/share/mime +@unexec %%LOCALBASE%%/bin/update-mime-database %D/share/mime |