diff options
author | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2004-03-09 03:51:22 +0800 |
---|---|---|
committer | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2004-03-09 03:51:22 +0800 |
commit | 561325f803906a35863b38d5f988c67b3ee773f8 (patch) | |
tree | c16c0a9d04615c9a0d0d7aa1e37cf10388a8fe01 | |
parent | f81b3cf4ae97136fed5310b8d8aba397dd92b2c3 (diff) | |
download | marcuscom-ports-561325f803906a35863b38d5f988c67b3ee773f8.tar marcuscom-ports-561325f803906a35863b38d5f988c67b3ee773f8.tar.gz marcuscom-ports-561325f803906a35863b38d5f988c67b3ee773f8.tar.bz2 marcuscom-ports-561325f803906a35863b38d5f988c67b3ee773f8.tar.lz marcuscom-ports-561325f803906a35863b38d5f988c67b3ee773f8.tar.xz marcuscom-ports-561325f803906a35863b38d5f988c67b3ee773f8.tar.zst marcuscom-ports-561325f803906a35863b38d5f988c67b3ee773f8.zip |
Update to 2.5.6.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@1975 df743ca5-7f9a-e211-a948-0013205c9059
-rw-r--r-- | archivers/file-roller/Makefile | 2 | ||||
-rw-r--r-- | archivers/file-roller/distinfo | 4 | ||||
-rw-r--r-- | archivers/file-roller/files/patch-src_fr-command-tar.c | 44 | ||||
-rw-r--r-- | archivers/file-roller/pkg-plist | 1 | ||||
-rw-r--r-- | archivers/fileroller/Makefile | 2 | ||||
-rw-r--r-- | archivers/fileroller/distinfo | 4 | ||||
-rw-r--r-- | archivers/fileroller/files/patch-src_fr-command-tar.c | 44 | ||||
-rw-r--r-- | archivers/fileroller/pkg-plist | 1 |
8 files changed, 64 insertions, 38 deletions
diff --git a/archivers/file-roller/Makefile b/archivers/file-roller/Makefile index ca2c41086..b1975b976 100644 --- a/archivers/file-roller/Makefile +++ b/archivers/file-roller/Makefile @@ -6,7 +6,7 @@ # PORTNAME= fileroller -PORTVERSION= 2.5.5 +PORTVERSION= 2.5.6 PORTEPOCH= 1 CATEGORIES= archivers gnome MASTER_SITES= ${MASTER_SITE_GNOME} diff --git a/archivers/file-roller/distinfo b/archivers/file-roller/distinfo index a39671c70..1005afde6 100644 --- a/archivers/file-roller/distinfo +++ b/archivers/file-roller/distinfo @@ -1,2 +1,2 @@ -MD5 (gnome2/file-roller-2.5.5.tar.bz2) = cb978dea329bd7405a0928eb6dbc2432 -SIZE (gnome2/file-roller-2.5.5.tar.bz2) = 998288 +MD5 (gnome2/file-roller-2.5.6.tar.bz2) = 23cb29b32aedbc6ca0024f4706f766dc +SIZE (gnome2/file-roller-2.5.6.tar.bz2) = 1006550 diff --git a/archivers/file-roller/files/patch-src_fr-command-tar.c b/archivers/file-roller/files/patch-src_fr-command-tar.c index 08e5c765f..f6ff0af15 100644 --- a/archivers/file-roller/files/patch-src_fr-command-tar.c +++ b/archivers/file-roller/files/patch-src_fr-command-tar.c @@ -1,35 +1,47 @@ ---- src/fr-command-tar.c.orig Tue Feb 24 04:00:01 2004 -+++ src/fr-command-tar.c Wed Feb 25 18:20:33 2004 -@@ -83,6 +83,11 @@ - return mktime (&tm); +--- src/fr-command-tar.c.orig Mon Mar 8 04:20:07 2004 ++++ src/fr-command-tar.c Mon Mar 8 14:50:03 2004 +@@ -196,6 +196,11 @@ + return g_strndup (f_start + 1, f_end - f_start); } +static char *months[] = { -+ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", -+ "Nov", "Dec" ++ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", ++ "Nov", "Dec" +}; + static void process_line (char *line, -@@ -92,19 +97,34 @@ +@@ -204,28 +209,36 @@ + FileData *fdata; FRCommand *comm = FR_COMMAND (data); char **fields; - const char *name_field; +- int date_idx; +- char *field_date, *field_time, *field_size, *field_name; + int i; + struct tm tm = {0, }; + char **time_fields; ++ char *field_name; g_return_if_fail (line != NULL); fdata = file_data_new (); -- fields = split_line (line, 5); +- date_idx = get_index_from_pattern (line, "%n%n%n%n-%n%n-%n%n %n%n:%n%n:%n%n"); + fields = split_line (line, 7); - fdata->size = atol (fields[2]); -- fdata->modified = mktime_from_string (fields[3], fields[4]); + +- field_size = get_prev_field (line, date_idx, 1); +- fdata->size = atol (field_size); +- g_free (field_size); +- +- field_date = get_next_field (line, date_idx, 1); +- field_time = get_next_field (line, date_idx, 2); +- fdata->modified = mktime_from_string (field_date, field_time); +- g_free (field_date); +- g_free (field_time); ++ fdata->size = atol (fields[2]); + for (i = 0; i < 12; i++) { -+ if (!strncmp(fields[3], months[i], 3)) break; ++ if (!strncmp(fields[3], months[i], 3)) break; + } + tm.tm_mon = i; + tm.tm_year = atoi (fields[6]) - 1900; @@ -40,13 +52,13 @@ + tm.tm_sec = 0; + tm.tm_isdst = -1; + fdata->modified = mktime(&tm); - g_strfreev (fields); ++ g_strfreev (fields); + g_strfreev (time_fields); /* Full path */ -- name_field = get_last_field (line, 6); -+ name_field = get_last_field (line, 8); - fields = g_strsplit (name_field, " -> ", 2); +- field_name = get_next_field (line, date_idx, 3); ++ field_name = get_last_field (line, 8); + fields = g_strsplit (field_name, " -> ", 2); if (fields[1] == NULL) { diff --git a/archivers/file-roller/pkg-plist b/archivers/file-roller/pkg-plist index 3f71ae127..45382aa21 100644 --- a/archivers/file-roller/pkg-plist +++ b/archivers/file-roller/pkg-plist @@ -100,6 +100,7 @@ share/locale/sl/LC_MESSAGES/file-roller.mo share/locale/sq/LC_MESSAGES/file-roller.mo share/locale/sr/LC_MESSAGES/file-roller.mo share/locale/sr@Latn/LC_MESSAGES/file-roller.mo +share/locale/sr@ije/LC_MESSAGES/file-roller.mo share/locale/sv/LC_MESSAGES/file-roller.mo share/locale/ta/LC_MESSAGES/file-roller.mo share/locale/th/LC_MESSAGES/file-roller.mo diff --git a/archivers/fileroller/Makefile b/archivers/fileroller/Makefile index ca2c41086..b1975b976 100644 --- a/archivers/fileroller/Makefile +++ b/archivers/fileroller/Makefile @@ -6,7 +6,7 @@ # PORTNAME= fileroller -PORTVERSION= 2.5.5 +PORTVERSION= 2.5.6 PORTEPOCH= 1 CATEGORIES= archivers gnome MASTER_SITES= ${MASTER_SITE_GNOME} diff --git a/archivers/fileroller/distinfo b/archivers/fileroller/distinfo index a39671c70..1005afde6 100644 --- a/archivers/fileroller/distinfo +++ b/archivers/fileroller/distinfo @@ -1,2 +1,2 @@ -MD5 (gnome2/file-roller-2.5.5.tar.bz2) = cb978dea329bd7405a0928eb6dbc2432 -SIZE (gnome2/file-roller-2.5.5.tar.bz2) = 998288 +MD5 (gnome2/file-roller-2.5.6.tar.bz2) = 23cb29b32aedbc6ca0024f4706f766dc +SIZE (gnome2/file-roller-2.5.6.tar.bz2) = 1006550 diff --git a/archivers/fileroller/files/patch-src_fr-command-tar.c b/archivers/fileroller/files/patch-src_fr-command-tar.c index 08e5c765f..f6ff0af15 100644 --- a/archivers/fileroller/files/patch-src_fr-command-tar.c +++ b/archivers/fileroller/files/patch-src_fr-command-tar.c @@ -1,35 +1,47 @@ ---- src/fr-command-tar.c.orig Tue Feb 24 04:00:01 2004 -+++ src/fr-command-tar.c Wed Feb 25 18:20:33 2004 -@@ -83,6 +83,11 @@ - return mktime (&tm); +--- src/fr-command-tar.c.orig Mon Mar 8 04:20:07 2004 ++++ src/fr-command-tar.c Mon Mar 8 14:50:03 2004 +@@ -196,6 +196,11 @@ + return g_strndup (f_start + 1, f_end - f_start); } +static char *months[] = { -+ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", -+ "Nov", "Dec" ++ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", ++ "Nov", "Dec" +}; + static void process_line (char *line, -@@ -92,19 +97,34 @@ +@@ -204,28 +209,36 @@ + FileData *fdata; FRCommand *comm = FR_COMMAND (data); char **fields; - const char *name_field; +- int date_idx; +- char *field_date, *field_time, *field_size, *field_name; + int i; + struct tm tm = {0, }; + char **time_fields; ++ char *field_name; g_return_if_fail (line != NULL); fdata = file_data_new (); -- fields = split_line (line, 5); +- date_idx = get_index_from_pattern (line, "%n%n%n%n-%n%n-%n%n %n%n:%n%n:%n%n"); + fields = split_line (line, 7); - fdata->size = atol (fields[2]); -- fdata->modified = mktime_from_string (fields[3], fields[4]); + +- field_size = get_prev_field (line, date_idx, 1); +- fdata->size = atol (field_size); +- g_free (field_size); +- +- field_date = get_next_field (line, date_idx, 1); +- field_time = get_next_field (line, date_idx, 2); +- fdata->modified = mktime_from_string (field_date, field_time); +- g_free (field_date); +- g_free (field_time); ++ fdata->size = atol (fields[2]); + for (i = 0; i < 12; i++) { -+ if (!strncmp(fields[3], months[i], 3)) break; ++ if (!strncmp(fields[3], months[i], 3)) break; + } + tm.tm_mon = i; + tm.tm_year = atoi (fields[6]) - 1900; @@ -40,13 +52,13 @@ + tm.tm_sec = 0; + tm.tm_isdst = -1; + fdata->modified = mktime(&tm); - g_strfreev (fields); ++ g_strfreev (fields); + g_strfreev (time_fields); /* Full path */ -- name_field = get_last_field (line, 6); -+ name_field = get_last_field (line, 8); - fields = g_strsplit (name_field, " -> ", 2); +- field_name = get_next_field (line, date_idx, 3); ++ field_name = get_last_field (line, 8); + fields = g_strsplit (field_name, " -> ", 2); if (fields[1] == NULL) { diff --git a/archivers/fileroller/pkg-plist b/archivers/fileroller/pkg-plist index 3f71ae127..45382aa21 100644 --- a/archivers/fileroller/pkg-plist +++ b/archivers/fileroller/pkg-plist @@ -100,6 +100,7 @@ share/locale/sl/LC_MESSAGES/file-roller.mo share/locale/sq/LC_MESSAGES/file-roller.mo share/locale/sr/LC_MESSAGES/file-roller.mo share/locale/sr@Latn/LC_MESSAGES/file-roller.mo +share/locale/sr@ije/LC_MESSAGES/file-roller.mo share/locale/sv/LC_MESSAGES/file-roller.mo share/locale/ta/LC_MESSAGES/file-roller.mo share/locale/th/LC_MESSAGES/file-roller.mo |