require 'formula' class Webfs < Formula url 'http://dl.bytesex.org/releases/webfs/webfs-1.21.tar.gz' homepage 'http://linux.bytesex.org/misc/webfs.html' sha1 'a38880d8cb21e415244d220115ede7b573ac890c' def patches {:p0 => "https://trac.macports.org/export/21504/trunk/dports/www/webfs/files/patch-ls.c"} end def install ENV["prefix"]=prefix system "make install mimefile=/etc/apache2/mime.types" end end