diff options
| author | Alex Morega | 2012-02-15 21:04:45 +0200 |
|---|---|---|
| committer | Adam Vandenberg | 2012-08-25 15:28:07 -0700 |
| commit | e57b369fa6c0951a76a2b39a0b7b8a4283bc5b97 (patch) | |
| tree | b8bb58d10ca2cf2a0d57d7e872a086ba0bdb7e46 | |
| parent | efaec17212841c2effe8c6dc7baccd143a33a4f7 (diff) | |
| download | homebrew-e57b369fa6c0951a76a2b39a0b7b8a4283bc5b97.tar.bz2 | |
bup 0.25-rc1
Closes #10208.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
| -rw-r--r-- | Library/Formula/bup.rb | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/Library/Formula/bup.rb b/Library/Formula/bup.rb new file mode 100644 index 000000000..6f59eea19 --- /dev/null +++ b/Library/Formula/bup.rb @@ -0,0 +1,58 @@ +require 'formula' + +class Bup < Formula + homepage 'https://github.com/apenwarr/bup' + url 'https://github.com/apenwarr/bup/tarball/bup-0.25-rc1' + version '0.25-rc1' + sha1 '96760b4cca5b4655cb79caaafd2ce2e70a242a7a' + + head 'https://github.com/apenwarr/bup.git', :branch => 'master' + + option "run-tests", "Run unit tests after compilation" + + # patch to make the `--prefix` parameter work + # found at https://github.com/apenwarr/bup/pull/5 + def patches + DATA + end + + def install + ENV['PATH'] = '/usr/bin:' + ENV['PATH'] # make sure we Sytem Python + system "./configure", "--prefix=#{prefix}" + system "make" + system "make test" if build.include? "run-tests" + system "make install" + end +end + + +__END__ +diff --git a/Makefile b/Makefile +index ce91ff0..ecb0604 100644 +--- a/Makefile ++++ b/Makefile +@@ -1,3 +1,4 @@ ++-include config/config.vars + OS:=$(shell uname | sed 's/[-_].*//') + CFLAGS:=-Wall -O2 -Werror $(PYINCLUDE) + SOEXT:=.so +@@ -14,9 +15,6 @@ bup: lib/bup/_version.py lib/bup/_helpers$(SOEXT) cmds + + Documentation/all: bup + +-INSTALL=install +-PYTHON=python +-PREFIX=/usr + MANDIR=$(DESTDIR)$(PREFIX)/share/man + DOCDIR=$(DESTDIR)$(PREFIX)/share/doc/bup + BINDIR=$(DESTDIR)$(PREFIX)/bin +diff --git a/config/config.vars.in b/config/config.vars.in +index 7bc32ee..a45827c 100644 +--- a/config/config.vars.in ++++ b/config/config.vars.in +@@ -1,2 +1,5 @@ + CONFIGURE_FILES=@CONFIGURE_FILES@ + GENERATED_FILES=@GENERATED_FILES@ ++PREFIX=@prefix@ ++INSTALL=@INSTALL@ ++PYTHON=@PYTHON@ |
