diff options
author | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2003-04-13 15:42:04 +0800 |
---|---|---|
committer | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2003-04-13 15:42:04 +0800 |
commit | 30427d42cc6df4612b2ecf723c14536c2711aceb (patch) | |
tree | 087b5d6db622e8d6c787d16e58853c09adefbd07 /sysutils/nautilus-cd-burner | |
parent | 2b6ff64f0d9aa85bb9e80c210c56fe783b0a43c9 (diff) | |
download | marcuscom-ports-30427d42cc6df4612b2ecf723c14536c2711aceb.tar marcuscom-ports-30427d42cc6df4612b2ecf723c14536c2711aceb.tar.gz marcuscom-ports-30427d42cc6df4612b2ecf723c14536c2711aceb.tar.bz2 marcuscom-ports-30427d42cc6df4612b2ecf723c14536c2711aceb.tar.lz marcuscom-ports-30427d42cc6df4612b2ecf723c14536c2711aceb.tar.xz marcuscom-ports-30427d42cc6df4612b2ecf723c14536c2711aceb.tar.zst marcuscom-ports-30427d42cc6df4612b2ecf723c14536c2711aceb.zip |
Add nautilus-cd-burner, a CD burner view for Nautilus.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@637 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'sysutils/nautilus-cd-burner')
-rw-r--r-- | sysutils/nautilus-cd-burner/Makefile | 35 | ||||
-rw-r--r-- | sysutils/nautilus-cd-burner/distinfo | 1 | ||||
-rw-r--r-- | sysutils/nautilus-cd-burner/files/patch-cd-recorder.c | 96 | ||||
-rw-r--r-- | sysutils/nautilus-cd-burner/files/patch-configure | 10 | ||||
-rw-r--r-- | sysutils/nautilus-cd-burner/files/patch-make-iso.c | 15 | ||||
-rw-r--r-- | sysutils/nautilus-cd-burner/pkg-descr | 6 | ||||
-rw-r--r-- | sysutils/nautilus-cd-burner/pkg-plist | 40 |
7 files changed, 203 insertions, 0 deletions
diff --git a/sysutils/nautilus-cd-burner/Makefile b/sysutils/nautilus-cd-burner/Makefile new file mode 100644 index 000000000..8bc79f946 --- /dev/null +++ b/sysutils/nautilus-cd-burner/Makefile @@ -0,0 +1,35 @@ +# New ports collection makefile for: nautilus-cd-burner +# Date created: 13 April 2003 +# Whom: Joe Marcus Clarke <marcus@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= nautilus-cd-burner +PORTVERSION= 0.4.0 +CATEGORIES= multimedia gnome +MASTER_SITES= ${MASTER_SITE_GNOME} +MASTER_SITE_SUBDIR= sources/${PORTNAME}/0.4 +DIST_SUBDIR= gnome2 + +MAINTAINER= gnome@FreeBSD.org +COMMENT= CD burner view for Nautilus + +RUN_DEPENDS= mkisofs:${PORTSDIR}/sysutils/mkisofs \ + cdrecord:${PORTSDIR}/sysutils/cdrtools + +USE_BZIP2= yes +USE_X_PREFIX= yes +USE_REINPLACE= yes +USE_GMAKE= yes +GNOME_DESKTOP_VERSION=2 +USE_GNOME= gnomeprefix gnomehack nautilus2 +USE_LIBTOOL= yes +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LIBS="-L${LOCALBASE}/lib" + +post-patch: + @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g ; \ + s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure + +.include <bsd.port.mk> diff --git a/sysutils/nautilus-cd-burner/distinfo b/sysutils/nautilus-cd-burner/distinfo new file mode 100644 index 000000000..5c3146b90 --- /dev/null +++ b/sysutils/nautilus-cd-burner/distinfo @@ -0,0 +1 @@ +MD5 (gnome2/nautilus-cd-burner-0.4.0.tar.bz2) = f1b2b301a5afd473f6c1ae08505ac28f diff --git a/sysutils/nautilus-cd-burner/files/patch-cd-recorder.c b/sysutils/nautilus-cd-burner/files/patch-cd-recorder.c new file mode 100644 index 000000000..39b0afb9b --- /dev/null +++ b/sysutils/nautilus-cd-burner/files/patch-cd-recorder.c @@ -0,0 +1,96 @@ +--- cd-recorder.c.orig Sun Apr 13 03:27:14 2003 ++++ cd-recorder.c Sun Apr 13 03:30:37 2003 +@@ -9,10 +9,16 @@ + #include <fcntl.h> + #include <sys/wait.h> + #include <sys/types.h> ++#ifdef __FreeBSD__ ++#include <sys/uio.h> ++#include <unistd.h> ++#endif + #include <sys/stat.h> + #include <sys/ioctl.h> ++#ifndef __FreeBSD__ + #include <scsi/scsi.h> + #include <scsi/sg.h> ++#endif + #include <glib.h> + #include <signal.h> + #include <libgnome/gnome-i18n.h> +@@ -39,9 +45,9 @@ + GMainLoop *loop; + int result; + int pid; +- int stdin; ++ int cdr_stdin; + GString *line; +- GString *stderr; ++ GString *cdr_stderr; + gboolean changed_text; + gboolean send_return; + gboolean expect_cdrecord_to_die; +@@ -109,7 +115,7 @@ + { + if (is_reload) { + if (cdrecorder->priv->send_return) { +- write (cdrecorder->priv->stdin, "\n", 1); ++ write (cdrecorder->priv->cdr_stdin, "\n", 1); + } else { + kill (cdrecorder->priv->pid, SIGUSR1); + } +@@ -214,7 +220,7 @@ + #endif + /* TODO: Handle errors */ + if (status == G_IO_STATUS_NORMAL && !cdrecorder->priv->expect_cdrecord_to_die) { +- g_string_prepend (cdrecorder->priv->stderr, line); ++ g_string_prepend (cdrecorder->priv->cdr_stderr, line); + if (strstr (line, "No disk / Wrong disk!") != NULL) { + g_signal_emit (G_OBJECT (cdrecorder), + cd_recorder_table_signals[INSERT_CD_REQUEST], 0, +@@ -277,15 +283,15 @@ + argv[i++] = filename; + argv[i++] = NULL; + +- cdrecorder->priv->stderr = NULL; ++ cdrecorder->priv->cdr_stderr = NULL; + retry: + cdrecorder->priv->result = RESULT_ERROR; + cdrecorder->priv->expect_cdrecord_to_die = FALSE; + cdrecorder->priv->line = NULL; +- if (cdrecorder->priv->stderr != NULL) { +- g_string_truncate (cdrecorder->priv->stderr, 0); ++ if (cdrecorder->priv->cdr_stderr != NULL) { ++ g_string_truncate (cdrecorder->priv->cdr_stderr, 0); + } else { +- cdrecorder->priv->stderr = g_string_new (NULL); ++ cdrecorder->priv->cdr_stderr = g_string_new (NULL); + } + + g_signal_emit (G_OBJECT (cdrecorder), +@@ -309,7 +315,7 @@ + G_SPAWN_SEARCH_PATH, + NULL, NULL, + &cdrecorder->priv->pid, +- &cdrecorder->priv->stdin, ++ &cdrecorder->priv->cdr_stdin, + &stdout_pipe, + &stderr_pipe, + &error)) { +@@ -374,7 +380,7 @@ + { + g_return_val_if_fail (cdrecorder->priv->result != RESULT_ERROR, NULL); + +- return (const char *)cdrecorder->priv->stderr->str; ++ return (const char *)cdrecorder->priv->cdr_stderr->str; + } + + const char * +@@ -392,7 +398,7 @@ + + g_return_if_fail (object != NULL); + +- g_string_free (cdrecorder->priv->stderr, TRUE); ++ g_string_free (cdrecorder->priv->cdr_stderr, TRUE); + //FIXME cleanup + + if (G_OBJECT_CLASS (parent_class)->finalize != NULL) { diff --git a/sysutils/nautilus-cd-burner/files/patch-configure b/sysutils/nautilus-cd-burner/files/patch-configure new file mode 100644 index 000000000..ff42da02d --- /dev/null +++ b/sysutils/nautilus-cd-burner/files/patch-configure @@ -0,0 +1,10 @@ +--- configure.orig Wed Dec 11 15:37:55 2002 ++++ configure Wed Dec 11 15:38:17 2002 +@@ -7313,6 +7313,7 @@ + + # This can be used to rebuild libtool when needed + LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" ++$ac_aux_dir/ltconfig $LIBTOOL_DEPS + + # Always use our own libtool. + LIBTOOL='$(SHELL) $(top_builddir)/libtool' diff --git a/sysutils/nautilus-cd-burner/files/patch-make-iso.c b/sysutils/nautilus-cd-burner/files/patch-make-iso.c new file mode 100644 index 000000000..56d549004 --- /dev/null +++ b/sysutils/nautilus-cd-burner/files/patch-make-iso.c @@ -0,0 +1,15 @@ +--- make-iso.c.orig Sun Apr 13 03:24:31 2003 ++++ make-iso.c Sun Apr 13 03:25:19 2003 +@@ -21,7 +21,12 @@ + + Authors: Alexander Larsson <alexl@redhat.com> + */ ++#ifdef __FreeBSD__ ++#include <sys/param.h> ++#include <sys/mount.h> ++#else + #include <sys/vfs.h> ++#endif + #include <sys/types.h> + #include <sys/stat.h> + #include <time.h> diff --git a/sysutils/nautilus-cd-burner/pkg-descr b/sysutils/nautilus-cd-burner/pkg-descr new file mode 100644 index 000000000..c3520e981 --- /dev/null +++ b/sysutils/nautilus-cd-burner/pkg-descr @@ -0,0 +1,6 @@ +nautilus-cd-burner is an extension to Nautilus that makes it easy to +write files to a CD burner. + +The user uses Nautilus or another gnome-vfs aware app to copy the +files he wants to write to burn:///, and then nautilus-cd-burner is +launched in some way to write the files to the CD. diff --git a/sysutils/nautilus-cd-burner/pkg-plist b/sysutils/nautilus-cd-burner/pkg-plist new file mode 100644 index 000000000..e86f7d7b0 --- /dev/null +++ b/sysutils/nautilus-cd-burner/pkg-plist @@ -0,0 +1,40 @@ +bin/nautilus-cd-burner +etc/gnome-vfs-2.0/modules/mapping-modules.conf +lib/gnome-vfs-2.0/modules/libmapping.so +libdata/bonobo/servers/Nautilus_CD_Burner_Context_Menu.server +libexec/mapping-daemon +libexec/nautilus-cd-burner-context-menu +share/gnome/nautilus-cd-burner/cdburn.glade +share/gnome/nautilus-cd-burner/cdspin1.png +share/gnome/nautilus-cd-burner/cdspin2.png +share/gnome/nautilus-cd-burner/cdspin3.png +share/gnome/nautilus-cd-burner/cdspin4.png +share/gnome/nautilus-cd-burner/cdspin5.png +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/az/LC_MESSAGES/nautilus-cd-burner.mo +share/locale/be/LC_MESSAGES/nautilus-cd-burner.mo +share/locale/cs/LC_MESSAGES/nautilus-cd-burner.mo +share/locale/da/LC_MESSAGES/nautilus-cd-burner.mo +share/locale/de/LC_MESSAGES/nautilus-cd-burner.mo +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/fr/LC_MESSAGES/nautilus-cd-burner.mo +share/locale/he/LC_MESSAGES/nautilus-cd-burner.mo +share/locale/it/LC_MESSAGES/nautilus-cd-burner.mo +share/locale/ja/LC_MESSAGES/nautilus-cd-burner.mo +share/locale/ko/LC_MESSAGES/nautilus-cd-burner.mo +share/locale/lv/LC_MESSAGES/nautilus-cd-burner.mo +share/locale/nl/LC_MESSAGES/nautilus-cd-burner.mo +share/locale/no/LC_MESSAGES/nautilus-cd-burner.mo +share/locale/pl/LC_MESSAGES/nautilus-cd-burner.mo +share/locale/pt/LC_MESSAGES/nautilus-cd-burner.mo +share/locale/pt_BR/LC_MESSAGES/nautilus-cd-burner.mo +share/locale/sv/LC_MESSAGES/nautilus-cd-burner.mo +share/locale/tr/LC_MESSAGES/nautilus-cd-burner.mo +share/locale/vi/LC_MESSAGES/nautilus-cd-burner.mo +share/locale/zh_TW/LC_MESSAGES/nautilus-cd-burner.mo +@dirrm share/gnome/nautilus-cd-burner |