aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2004-05-01 19:13:05 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2004-05-01 19:13:05 +0000
commit211b52d2ab5ebd670632ac2ee997701b60c5e582 (patch)
treed325c4279d3a809ccfdd090dd47a08d306beb3aa
parent1a4bab358caac14a6ea4a8fbd2a447b621388bb4 (diff)
downloadports-211b52d2ab5ebd670632ac2ee997701b60c5e582.tar.gz
ports-211b52d2ab5ebd670632ac2ee997701b60c5e582.zip
Notes
-rw-r--r--misc/Makefile1
-rw-r--r--misc/inplace/Makefile36
-rw-r--r--misc/inplace/distinfo2
-rw-r--r--misc/inplace/pkg-descr14
4 files changed, 53 insertions, 0 deletions
diff --git a/misc/Makefile b/misc/Makefile
index a847a6fd28c6..e038a8700f05 100644
--- a/misc/Makefile
+++ b/misc/Makefile
@@ -143,6 +143,7 @@
SUBDIR += histring
SUBDIR += hotkeys
SUBDIR += hulgalugha
+ SUBDIR += inplace
SUBDIR += instant-server
SUBDIR += instant-workstation
SUBDIR += iselect
diff --git a/misc/inplace/Makefile b/misc/inplace/Makefile
new file mode 100644
index 000000000000..647a32301b97
--- /dev/null
+++ b/misc/inplace/Makefile
@@ -0,0 +1,36 @@
+# New ports collection makefile for: inplace(1)
+# Date created: 2 May 2004
+# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= inplace
+PORTVERSION= 1.0.1
+CATEGORIES= misc
+MASTER_SITES= ftp://ftp.iDaemons.org/pub/distfiles/ \
+ ${MASTER_SITE_LOCAL}
+MASTER_SITE_SUBDIR= knu
+
+MAINTAINER= knu@FreeBSD.org
+COMMENT= A tool to edit files in-place through given filter commands
+
+USE_BZIP2= yes
+USE_RUBY= yes
+
+MAKE_ARGS= PREFIX="${PREFIX}"
+MAKEFILE= BSDmakefile
+
+MAN1= inplace.1
+MANCOMPRESSED= maybe
+PLIST_FILES= bin/inplace
+
+RUBY_REQUIRE= Ruby > 180
+
+.include <bsd.port.pre.mk>
+
+.if !defined(RUBY_PROVIDED)
+IGNORE= only works with Ruby 1.8.0 or later
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/misc/inplace/distinfo b/misc/inplace/distinfo
new file mode 100644
index 000000000000..6887ffcbc6d1
--- /dev/null
+++ b/misc/inplace/distinfo
@@ -0,0 +1,2 @@
+MD5 (inplace-1.0.1.tar.bz2) = 9e37507000b72c5c42a93645b39f64e4
+SIZE (inplace-1.0.1.tar.bz2) = 10006
diff --git a/misc/inplace/pkg-descr b/misc/inplace/pkg-descr
new file mode 100644
index 000000000000..226f1487f0cf
--- /dev/null
+++ b/misc/inplace/pkg-descr
@@ -0,0 +1,14 @@
+The inplace(1) command is a utility to edit files in-place through
+given filter commands preserving the original file attributes. Mode
+and ownership (user and group) are preserved by default, and time
+(access and modification) by choice.
+
+Examples:
+ # Sort files in-place using sort(1):
+ inplace sort file1 file2 file3
+
+ # Process image files preserving time and taking backup files:
+ inplace -t -b.orig 'convert -rotate 270 -resize 50%% %1 %2' *.jpg
+
+Author: Akinori MUSHA <knu@iDaemons.org>
+WWW: http://www.iDaemons.org/cgi-bin/viewcvs.cgi/?root=inplace