diff options
author | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2004-01-13 04:08:59 +0800 |
---|---|---|
committer | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2004-01-13 04:08:59 +0800 |
commit | a56f9e2f2cab0615422d78d9233561c4b1b5c462 (patch) | |
tree | c98bb878e0056eb297b4a8bb9b5869a89ce58a37 /sysutils | |
parent | f42ff979f87630d5813b422dfe123bb8cf795402 (diff) | |
download | marcuscom-ports-a56f9e2f2cab0615422d78d9233561c4b1b5c462.tar marcuscom-ports-a56f9e2f2cab0615422d78d9233561c4b1b5c462.tar.gz marcuscom-ports-a56f9e2f2cab0615422d78d9233561c4b1b5c462.tar.bz2 marcuscom-ports-a56f9e2f2cab0615422d78d9233561c4b1b5c462.tar.lz marcuscom-ports-a56f9e2f2cab0615422d78d9233561c4b1b5c462.tar.xz marcuscom-ports-a56f9e2f2cab0615422d78d9233561c4b1b5c462.tar.zst marcuscom-ports-a56f9e2f2cab0615422d78d9233561c4b1b5c462.zip |
Update to 0.6.3.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@1622 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/nautilus-cd-burner/Makefile | 3 | ||||
-rw-r--r-- | sysutils/nautilus-cd-burner/distinfo | 2 | ||||
-rw-r--r-- | sysutils/nautilus-cd-burner/files/patch-cd-drive.c | 221 | ||||
-rw-r--r-- | sysutils/nautilus-cd-burner/files/patch-cd-recorder.c | 27 | ||||
-rw-r--r-- | sysutils/nautilus-cd-burner/files/patch-cd-recorder.h | 11 | ||||
-rw-r--r-- | sysutils/nautilus-cd-burner/files/patch-make-iso.c | 11 | ||||
-rw-r--r-- | sysutils/nautilus-cd-burner/pkg-plist | 4 |
7 files changed, 6 insertions, 273 deletions
diff --git a/sysutils/nautilus-cd-burner/Makefile b/sysutils/nautilus-cd-burner/Makefile index 4dd34f9ef..9d37f7ba5 100644 --- a/sysutils/nautilus-cd-burner/Makefile +++ b/sysutils/nautilus-cd-burner/Makefile @@ -6,8 +6,7 @@ # PORTNAME= nautilus-cd-burner -PORTVERSION= 0.6.2 -PORTREVISION= 2 +PORTVERSION= 0.6.3 CATEGORIES= sysutils gnome MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= sources/${PORTNAME}/0.6 diff --git a/sysutils/nautilus-cd-burner/distinfo b/sysutils/nautilus-cd-burner/distinfo index 5908598ef..40503b732 100644 --- a/sysutils/nautilus-cd-burner/distinfo +++ b/sysutils/nautilus-cd-burner/distinfo @@ -1 +1 @@ -MD5 (gnome2/nautilus-cd-burner-0.6.2.tar.bz2) = 9f2f07c78c45d1129bf8105b30788279 +MD5 (gnome2/nautilus-cd-burner-0.6.3.tar.bz2) = 0e41db36c5f93c4b1b0ef3146bf53b7c diff --git a/sysutils/nautilus-cd-burner/files/patch-cd-drive.c b/sysutils/nautilus-cd-burner/files/patch-cd-drive.c deleted file mode 100644 index aea6a2e12..000000000 --- a/sysutils/nautilus-cd-burner/files/patch-cd-drive.c +++ /dev/null @@ -1,221 +0,0 @@ ---- cd-drive.c.orig Mon Sep 8 15:24:07 2003 -+++ cd-drive.c Tue Dec 30 12:46:59 2003 -@@ -693,28 +693,133 @@ - #endif /* __linux__ */ - - #ifdef __FreeBSD__ -+static void -+get_cd_properties (char *id, int *max_rd_speed, int *max_wr_speed, -+ CDDriveType *type) -+{ -+ int i; -+ const char *argv[20]; -+ char *dev_str, *stdout_data, *rd_speed, *wr_speed, *drive_cap; -+ -+ *max_rd_speed = -1; -+ *max_wr_speed = -1; -+ *type = 0; -+ -+ i = 0; -+ argv[i++] = "cdrecord"; -+ argv[i++] = "-prcap"; -+ dev_str = g_strdup_printf ("dev=%s", id); -+ argv[i++] = dev_str; -+ argv[i++] = NULL; -+ -+ if (g_spawn_sync (NULL, -+ (char **)argv, -+ NULL, -+ G_SPAWN_SEARCH_PATH | G_SPAWN_STDERR_TO_DEV_NULL, -+ NULL, NULL, -+ &stdout_data, -+ NULL, -+ NULL, -+ NULL)) { -+ wr_speed = strstr (stdout_data, "Maximum write speed:"); -+ if (wr_speed != NULL) { -+ char *tok; -+ wr_speed += strlen ("Maximum write speed:"); -+ for (tok = strtok (wr_speed, " (),\t\n"); -+ tok && strcmp (tok, "CD"); -+ tok = strtok (NULL, " (),\t\n")) {} -+ tok = strtok (NULL, " (),\t\n"); /* Get the CD speed. */ -+ *max_wr_speed = atol (tok); -+ } -+ else { -+ wr_speed = strstr (stdout_data, "Maximum write speed in kB/s:"); -+ if (wr_speed != NULL) { -+ char *tok; -+ wr_speed += strlen ("Maximum write speed in kB/s:"); -+ for (tok = strtok (wr_speed, " (),\t\n"); -+ tok && strcmp (tok, "CD"); -+ tok = strtok (NULL, " (),\t\n")) {} -+ tok = strtok (NULL, " (),\t\n"); /* Get the CD speed. */ -+ *max_wr_speed = atol (tok); -+ } -+ } -+ -+ rd_speed = strstr (stdout_data, "Maximum read speed:"); -+ if (rd_speed != NULL) { -+ char *tok; -+ rd_speed += strlen ("Maximum read speed:"); -+ for (tok = strtok (rd_speed, " (),\t\n"); -+ tok && strcmp (tok, "CD"); -+ tok = strtok (NULL, " (),\t\n")) {} -+ tok = strtok (NULL, " (),\t\n"); /* Get the CD speed. */ -+ *max_rd_speed = atol (tok); -+ } -+ else { -+ rd_speed = strstr (stdout_data, "Maximum read speed in kB/s:"); -+ if (rd_speed != NULL) { -+ char *tok; -+ rd_speed += strlen ("Maximum read speed in kB/s:"); -+ for (tok = strtok (rd_speed, " (),\t\n"); -+ tok && strcmp (tok, "CD"); -+ tok = strtok (NULL, " (),\t\n")) {} -+ tok = strtok (NULL, " (),\t\n"); /* Get the CD speed. */ -+ *max_rd_speed = atol (tok); -+ } -+ } -+ drive_cap = strstr (stdout_data, "Does write DVD-RAM media"); -+ if (drive_cap != NULL) { -+ *type |= CDDRIVE_TYPE_DVD_RAM_RECORDER; -+ } -+ drive_cap = strstr (stdout_data, "Does read DVD-R media"); -+ if (drive_cap != NULL) { -+ *type |= CDDRIVE_TYPE_DVD_RW_RECORDER; -+ } -+ drive_cap = strstr (stdout_data, "Does read DVD-ROM media"); -+ if (drive_cap != NULL) { -+ *type |= CDDRIVE_TYPE_DVD_DRIVE; -+ } -+ drive_cap = strstr (stdout_data, "Does write CD-RW media"); -+ if (drive_cap != NULL) { -+ *type |= CDDRIVE_TYPE_CDRW_RECORDER; -+ } -+ drive_cap = strstr (stdout_data, "Does write CD-R media"); -+ if (drive_cap != NULL) { -+ *type |= CDDRIVE_TYPE_CD_RECORDER; -+ } -+ drive_cap = strstr (stdout_data, "Does read CD-R media"); -+ if (drive_cap != NULL) { -+ *type |= CDDRIVE_TYPE_CD_DRIVE; -+ } -+ g_free (stdout_data); -+ } -+ -+ g_free (dev_str); -+} -+ - static GList * - freebsd_scan (gboolean recorder_only) - { - GList *cdroms_list = NULL; - const char *dev_type = "cd"; -- int fd; - int speed = 16; /* XXX Hardcode the write speed for now. */ -- int max_speed = CDR_MAX_SPEED; - int i = 0; -+ int cnode = 1; /* Use the CD device's 'c' node. */ - - while (1) { -- CDDriveType type; - CDDrive *cdrom; -- gchar *cam_path, *dev; -+ gchar *cam_path; - struct cam_device *cam_dev; - -- type = 0; - cam_path = g_strdup_printf ("/dev/%s%dc", dev_type, i); - - if (!g_file_test (cam_path, G_FILE_TEST_EXISTS)) { - g_free (cam_path); -- break; -+ cam_path = g_strdup_printf ("/dev/%s%d", dev_type, i); -+ cnode = 0; -+ if (!g_file_test (cam_path, G_FILE_TEST_EXISTS)) { -+ g_free (cam_path); -+ break; -+ } - } - - if ((cam_dev = cam_open_spec_device (dev_type, i, O_RDWR, NULL)) == NULL) { -@@ -723,47 +828,41 @@ - continue; - } - -- /* XXX Other controllers might need to be added. */ -- if ((strncmp (cam_dev->sim_name, "ata", 3)) == 0) { -- dev = g_strdup_printf ("/dev/a%s%dc", dev_type, i); -- } else { -- dev = g_strdup (cam_path); -- } -- -- g_free (cam_path); -- -- if ((fd = open (dev, O_RDWR, 0)) < 0) { -- g_free (dev); -- free (cam_dev); -- i++; -- continue; -- } -- -- type |= CDDRIVE_TYPE_CD_DRIVE; -- if (ioctl (fd, CDRIOCWRITESPEED, &max_speed) >= 0) { -- /* XXX is it CD-R or CD-RW ? */ -- type |= CDDRIVE_TYPE_CD_RECORDER; -- } -- -- close (fd); -- -- if (type & CDDRIVE_TYPE_CD_RECORDER -- || type & CDDRIVE_TYPE_CDRW_RECORDER -- || recorder_only == FALSE) { -- cdrom = g_new0 (CDDrive, 1); -- cdrom->display_name = g_strdup_printf ("%s %s", cam_dev->inq_data.vendor, cam_dev->inq_data.revision); -- cdrom->device = g_strdup (dev); -- cdrom->max_speed_read = speed; -- cdrom->max_speed_write = speed; -- cdrom->cdrecord_id = g_strdup_printf ("%d,%d,%d", cam_dev->path_id, cam_dev->target_id, cam_dev->target_lun); -- cdrom->type = type; -- -- add_dvd_plus (cdrom); -+ cdrom = g_new0 (CDDrive, 1); -+ cdrom->display_name = g_strdup_printf ("%s %s", cam_dev->inq_data.vendor, cam_dev->inq_data.revision); -+ cdrom->device = g_strdup (cam_path); -+ cdrom->cdrecord_id = g_strdup_printf ("%d,%d,%d", cam_dev->path_id, cam_dev->target_id, cam_dev->target_lun); -+ /* Attempt to get more specific information from -+ * this drive by using cdrecord. -+ */ -+ get_cd_properties (cdrom->cdrecord_id, -+ &(cdrom->max_speed_read), -+ &(cdrom->max_speed_write), -+ &(cdrom->type)); -+ if (cdrom->type & CDDRIVE_TYPE_CD_RECORDER -+ || cdrom->type & CDDRIVE_TYPE_CDRW_RECORDER -+ || cdrom->type & CDDRIVE_TYPE_DVD_RAM_RECORDER -+ || cdrom->type & CDDRIVE_TYPE_DVD_RW_RECORDER -+ || !recorder_only) { -+ -+ if (cdrom->max_speed_read == -1) { -+ cdrom->max_speed_read = speed; -+ } -+ if (cdrom->max_speed_write == -1) { -+ cdrom->max_speed_write = speed; -+ } -+ -+ if (cdrom->type & CDDRIVE_TYPE_DVD_DRIVE) { -+ add_dvd_plus (cdrom); -+ } - - cdroms_list = g_list_append (cdroms_list, cdrom); - } -+ else { -+ cd_drive_free (cdrom); -+ } - -- g_free (dev); -+ g_free (cam_path); - free (cam_dev); - - i++; diff --git a/sysutils/nautilus-cd-burner/files/patch-cd-recorder.c b/sysutils/nautilus-cd-burner/files/patch-cd-recorder.c deleted file mode 100644 index 7adec2e69..000000000 --- a/sysutils/nautilus-cd-burner/files/patch-cd-recorder.c +++ /dev/null @@ -1,27 +0,0 @@ ---- cd-recorder.c.orig Fri Dec 19 13:06:34 2003 -+++ cd-recorder.c Mon Dec 29 16:16:41 2003 -@@ -482,7 +482,7 @@ - - g_ptr_array_add (argv, "-Z"); - -- dev_str = g_strdup_printf ("%s=%s", recorder->device, t->data.filename); -+ dev_str = g_strdup_printf ("%s=%s", recorder->device, t->contents.data.filename); - g_ptr_array_add (argv, dev_str); - - g_ptr_array_add (argv, NULL); -@@ -640,13 +640,13 @@ - case TRACK_TYPE_DATA: - g_ptr_array_add (argv, "-data"); - g_ptr_array_add (argv, "-nopad"); /* TODO? */ -- g_ptr_array_add (argv, track->data.filename); -+ g_ptr_array_add (argv, track->contents.data.filename); - break; - case TRACK_TYPE_AUDIO: - g_ptr_array_add (argv, "-copy"); - g_ptr_array_add (argv, "-audio"); - g_ptr_array_add (argv, "-pad"); -- g_ptr_array_add (argv, track->audio.filename); -+ g_ptr_array_add (argv, track->contents.audio.filename); - /* TODO: handle CD-TEXT somehow */ - break; - default: diff --git a/sysutils/nautilus-cd-burner/files/patch-cd-recorder.h b/sysutils/nautilus-cd-burner/files/patch-cd-recorder.h deleted file mode 100644 index e56b93b00..000000000 --- a/sysutils/nautilus-cd-burner/files/patch-cd-recorder.h +++ /dev/null @@ -1,11 +0,0 @@ ---- cd-recorder.h.orig Wed Dec 10 14:28:50 2003 -+++ cd-recorder.h Wed Dec 10 14:29:00 2003 -@@ -31,7 +31,7 @@ - struct { - char *filename; - } data; -- }; -+ } contents; - }; - - #define CD_TYPE_RECORDER (cd_recorder_get_type ()) diff --git a/sysutils/nautilus-cd-burner/files/patch-make-iso.c b/sysutils/nautilus-cd-burner/files/patch-make-iso.c index fda950dc9..87cd0836b 100644 --- a/sysutils/nautilus-cd-burner/files/patch-make-iso.c +++ b/sysutils/nautilus-cd-burner/files/patch-make-iso.c @@ -16,14 +16,3 @@ } argv[i++] = "-graft-points"; argv[i++] = "-path-list"; -@@ -755,8 +757,8 @@ - backing = get_backing_file (info->name); - track = g_new0 (Track, 1); - track->type = TRACK_TYPE_AUDIO; -- track->audio.filename = backing; -- track->audio.cdtext = NULL; -+ track->contents.audio.filename = backing; -+ track->contents.audio.cdtext = NULL; - list = g_list_prepend (list, track); - } - } diff --git a/sysutils/nautilus-cd-burner/pkg-plist b/sysutils/nautilus-cd-burner/pkg-plist index 37d90094e..f8b2d735c 100644 --- a/sysutils/nautilus-cd-burner/pkg-plist +++ b/sysutils/nautilus-cd-burner/pkg-plist @@ -17,9 +17,11 @@ share/gnome/nautilus-cd-burner/cdspin6.png share/gnome/nautilus-cd-burner/cdspin7.png share/gnome/nautilus-cd-burner/cdspin8.png share/locale/am/LC_MESSAGES/nautilus-cd-burner.mo +share/locale/ar/LC_MESSAGES/nautilus-cd-burner.mo share/locale/az/LC_MESSAGES/nautilus-cd-burner.mo share/locale/be/LC_MESSAGES/nautilus-cd-burner.mo share/locale/bg/LC_MESSAGES/nautilus-cd-burner.mo +share/locale/bn/LC_MESSAGES/nautilus-cd-burner.mo share/locale/ca/LC_MESSAGES/nautilus-cd-burner.mo share/locale/cs/LC_MESSAGES/nautilus-cd-burner.mo share/locale/cy/LC_MESSAGES/nautilus-cd-burner.mo @@ -29,10 +31,12 @@ share/locale/el/LC_MESSAGES/nautilus-cd-burner.mo share/locale/es/LC_MESSAGES/nautilus-cd-burner.mo share/locale/et/LC_MESSAGES/nautilus-cd-burner.mo share/locale/eu/LC_MESSAGES/nautilus-cd-burner.mo +share/locale/fa/LC_MESSAGES/nautilus-cd-burner.mo share/locale/fi/LC_MESSAGES/nautilus-cd-burner.mo share/locale/fr/LC_MESSAGES/nautilus-cd-burner.mo share/locale/ga/LC_MESSAGES/nautilus-cd-burner.mo share/locale/he/LC_MESSAGES/nautilus-cd-burner.mo +share/locale/hr/LC_MESSAGES/nautilus-cd-burner.mo share/locale/hu/LC_MESSAGES/nautilus-cd-burner.mo share/locale/id/LC_MESSAGES/nautilus-cd-burner.mo share/locale/it/LC_MESSAGES/nautilus-cd-burner.mo |