diff options
author | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2010-01-03 06:26:47 +0800 |
---|---|---|
committer | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2010-01-03 06:26:47 +0800 |
commit | c7b84bbb15deffdd3daccd6f7196986bb912a07b (patch) | |
tree | 09a2ac60db2b96b72d5396d389b679d926c980b8 | |
parent | d7fe25d6f42a539fbca78b8f843940af310f06da (diff) | |
download | marcuscom-ports-c7b84bbb15deffdd3daccd6f7196986bb912a07b.tar marcuscom-ports-c7b84bbb15deffdd3daccd6f7196986bb912a07b.tar.gz marcuscom-ports-c7b84bbb15deffdd3daccd6f7196986bb912a07b.tar.bz2 marcuscom-ports-c7b84bbb15deffdd3daccd6f7196986bb912a07b.tar.lz marcuscom-ports-c7b84bbb15deffdd3daccd6f7196986bb912a07b.tar.xz marcuscom-ports-c7b84bbb15deffdd3daccd6f7196986bb912a07b.tar.zst marcuscom-ports-c7b84bbb15deffdd3daccd6f7196986bb912a07b.zip |
Sync with FreeBSD ports.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@13347 df743ca5-7f9a-e211-a948-0013205c9059
-rw-r--r-- | archivers/file-roller/Makefile | 11 | ||||
-rw-r--r-- | archivers/file-roller/files/patch-src_fr-command-zip.c | 39 |
2 files changed, 46 insertions, 4 deletions
diff --git a/archivers/file-roller/Makefile b/archivers/file-roller/Makefile index 735f43e6f..57431c0d9 100644 --- a/archivers/file-roller/Makefile +++ b/archivers/file-roller/Makefile @@ -3,11 +3,12 @@ # Whom: Anders Nordby <anders@FreeBSD.org> # # $FreeBSD$ -# $MCom$ +# $MCom: ports/archivers/file-roller/Makefile,v 1.167 2009/12/22 01:12:31 ahze Exp $ # PORTNAME= file-roller PORTVERSION= 2.29.3 +PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= archivers gnome MASTER_SITES= GNOME @@ -18,7 +19,8 @@ COMMENT= An archive manager for zip files, tar, etc OPTIONS= NAUTILUS "Enable Nautilus extension" on -RUN_DEPENDS= ${LOCALBASE}/bin/gtar:${PORTSDIR}/archivers/gtar +RUN_DEPENDS= ${LOCALBASE}/bin/gtar:${PORTSDIR}/archivers/gtar \ + ${LOCALBASE}/bin/unzip:${PORTSDIR}/archivers/unzip USE_LDCONFIG= yes USE_BZIP2= yes @@ -47,8 +49,9 @@ CONFIGURE_ARGS+= --disable-nautilus-actions .endif post-patch: - @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' \ - ${WRKSRC}/src/fr-command-tar.c + @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \ + ${WRKSRC}/src/fr-command-tar.c \ + ${WRKSRC}/src/fr-command.zip.c post-install: @-update-desktop-database diff --git a/archivers/file-roller/files/patch-src_fr-command-zip.c b/archivers/file-roller/files/patch-src_fr-command-zip.c new file mode 100644 index 000000000..ee9ec93de --- /dev/null +++ b/archivers/file-roller/files/patch-src_fr-command-zip.c @@ -0,0 +1,39 @@ +--- src/fr-command-zip.c.orig 2010-01-02 17:02:44.000000000 -0500 ++++ src/fr-command-zip.c 2010-01-02 17:08:03.000000000 -0500 +@@ -187,7 +187,11 @@ fr_command_zip_list (FrCommand *comm) + { + fr_process_set_out_line_func (comm->process, list__process_line, comm); + ++#ifdef __FreeBSD__ ++ fr_process_begin_command (comm->process, "%%LOCALBASE%%/bin/unzip"); ++#else + fr_process_begin_command (comm->process, "unzip"); ++#endif + fr_process_set_begin_func (comm->process, list__begin, comm); + fr_process_add_arg (comm->process, "-ZTs"); + fr_process_add_arg (comm->process, comm->filename); +@@ -302,7 +306,11 @@ fr_command_zip_extract (FrCommand *comm + process_line__common, + comm); + ++#ifdef __FreeBSD__ ++ fr_process_begin_command (comm->process, "%%LOCALBASE%%/bin/unzip"); ++#else + fr_process_begin_command (comm->process, "unzip"); ++#endif + + if (dest_dir != NULL) { + fr_process_add_arg (comm->process, "-d"); +@@ -334,7 +342,11 @@ fr_command_zip_extract (FrCommand *comm + static void + fr_command_zip_test (FrCommand *comm) + { +- fr_process_begin_command (comm->process, "unzip"); ++#ifdef __FreeBSD__ ++ fr_process_begin_command (comm->process, "%%LOCALBASE%%/bin/unzip"); ++#else ++ fr_process_begin_command (comm->process, "%%LOCALBASE%%/bin/unzip"); ++#endif + fr_process_add_arg (comm->process, "-t"); + add_password_arg (comm, comm->password); + fr_process_add_arg (comm->process, comm->filename); |