Skip to content

Instantly share code, notes, and snippets.

@jkrup
Created June 23, 2012 08:12
Show Gist options
  • Save jkrup/2977514 to your computer and use it in GitHub Desktop.
Save jkrup/2977514 to your computer and use it in GitHub Desktop.
ikiwiki brew formula
require 'formula'
class Ikiwiki < Formula
url 'http://ftp.de.debian.org/debian/pool/main/i/ikiwiki/ikiwiki_3.20120516.tar.gz'
homepage 'http://ikiwiki.info/'
head 'git://git.ikiwiki.info/'
depends_on 'Text::Markdown' => :perl
depends_on 'URI' => :perl
depends_on 'HTML::Parser' => :perl
depends_on 'HTML::Scrubber' => :perl
depends_on 'CGI::Session' => :perl
depends_on 'HTML::Template' => :perl
depends_on 'Mail::Sendmail' => :perl
unless ARGV.build_head?
md5 '822547f8861a3080fafc46a0c7a641f3'
end
def caveats; <<-EOS.undent
ikiwiki is best installed from HEAD using git. The configuration file for
the wiki has the version encoded into the path. If you choose to use the
HEAD version and update ikiwiki, you will not have to update your wiki
config files.
brew install --HEAD ikiwiki
System wide setup files are installed in /etc/ikiwiki. If you choose to
not install as root, either download the auto.setup file from
<http://git.ikiwiki.info/?p=ikiwiki;a=tree> or setup the wiki by hand
using these instructions <http://ikiwiki.info/setup/byhand/>.
EOS
end
def install
system "perl Makefile.PL PREFIX=#{prefix}"
# system "cmake . #{std_cmake_parameters}"
system "make"
system "make install"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment