1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-20 20:09:11 +00:00

- Update to 0.94

PR:		79405
Submitted by:	Radek Kozlowski (maintainer)
This commit is contained in:
Michael Johnson 2005-04-02 23:54:25 +00:00
parent a3e782767e
commit 24fa71b26b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=132298
6 changed files with 105 additions and 13 deletions

View File

@ -6,15 +6,18 @@
#
PORTNAME= gwget
PORTVERSION= 0.93
PORTREVISION= 2
PORTVERSION= 0.94
CATEGORIES= ftp www gnome
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/${PORTNAME}/${PORTVERSION}
DIST_SUBDIR= gnome2
MAINTAINER= radek@raadradd.com
COMMENT= A download manager for GNOME, based on wget
RUN_DEPENDS= wget:${PORTSDIR}/ftp/wget
USE_BZIP2= yes
USE_GMAKE= yes
USE_GNOME= gnomehack gnomeprefix intlhack libgnomeui
USE_LIBTOOL_VER=15

View File

@ -1,2 +1,2 @@
MD5 (gwget-0.93.tar.gz) = 79a3625ef99a5a417164e0d97020fcc5
SIZE (gwget-0.93.tar.gz) = 526996
MD5 (gnome2/gwget-0.94.tar.bz2) = 15a9d6120c52c20aa44934bb75738385
SIZE (gnome2/gwget-0.94.tar.bz2) = 398490

View File

@ -1,18 +1,42 @@
--- src/main.c.orig Mon Jan 24 20:50:50 2005
+++ src/main.c Mon Jan 24 20:51:46 2005
@@ -145,12 +145,13 @@
--- src/main.c.orig Sat Apr 2 22:26:21 2005
+++ src/main.c Sat Apr 2 22:52:48 2005
@@ -120,6 +120,7 @@
Args *args_original = (Args*)client_data;
int argc_original = (*args_original).argc;
char **argv_original = (*args_original).argv;
+ int i, iPos, iL, iSize;
int argc;
char **argv;
@@ -166,13 +167,12 @@
argc = argc_original + 2;
argv = g_malloc0(sizeof(char*)*argc);
- int iPos = -1;
- int i;
+ iPos = -1;
for (i=0;i<argc_original;i++)
if (strcmp(argv_original[i],"--force-tray-only") != 0) {
iPos++;
- int iL = strlen(argv_original[i]);
- int iSize = sizeof(char)*iL;
+ iL = strlen(argv_original[i]);
+ iSize = sizeof(char)*iL;
argv[iPos] = g_malloc0(iSize);
strcpy(argv[iPos],argv_original[i]);
}
@@ -191,12 +191,13 @@
static void
gnome_session_join(int argc,char *argv[])
{
- Args *args = g_malloc(sizeof(Args));
+ GnomeClient* client;
+ Args *args= g_malloc(sizeof(Args));
Args *args = g_malloc(sizeof(Args));
(*args).argc = argc;
(*args).argv = argv;
- GnomeClient* client = gnome_master_client();
+ client = gnome_master_client();
+ client = gnome_master_client();
gnome_client_set_restart_style(client,GNOME_RESTART_IF_RUNNING);
gtk_signal_connect(GTK_OBJECT(client),"save_yourself",

View File

@ -0,0 +1,63 @@
--- src/wget-log.c.orig Sat Apr 2 23:05:09 2005
+++ src/wget-log.c Sat Apr 2 23:31:55 2005
@@ -58,11 +58,13 @@
static int
wget_log_process_line (GwgetData *gwgetdata)
{
- if (gwgetdata->line == NULL)
- return 0;
-
gchar *p;
struct stat file_stat;
+ char *sName;
+ int iL;
+
+ if (gwgetdata->line == NULL)
+ return 0;
switch (gwgetdata->state) {
case DL_NOT_CONNECTED:
@@ -72,10 +74,10 @@
* filesystem filename and set gwgetdata->filename
*/
if (strstr(gwgetdata->line," => `")) {
- int iL = strlen(gwgetdata->line);
+ iL = strlen(gwgetdata->line);
gwgetdata->line[iL-1] = 0; // Chop the final '
- char *sName = gwgetdata->line;
+ sName = gwgetdata->line;
/*
* Now sName contains the whole pathname. No filename can
* contain '/' so the following search for the last component
@@ -272,11 +274,14 @@
void
wget_log_read_log_line(GwgetData *gwgetdata) {
+ char c;
+ int iRes, iBlockCount, iWritePos;
+ gchar *buffer;
+
g_free(gwgetdata->line);
gwgetdata->line = NULL;
-
- char c;
- int iRes = read(gwgetdata->log_fd,&c,1);
+
+ iRes = read(gwgetdata->log_fd,&c,1);
if (iRes < 1) {
/*
@@ -286,9 +291,9 @@
return;
}
- int iBlockCount = 1;
- gchar *buffer = g_malloc(sizeof(gchar)*(iBlockCount*BLOCK_SIZE));
- int iWritePos = 0;
+ iBlockCount = 1;
+ buffer = g_malloc(sizeof(gchar)*(iBlockCount*BLOCK_SIZE));
+ iWritePos = 0;
buffer[iWritePos++] = c;
while (c != '\n') {

View File

@ -2,4 +2,4 @@ Gwget is a download manager for GNOME which uses wget as its backend.
The most important features include pause/continue support, resuming
and recursive downloading.
WWW: http://gwget.sourceforge.net/
WWW: http://gnome.org/projects/gwget/

View File

@ -34,6 +34,7 @@ share/locale/eu/LC_MESSAGES/gwget.mo
share/locale/fi/LC_MESSAGES/gwget.mo
share/locale/fr/LC_MESSAGES/gwget.mo
share/locale/hu/LC_MESSAGES/gwget.mo
share/locale/it/LC_MESSAGES/gwget.mo
share/locale/ja/LC_MESSAGES/gwget.mo
share/locale/lt/LC_MESSAGES/gwget.mo
share/locale/mk/LC_MESSAGES/gwget.mo
@ -45,6 +46,7 @@ share/locale/pt_BR/LC_MESSAGES/gwget.mo
share/locale/ro/LC_MESSAGES/gwget.mo
share/locale/ru/LC_MESSAGES/gwget.mo
share/locale/sk/LC_MESSAGES/gwget.mo
share/locale/sq/LC_MESSAGES/gwget.mo
share/locale/sv/LC_MESSAGES/gwget.mo
share/locale/tr/LC_MESSAGES/gwget.mo
share/locale/zh_CN/LC_MESSAGES/gwget.mo