[30806] trunk/dports/sysutils

source_changes at macosforge.org source_changes at macosforge.org
Wed Nov 7 02:51:27 PST 2007


Revision: 30806
          http://trac.macosforge.org/projects/macports/changeset/30806
Author:   milosh at macports.org
Date:     2007-11-07 02:51:22 -0800 (Wed, 07 Nov 2007)

Log Message:
-----------
New port moreutils (simple useful command line utilities)

Added Paths:
-----------
    trunk/dports/sysutils/moreutils/
    trunk/dports/sysutils/moreutils/Portfile
    trunk/dports/sysutils/moreutils/files/
    trunk/dports/sysutils/moreutils/files/patch-Makefile.diff

Added: trunk/dports/sysutils/moreutils/Portfile
===================================================================
--- trunk/dports/sysutils/moreutils/Portfile	                        (rev 0)
+++ trunk/dports/sysutils/moreutils/Portfile	2007-11-07 10:51:22 UTC (rev 30806)
@@ -0,0 +1,57 @@
+# $Id$
+
+PortSystem  1.0
+
+name        moreutils
+version     0.24
+categories  sysutils
+maintainers milosh
+platforms   darwin
+description a collection of the unix tools that nobody thought to write thirty years ago.
+long_description    \
+    moreutils includes the following utilities: \
+ - isutf8: check if a file or standard input is utf-8, \
+ - sponge: soak up standard input and write to a file, \
+ - ts: timestamp standard input, \
+ - vidir: edit a directory in your text editor, \
+ - vipe: insert a text editor into a pipe, \
+ - combine: combine the lines in two files using boolean operations, \
+ - pee: tee standard input to pipes, \
+ - zrun: automatically uncompress arguments to command, \
+ - mispipe: pipe two commands, returning the exit status of the first, \
+ - lckdo: run a program with a lock held.
+
+homepage    http://packages.debian.org/unstable/utils/moreutils
+master_sites    http://ftp.debian.org/debian/pool/main/m/moreutils/
+distname        ${name}_${version}
+worksrcdir      ${name}
+extract.suffix  .tar.gz
+checksums       md5 f0dbbded6a685976102c2884e6c32feb
+use_configure   no
+depends_run     port:perl5.8
+patchfiles      patch-Makefile.diff
+use_configure   no
+pre-build   {
+        reinplace "s|/usr/bin/perl|${prefix}/bin/perl|" \
+        ${worksrcpath}/vidir ${worksrcpath}/vipe \
+        ${worksrcpath}/ts ${worksrcpath}/combine \
+        ${worksrcpath}/zrun
+        }
+destroot.env    PREFIX=${destroot}${prefix}
+
+variant doc description {Install man pages} {
+        depends_build-append    port:docbook-xml-4.4 port:docbook2X
+        destroot.target         install install-doc
+        build.target            all doc
+        post-configure  {
+            reinplace "s|/usr/share/xml/docbook/schema/dtd/4.4|${prefix}/share/xml/docbook/4.4|" \
+            ${worksrcpath}/ifdata.docbook ${worksrcpath}/isutf8.docbook \
+            ${worksrcpath}/mispipe.docbook ${worksrcpath}/pee.docbook \
+            ${worksrcpath}/sponge.docbook ${worksrcpath}/lckdo.docbook
+        }
+}
+
+livecheck.check regex
+livecheck.url   http://packages.debian.org/unstable/utils/${name}
+livecheck.regex ${name} .(\[0-9.\]+)
+


Property changes on: trunk/dports/sysutils/moreutils/Portfile
___________________________________________________________________
Name: svn:keywords
   + Id
Name: svn:eol-style
   + native

Added: trunk/dports/sysutils/moreutils/files/patch-Makefile.diff
===================================================================
--- trunk/dports/sysutils/moreutils/files/patch-Makefile.diff	                        (rev 0)
+++ trunk/dports/sysutils/moreutils/files/patch-Makefile.diff	2007-11-07 10:51:22 UTC (rev 30806)
@@ -0,0 +1,62 @@
+--- Makefile.orig	2007-09-06 03:27:11.000000000 +0200
++++ Makefile	2007-10-23 14:45:47.000000000 +0200
+@@ -1,42 +1,45 @@
+-BINS=isutf8 ifdata pee sponge mispipe lckdo
++BINS=isutf8 pee sponge mispipe lckdo
+ PERLSCRIPTS=vidir vipe ts combine zrun
+-MANS=sponge.1 vidir.1 vipe.1 isutf8.1 ts.1 combine.1 ifdata.1 pee.1 zrun.1 mispipe.1 lckdo.1
++MANS=sponge.1 vidir.1 vipe.1 ts.1 combine.1 zrun.1 mispipe.1 lckdo.1
+ CFLAGS=-O2 -g -Wall
+ INSTALL_BIN=install -s
+ 
+-all: $(BINS) $(MANS)
++all: $(BINS)
++	
++doc: $(MANS)
+ 
+ clean:
+ 	rm -f $(BINS) $(MANS)
+ 
+ install:
+-	mkdir -p $(PREFIX)/usr/bin
+-	$(INSTALL_BIN) $(BINS) $(PREFIX)/usr/bin
+-	install $(PERLSCRIPTS) $(PREFIX)/usr/bin
++	mkdir -p $(PREFIX)/bin
++	$(INSTALL_BIN) $(BINS) $(PREFIX)/bin
++	install $(PERLSCRIPTS) $(PREFIX)/bin
+ 	
+-	mkdir -p $(PREFIX)/usr/share/man/man1
+-	install $(MANS) $(PREFIX)/usr/share/man/man1
++install-doc:
++	mkdir -p $(PREFIX)/share/man/man1
++	install $(MANS) $(PREFIX)/share/man/man1
+ 
+ check: isutf8
+ 	./check-isutf8
+ 
+ isutf8.1: isutf8.docbook
+-	docbook2x-man $<
++	docbook2man $<
+ 
+ ifdata.1: ifdata.docbook
+-	docbook2x-man $<
++	docbook2man $<
+ 
+ pee.1: pee.docbook
+-	docbook2x-man $<
++	docbook2man $<
+ 
+ sponge.1: sponge.docbook
+-	docbook2x-man $<
++	docbook2man $<
+ 
+ mispipe.1: mispipe.docbook
+-	docbook2x-man $<
++	docbook2man $<
+ 
+ lckdo.1: lckdo.docbook
+-	docbook2x-man $<
++	docbook2man $<
+ 
+ %.1: %
+ 	pod2man --center=" " --release="moreutils" $< > $@;

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071107/6524f889/attachment.html


More information about the macports-changes mailing list