diff options
author | Alexey Dokuchaev <danfe@FreeBSD.org> | 2004-10-27 11:37:54 +0000 |
---|---|---|
committer | Alexey Dokuchaev <danfe@FreeBSD.org> | 2004-10-27 11:37:54 +0000 |
commit | e1dd81efcf3ec1114d9e86fac0e747d00b4fb6af (patch) | |
tree | 4dc39b2b0e0390ae5e65983a56f17891c147b62d /deskutils | |
parent | 925bc61460b2b11bc78fa732bb7f36edcd8c2f5f (diff) | |
download | ports-e1dd81efcf3ec1114d9e86fac0e747d00b4fb6af.tar.gz ports-e1dd81efcf3ec1114d9e86fac0e747d00b4fb6af.zip |
Notes
Diffstat (limited to 'deskutils')
-rw-r--r-- | deskutils/Makefile | 1 | ||||
-rw-r--r-- | deskutils/ljit/Makefile | 40 | ||||
-rw-r--r-- | deskutils/ljit/distinfo | 2 | ||||
-rw-r--r-- | deskutils/ljit/files/patch-src+callbacks.c | 10 | ||||
-rw-r--r-- | deskutils/ljit/files/patch-src+config_dialog.c | 31 | ||||
-rw-r--r-- | deskutils/ljit/files/patch-src+interface.c | 16 | ||||
-rw-r--r-- | deskutils/ljit/pkg-descr | 14 | ||||
-rw-r--r-- | deskutils/ljit/pkg-plist | 8 |
8 files changed, 122 insertions, 0 deletions
diff --git a/deskutils/Makefile b/deskutils/Makefile index 1abf31c35bf6..db7923ce9c73 100644 --- a/deskutils/Makefile +++ b/deskutils/Makefile @@ -77,6 +77,7 @@ SUBDIR += kuake SUBDIR += ljcharm SUBDIR += ljclive + SUBDIR += ljit SUBDIR += logjam SUBDIR += mcal SUBDIR += mdh diff --git a/deskutils/ljit/Makefile b/deskutils/ljit/Makefile new file mode 100644 index 000000000000..dca68aca5558 --- /dev/null +++ b/deskutils/ljit/Makefile @@ -0,0 +1,40 @@ +# New ports collection makefile for: ljit +# Date created: 09 Sep 2004 +# Whom: Alexey Dokuchaev <danfe@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= ljit +PORTVERSION= 0.2.5 +CATEGORIES= deskutils +MASTER_SITES= http://kir.vtx.ru/ljit/dl/ \ + http://freebsd.nsu.ru/distfiles/ + +MAINTAINER= danfe@FreeBSD.org +COMMENT= GUI tool to help LiveJournal users post images + +LIB_DEPENDS= curl.3:${PORTSDIR}/ftp/curl +#RUN_DEPENDS= convert:${PORTSDIR}/graphics/ImageMagick + +GNU_CONFIGURE= yes +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib" +USE_GETTEXT= yes +USE_GNOME= gtk20 +USE_REINPLACE= yes + +post-extract: + @${REINPLACE_CMD} -e 's, -DMTRACE$$,,' -e 's,prefix)/$$(DATADIRNAME,datadir,' \ + ${WRKSRC}/src/Makefile.in + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} ${PREFIX}/bin + ${INSTALL_DATA} ${WRKSRC}/po/ru_RU.mo ${PREFIX}/share/locale/ru/LC_MESSAGES/${PORTNAME}.mo +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} +. for f in BUGS NEWS README THANKS TODO + ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR} +. endfor +.endif + +.include <bsd.port.mk> diff --git a/deskutils/ljit/distinfo b/deskutils/ljit/distinfo new file mode 100644 index 000000000000..e0457d09aa1b --- /dev/null +++ b/deskutils/ljit/distinfo @@ -0,0 +1,2 @@ +MD5 (ljit-0.2.5.tar.gz) = 6359663295d376bb4e7ceba848095418 +SIZE (ljit-0.2.5.tar.gz) = 103783 diff --git a/deskutils/ljit/files/patch-src+callbacks.c b/deskutils/ljit/files/patch-src+callbacks.c new file mode 100644 index 000000000000..72768ccce67e --- /dev/null +++ b/deskutils/ljit/files/patch-src+callbacks.c @@ -0,0 +1,10 @@ +--- src/callbacks.c.orig Fri Sep 10 17:12:58 2004 ++++ src/callbacks.c Fri Sep 10 17:13:39 2004 +@@ -98,6 +98,7 @@ + g_string_free(html, TRUE); + + gtk_main_quit(); ++ gtk_widget_destroy((GtkWidget *) user_data); + } + + diff --git a/deskutils/ljit/files/patch-src+config_dialog.c b/deskutils/ljit/files/patch-src+config_dialog.c new file mode 100644 index 000000000000..e38478d0e7ca --- /dev/null +++ b/deskutils/ljit/files/patch-src+config_dialog.c @@ -0,0 +1,31 @@ +--- src/config_dialog.c.orig Fri Sep 10 17:12:58 2004 ++++ src/config_dialog.c Fri Sep 10 17:16:13 2004 +@@ -149,6 +149,7 @@ + write_config(config); + d->saved = 1; + gtk_main_quit(); ++ gtk_widget_destroy(d->window); + } + + void upload_proto_callback (GtkOptionMenu * menu, gpointer user_data) +@@ -732,7 +733,11 @@ + + g_signal_connect ((gpointer) cancel, "clicked", + G_CALLBACK (gtk_main_quit), NULL); +- ++ ++ g_signal_connect_swapped ((gpointer) cancel, "clicked", ++ G_CALLBACK (gtk_widget_destroy), ++ (gpointer) (s->window)); ++ + g_signal_connect ((gpointer) save, "clicked", + G_CALLBACK (on_config_save_clicked), + (gpointer) s); +@@ -757,7 +762,6 @@ + cd.saved = FALSE; + + gtk_main(); +- gtk_widget_destroy (GTK_WIDGET (opt)); + return cd.saved; + } + diff --git a/deskutils/ljit/files/patch-src+interface.c b/deskutils/ljit/files/patch-src+interface.c new file mode 100644 index 000000000000..110c6c103a81 --- /dev/null +++ b/deskutils/ljit/files/patch-src+interface.c @@ -0,0 +1,16 @@ +--- src/interface.c.orig Fri Sep 10 17:12:58 2004 ++++ src/interface.c Fri Sep 10 17:17:45 2004 +@@ -215,8 +215,12 @@ + G_CALLBACK (on_button_config_clicked), NULL); + g_signal_connect ((gpointer) button1, "clicked", + G_CALLBACK (gtk_main_quit), NULL); ++ g_signal_connect_swapped ((gpointer) button1, "clicked", ++ G_CALLBACK (gtk_widget_destroy), ++ (gpointer) win->window); + g_signal_connect ((gpointer) win->button_ok, "clicked", +- G_CALLBACK (on_button_ok_clicked), NULL); ++ G_CALLBACK (on_button_ok_clicked), ++ (gpointer) win->window); + g_signal_connect ((gpointer) is->slider, "value_changed", + G_CALLBACK (tscale_callback), (gpointer) ts); + diff --git a/deskutils/ljit/pkg-descr b/deskutils/ljit/pkg-descr new file mode 100644 index 000000000000..65e98a76ddef --- /dev/null +++ b/deskutils/ljit/pkg-descr @@ -0,0 +1,14 @@ +This is a simple GUI-based tool to help LJ user post images to his/her +LiveJournal. It merely uploads images to specified location and generates +HTML code to be inserted to LiveJournal entry. It can be used with +LiveJournal client (such as LogJam), or separately. + +Features include: + + - GTK2 interface + - ability to upload images via ftp or scp + - resizing image before uploading + - creating image thumbnail and a link to big-sized image + - instant image preview while resizing + +WWW: http://kir.vtx.ru/ljit/ diff --git a/deskutils/ljit/pkg-plist b/deskutils/ljit/pkg-plist new file mode 100644 index 000000000000..e22400dcb878 --- /dev/null +++ b/deskutils/ljit/pkg-plist @@ -0,0 +1,8 @@ +bin/ljit +share/locale/ru/LC_MESSAGES/ljit.mo +%%PORTDOCS%%%%DOCSDIR%%/BUGS +%%PORTDOCS%%%%DOCSDIR%%/NEWS +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%%%DOCSDIR%%/THANKS +%%PORTDOCS%%%%DOCSDIR%%/TODO +%%PORTDOCS%%@dirrm %%DOCSDIR%% |