2010-06-02 20:46:57 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Renameutils < Formula
|
2010-06-02 20:46:57 +00:00
|
|
|
homepage 'http://www.nongnu.org/renameutils/'
|
2012-03-31 18:38:45 +00:00
|
|
|
url 'http://nongnu.uib.no/renameutils/renameutils-0.11.0.tar.gz'
|
|
|
|
md5 'a3258f875d6077a06b6889de3a317dce'
|
|
|
|
|
|
|
|
depends_on 'readline' # Use instead of system libedit
|
2012-03-31 19:10:28 +00:00
|
|
|
depends_on 'coreutils'
|
|
|
|
|
|
|
|
# Use the GNU versions of certain system utilities. See:
|
|
|
|
# https://trac.macports.org/ticket/24525
|
|
|
|
def patches
|
|
|
|
{ :p0 =>
|
|
|
|
"https://trac.macports.org/export/91404/trunk/dports/sysutils/renameutils/files/patch-use_coreutils.diff"
|
|
|
|
}
|
|
|
|
end
|
2010-06-02 20:46:57 +00:00
|
|
|
|
|
|
|
def install
|
2012-03-31 18:38:45 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--with-packager=Homebrew"
|
2011-12-09 19:48:01 +00:00
|
|
|
system "make"
|
|
|
|
ENV.deparallelize # parallel install fails
|
|
|
|
system "make install"
|
2010-06-02 20:46:57 +00:00
|
|
|
end
|
|
|
|
end
|