1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

Add ljit, a GUI tool to help LiveJournal users post images.

Approved by:	fjoe (mentor, implicit)
This commit is contained in:
Alexey Dokuchaev 2004-10-27 11:37:54 +00:00
parent 925bc61460
commit e1dd81efcf
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=120305
8 changed files with 122 additions and 0 deletions

View File

@ -77,6 +77,7 @@
SUBDIR += kuake
SUBDIR += ljcharm
SUBDIR += ljclive
SUBDIR += ljit
SUBDIR += logjam
SUBDIR += mcal
SUBDIR += mdh

40
deskutils/ljit/Makefile Normal file
View File

@ -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>

2
deskutils/ljit/distinfo Normal file
View File

@ -0,0 +1,2 @@
MD5 (ljit-0.2.5.tar.gz) = 6359663295d376bb4e7ceba848095418
SIZE (ljit-0.2.5.tar.gz) = 103783

View File

@ -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);
}

View File

@ -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;
}

View File

@ -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);

14
deskutils/ljit/pkg-descr Normal file
View File

@ -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/

8
deskutils/ljit/pkg-plist Normal file
View File

@ -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%%