aboutsummaryrefslogtreecommitdiff
path: root/audio/gnowavcut
diff options
context:
space:
mode:
authorOliver Braun <obraun@FreeBSD.org>2002-10-25 07:35:42 +0000
committerOliver Braun <obraun@FreeBSD.org>2002-10-25 07:35:42 +0000
commit6e3f6f4fff92261dd723cf490b52943698925e35 (patch)
treed3a5ae97872196291a270a3f31e1b1534b76be27 /audio/gnowavcut
parentd0d366fb07d4447a3e072b27612a551bb090bde8 (diff)
downloadports-6e3f6f4fff92261dd723cf490b52943698925e35.tar.gz
ports-6e3f6f4fff92261dd723cf490b52943698925e35.zip
Upgrade to 0.0.8.
PR: 44447 Submitted by: maintainer
Notes
Notes: svn path=/head/; revision=68778
Diffstat (limited to 'audio/gnowavcut')
-rw-r--r--audio/gnowavcut/Makefile3
-rw-r--r--audio/gnowavcut/distinfo2
-rw-r--r--audio/gnowavcut/files/patch-src:main.h20
-rw-r--r--audio/gnowavcut/files/patch-src:split.c69
-rw-r--r--audio/gnowavcut/files/patch-src:split.h13
-rw-r--r--audio/gnowavcut/files/patch-src:timelist.c20
-rw-r--r--audio/gnowavcut/files/patch-src:utils.c61
7 files changed, 2 insertions, 186 deletions
diff --git a/audio/gnowavcut/Makefile b/audio/gnowavcut/Makefile
index d2b747439b2d..3a73a6ef7dea 100644
--- a/audio/gnowavcut/Makefile
+++ b/audio/gnowavcut/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= gnowavcut
-PORTVERSION= 0.0.7
-PORTREVISION= 1
+PORTVERSION= 0.0.8
CATEGORIES= audio gnome
MASTER_SITES= http://gnowavcut.good-day.net/src/
diff --git a/audio/gnowavcut/distinfo b/audio/gnowavcut/distinfo
index b5ca1c626ecd..751e47ab4ce1 100644
--- a/audio/gnowavcut/distinfo
+++ b/audio/gnowavcut/distinfo
@@ -1 +1 @@
-MD5 (gnowavcut-0.0.7.tar.gz) = 5d5e7daad2158b07a348bb05bcd1dbf7
+MD5 (gnowavcut-0.0.8.tar.gz) = 20c371ab3574c7241176bafe7a4d6005
diff --git a/audio/gnowavcut/files/patch-src:main.h b/audio/gnowavcut/files/patch-src:main.h
deleted file mode 100644
index eef6902e127e..000000000000
--- a/audio/gnowavcut/files/patch-src:main.h
+++ /dev/null
@@ -1,20 +0,0 @@
---- src/main.h~ Sat Jun 2 12:15:39 2001
-+++ src/main.h Tue Apr 23 21:16:13 2002
-@@ -30,7 +30,7 @@
-
- typedef struct _WaveInfo {
- char id_riff[4];
-- int riff_size;
-+ guint32 riff_size;
- char type_riff[4];
- char id_fmt[4];
- int fmt_size;
-@@ -41,7 +41,7 @@
- short int size_per_sample;
- short int bits_per_sample;
- char id_data[4];
-- int data_size;
-+ guint32 data_size;
- } WaveInfo;
-
- typedef struct _Buttons {
diff --git a/audio/gnowavcut/files/patch-src:split.c b/audio/gnowavcut/files/patch-src:split.c
deleted file mode 100644
index 206cb27a2d51..000000000000
--- a/audio/gnowavcut/files/patch-src:split.c
+++ /dev/null
@@ -1,69 +0,0 @@
---- src/split.c~ Mon Aug 20 17:34:37 2001
-+++ src/split.c Wed Apr 24 09:59:58 2002
-@@ -42,17 +42,17 @@
- static void split_dialog_clicked_cb(GtkWidget *widget, gint button_number, gpointer data);
- static void split_create_dialog(SplitDialog *sdialog);
- static void split_write(SplitDialog *sdialog);
--static void split_set_wave_header(WaveInfo *dest_info, WaveInfo *base_info, int data_size);
-+static void split_set_wave_header(WaveInfo *dest_info, WaveInfo *base_info, guint32 data_size);
- static SplitStatus split_write_loop(SplitDialog *sdialog);
- static void split_update_progress_all(SplitDialog *sdialog, int file_num);
--static void split_update_progress_file(SplitDialog *sdialog, int start, int end, int cur);
-+static void split_update_progress_file(SplitDialog *sdialog, guint32 start, guint32 end, guint32 cur);
- static SplitStatus split_write_wave(SplitDialog *sdialog, gchar *base_file_name, int old_fd, WaveInfo *wi, TimeData *time);
- static SplitStatus split_write_wave_with_filtering(SplitDialog *sdialog, gchar *base_file_name, int old_fd, WaveInfo *wi, TimeData *time_data);
- static void split_start(GnoWavCut *gnowavcut, gboolean use_filter);
--static void split_update_progress_file(SplitDialog *sdialog, int start, int end, int cur)
-+static void split_update_progress_file(SplitDialog *sdialog, guint32 start, guint32 end, guint32 cur)
- {
- gchar *label_text;
-- int total_size, now_size;
-+ guint32 total_size, now_size;
- gfloat total_mbyte, now_mbyte;
- gfloat ratio;
-
-@@ -105,7 +105,7 @@
-
- g_free(file_text);
- }
--static void split_set_wave_header(WaveInfo *dest_info, WaveInfo *base_info, int data_size)
-+static void split_set_wave_header(WaveInfo *dest_info, WaveInfo *base_info, guint32 data_size)
- {
- strncpy(dest_info->id_riff, "RIFF", 4);
-
-@@ -133,7 +133,7 @@
- gchar *file_name;
- int new_fd;
- WORD buf[BUFFER];
-- int now_point, len;
-+ guint32 now_point, len;
-
- file_name = g_strdup_printf("%s.%s", base_file_name, WAVE_FILE_SUFFIX);
- new_fd = open(file_name, O_WRONLY | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
-@@ -189,7 +189,7 @@
- gchar *file_name;
- int new_fd;
- WORD buf[BUFFER];
-- int now_point, len;
-+ guint32 now_point, len;
-
- int pipe_fd[2];
- int pid;
-@@ -277,7 +277,7 @@
- int old_fd;
- GSList *timelist, *cur;
- WaveInfo wi;
-- int data_size;
-+ guint32 data_size;
- int file_num;
- gchar *base_file_name;
- TimeData *time_data;
-@@ -430,7 +430,7 @@
- static gboolean split_create_list(GnoWavCut *gnowavcut, SplitDialog *sdialog)
- {
- gchar *s_start, *s_end;
-- int start, end, i;
-+ guint32 start, end, i;
- TimeData *time_data;
- GtkWidget *clist;
-
diff --git a/audio/gnowavcut/files/patch-src:split.h b/audio/gnowavcut/files/patch-src:split.h
deleted file mode 100644
index 386c6b439757..000000000000
--- a/audio/gnowavcut/files/patch-src:split.h
+++ /dev/null
@@ -1,13 +0,0 @@
---- src/split.h~ Mon Aug 20 13:39:26 2001
-+++ src/split.h Wed Apr 24 09:53:38 2002
-@@ -26,8 +26,8 @@
- } SplitStatus;
-
- typedef struct _TimeData {
-- int start;
-- int end;
-+ guint32 start;
-+ guint32 end;
- } TimeData;
-
- typedef struct _SplitDialog {
diff --git a/audio/gnowavcut/files/patch-src:timelist.c b/audio/gnowavcut/files/patch-src:timelist.c
deleted file mode 100644
index 2cfc2ba21b12..000000000000
--- a/audio/gnowavcut/files/patch-src:timelist.c
+++ /dev/null
@@ -1,20 +0,0 @@
---- src/timelist.c~ Sat Jan 20 17:09:59 2001
-+++ src/timelist.c Tue Apr 23 21:39:09 2002
-@@ -87,7 +87,7 @@
- void timelist_end_cb(GtkWidget *widget, gpointer data)
- {
- GnoWavCut *gnowavcut;
-- int wave_end;
-+ guint32 wave_end;
- gchar *tmp;
-
- gnowavcut = (GnoWavCut *)data;
-@@ -150,7 +150,7 @@
- GnoWavCut *gnowavcut;
- gchar *clist_item[2];
- gchar *tmp;
-- int start, end;
-+ guint32 start, end;
-
- gnowavcut = (GnoWavCut *)data;
-
diff --git a/audio/gnowavcut/files/patch-src:utils.c b/audio/gnowavcut/files/patch-src:utils.c
deleted file mode 100644
index 76035708f791..000000000000
--- a/audio/gnowavcut/files/patch-src:utils.c
+++ /dev/null
@@ -1,61 +0,0 @@
---- src/utils.c~ Mon Aug 20 17:22:14 2001
-+++ src/utils.c Tue Apr 23 21:36:11 2002
-@@ -41,7 +41,7 @@
- gtk_widget_show(gnome_message_box_new(msg, GNOME_MESSAGE_BOX_WARNING, GNOME_STOCK_BUTTON_OK,
- NULL));
- }
--gchar *utils_get_time_from_seconds(int in_sec)
-+gchar *utils_get_time_from_seconds(guint32 in_sec)
- {
- int sec;
- int min;
-@@ -54,12 +54,12 @@
-
- return time;
- }
--gchar *utils_get_mini_time_from_cur(WaveInfo *wave_info, int cur)
-+gchar *utils_get_mini_time_from_cur(WaveInfo *wave_info, guint32 cur)
- {
-- int i, j;
-- int micro;
-- int sec;
-- int min;
-+ guint32 i, j;
-+ guint32 micro;
-+ guint32 sec;
-+ guint32 min;
- gchar *time;
-
- i = (cur - WAVE_HEADER_SIZE) / wave_info->size_per_sec;
-@@ -75,16 +75,16 @@
- return time;
- }
-
--gboolean utils_get_cur_from_mini_time(WaveInfo *wave_info, gchar *time_in, int *cur_out)
-+gboolean utils_get_cur_from_mini_time(WaveInfo *wave_info, gchar *time_in, guint32 *cur_out)
- {
-- int cur;
-+ guint32 cur;
- gchar *s_sec;
- gchar *s_msec;
- gchar *endptr;
- gchar *time;
-- long l_min;
-- long l_sec;
-- long l_msec;
-+ guint32 l_min;
-+ guint32 l_sec;
-+ guint32 l_msec;
-
- if(cur_out != NULL)
- *cur_out = 0;
-@@ -99,7 +99,8 @@
- g_free(time);
- return FALSE;
- }
-- if(l_min > INT_MAX / 61 / wave_info->size_per_sec || l_min < 0) {
-+ /* Should be G_UINT32MAX (or similar), but glib doesn't provide that. */
-+ if(l_min > UINT_MAX / 61 / wave_info->size_per_sec || l_min < 0) {
- g_warning(_("get_cur_from_mini_time error, min is too large or too small.\n"));
- g_free(time);
- return FALSE;