# $Id: Portfile 5 2008-11-17 14:29:22Z kimuraw $

PortSystem		1.0
PortGroup		ruby 1.0

name			inplace
version			1.2.2

categories		sysutils
maintainers		kimuraw@i.nifty.jp

description		edits files in-place through given filter commands
long_description	The inplace 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.
homepage		http://www.idaemons.org/projects/inplace/
master_sites	http://www.iDaemons.org/distfiles/
depends_lib-append port:ruby
use_bzip2		yes
checksums		md5 09295632d6677760bd42d7dfdf376458 \
				rmd160 9a03294b6e419eb4d6886b238edf2ccb161eff83 \
				sha1 153f0dc5fa903e3f083257ec3c4407932acfbc35

use_configure	no
build.type		bsd
destroot.target	install
destroot.post_args	PREFIX=${destroot}${prefix} \
				MANPREFIX=${destroot}${prefix}/share

post-build {
	reinplace "s|^#!.*ruby|#!${ruby.bin}|" ${worksrcpath}/inplace.rb
}

