From fcc7bc64ea6c40701e8cffc444cb7ea31414d390 Mon Sep 17 00:00:00 2001
From: David Rothlisberger <david@rothlis.net>
Date: Sun, 23 Jun 2013 11:56:10 +0100
Subject: [PATCH v2] moreutils: New "parallel" variant
The "moreutils" and "parallel" ports both install a utility named
"parallel" (with incompatible command-line interfaces).
This commit allows installing the other moreutils utilities without
conflicting with the "parallel" port. I've chosen to *not* make
+parallel the default, because GNU parallel is more featureful and more
like xargs. This follows the example of Fedora, whose moreutils package
doesn't contain "parallel" at all.
---
dports/sysutils/moreutils/Portfile | 6 +++++-
dports/sysutils/moreutils/files/patch-Makefile.diff | 4 ++--
dports/sysutils/moreutils/files/patch-parallel.diff | 11 +++++++++++
dports/sysutils/parallel/Portfile | 2 --
4 files changed, 18 insertions(+), 5 deletions(-)
create mode 100644 dports/sysutils/moreutils/files/patch-parallel.diff
diff --git a/dports/sysutils/moreutils/Portfile b/dports/sysutils/moreutils/Portfile
index 3a707da..8b62c4f 100644
a
|
b
|
|
4 | 4 | PortSystem 1.0 |
5 | 5 | |
6 | 6 | name moreutils |
7 | | conflicts parallel |
8 | 7 | version 0.48 |
9 | 8 | categories sysutils |
10 | 9 | platforms darwin |
… |
… |
variant doc description {Install man pages} { |
74 | 73 | } |
75 | 74 | } |
76 | 75 | |
| 76 | variant parallel description {Install the "parallel" utility} { |
| 77 | conflicts-append parallel |
| 78 | patchfiles-append patch-parallel.diff |
| 79 | } |
| 80 | |
77 | 81 | platform darwin 8 { |
78 | 82 | # ticket #24279 |
79 | 83 | pre-fetch { |
diff --git a/dports/sysutils/moreutils/files/patch-Makefile.diff b/dports/sysutils/moreutils/files/patch-Makefile.diff
index 2c7db81..82a20e1 100644
a
|
b
|
|
2 | 2 | +++ Makefile 2013-06-21 17:34:18.000000000 -0500 |
3 | 3 | @@ -1,13 +1,14 @@ |
4 | 4 | -BINS=isutf8 ifdata ifne pee sponge mispipe lckdo parallel errno |
5 | | +BINS=isutf8 ifne pee sponge mispipe lckdo parallel errno |
| 5 | +BINS=isutf8 ifne pee sponge mispipe lckdo errno |
6 | 6 | PERLSCRIPTS=vidir vipe ts combine zrun chronic |
7 | 7 | -MANS=sponge.1 vidir.1 vipe.1 isutf8.1 ts.1 combine.1 ifdata.1 ifne.1 pee.1 zrun.1 chronic.1 mispipe.1 lckdo.1 parallel.1 errno.1 |
8 | | +MANS=sponge.1 vidir.1 vipe.1 isutf8.1 ts.1 combine.1 ifne.1 pee.1 zrun.1 chronic.1 mispipe.1 lckdo.1 parallel.1 errno.1 |
| 8 | +MANS=sponge.1 vidir.1 vipe.1 isutf8.1 ts.1 combine.1 ifne.1 pee.1 zrun.1 chronic.1 mispipe.1 lckdo.1 errno.1 |
9 | 9 | CFLAGS?=-O2 -g -Wall |
10 | 10 | INSTALL_BIN?=install -s |
11 | 11 | PREFIX?=/usr |
diff --git a/dports/sysutils/moreutils/files/patch-parallel.diff b/dports/sysutils/moreutils/files/patch-parallel.diff
new file mode 100644
index 0000000..b8cf6ee
-
|
+
|
|
| 1 | --- Makefile.orig 2013-06-22 15:38:22.000000000 +0100 |
| 2 | +++ Makefile 2013-06-22 15:38:58.000000000 +0100 |
| 3 | @@ -1,6 +1,6 @@ |
| 4 | -BINS=isutf8 ifne pee sponge mispipe lckdo errno |
| 5 | +BINS=isutf8 ifne pee sponge mispipe lckdo parallel errno |
| 6 | PERLSCRIPTS=vidir vipe ts combine zrun chronic |
| 7 | -MANS=sponge.1 vidir.1 vipe.1 isutf8.1 ts.1 combine.1 ifne.1 pee.1 zrun.1 chronic.1 mispipe.1 lckdo.1 errno.1 |
| 8 | +MANS=sponge.1 vidir.1 vipe.1 isutf8.1 ts.1 combine.1 ifne.1 pee.1 zrun.1 chronic.1 mispipe.1 parallel.1 lckdo.1 errno.1 |
| 9 | CFLAGS?=-O2 -g -Wall |
| 10 | INSTALL_BIN?=install -s |
| 11 | PREFIX?=/usr |
diff --git a/dports/sysutils/parallel/Portfile b/dports/sysutils/parallel/Portfile
index 929efcb..5e52697 100644
a
|
b
|
homepage http://savannah.gnu.org/projects/parallel |
19 | 19 | master_sites gnu |
20 | 20 | use_bzip2 yes |
21 | 21 | |
22 | | conflicts moreutils |
23 | | |
24 | 22 | depends_lib port:perl5 |
25 | 23 | |
26 | 24 | checksums rmd160 5e248a772814f96cf09527f790d381fc17c5a0a9 \ |