diff options
| author | Patrick Huck | 2015-01-17 20:15:49 -0800 |
|---|---|---|
| committer | Jack Nagel | 2015-01-31 17:52:50 -0500 |
| commit | 0bab0c809d00699662ec09b76cdf5ddd0f644a2f (patch) | |
| tree | 6c25d8841c088b5e755e7a80aa2cfec4461a5f91 /Library/Formula | |
| parent | 73ae1b1e73707734adf5bf4055b0dc0e87e91fca (diff) | |
| download | homebrew-0bab0c809d00699662ec09b76cdf5ddd0f644a2f.tar.bz2 | |
libxslt: add HEAD
Closes #35986.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/libxslt.rb | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/Library/Formula/libxslt.rb b/Library/Formula/libxslt.rb index 2c37f56b4..325b12cfb 100644 --- a/Library/Formula/libxslt.rb +++ b/Library/Formula/libxslt.rb @@ -17,7 +17,23 @@ class Libxslt < Formula depends_on 'libxml2' + head do + url "git://git.gnome.org/libxslt" + + depends_on "autoconf" => :build + depends_on "automake" => :build + depends_on "libtool" => :build + + # https://bugzilla.gnome.org/show_bug.cgi?id=743148 + patch :DATA + end + def install + if build.head? + ENV["NOCONFIGURE"] = "yes" + system "./autogen.sh" + end + system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}", "--with-libxml-prefix=#{Formula["libxml2"].prefix}" @@ -31,3 +47,56 @@ class Libxslt < Formula EOS end end +__END__ +diff --git a/autogen.sh b/autogen.sh +index 0eeadd3..5e85821 100755 +--- a/autogen.sh ++++ b/autogen.sh +@@ -8,7 +8,7 @@ THEDIR=`pwd` + cd $srcdir + DIE=0 + +-(autoconf --version) < /dev/null > /dev/null 2>&1 || { ++(autoreconf --version) < /dev/null > /dev/null 2>&1 || { + echo + echo "You must have autoconf installed to compile libxslt." + echo "Download the appropriate package for your distribution," +@@ -16,22 +16,6 @@ DIE=0 + DIE=1 + } + +-(libtoolize --version) < /dev/null > /dev/null 2>&1 || { +- echo +- echo "You must have libtool installed to compile libxslt." +- echo "Download the appropriate package for your distribution," +- echo "or see http://www.gnu.org/software/libtool" +- DIE=1 +-} +- +-(automake --version) < /dev/null > /dev/null 2>&1 || { +- echo +- DIE=1 +- echo "You must have automake installed to compile libxslt." +- echo "Download the appropriate package for your distribution," +- echo "or see http://www.gnu.org/software/automake" +-} +- + if test "$DIE" -eq 1; then + exit 1 + fi +@@ -46,14 +30,7 @@ if test -z "$NOCONFIGURE" -a -z "$*"; then + echo "to pass any to it, please specify them on the $0 command line." + fi + +-echo "Running libtoolize..." +-libtoolize --copy --force +-echo "Running aclocal..." +-aclocal $ACLOCAL_FLAGS +-echo "Running automake..." +-automake --add-missing --warnings=all +-echo "Running autoconf..." +-autoconf --warnings=all ++autoreconf -v --force --install -Wall + + cd $THEDIR + |
