diff options
| author | Mark A. Matienzo | 2010-09-17 15:39:43 -0400 |
|---|---|---|
| committer | Adam Vandenberg | 2010-09-27 09:27:23 -0700 |
| commit | 1db993d5b08a5bf7d32d58fe9b1d32cf2b003a67 (patch) | |
| tree | 7caad424a6acb24b6f93aafded43028bb7a461a8 /Library | |
| parent | 74351ecdc2d896ec507b7d6f51fc605a08d315b8 (diff) | |
| download | homebrew-1db993d5b08a5bf7d32d58fe9b1d32cf2b003a67.tar.bz2 | |
New formula: bagit
BagIt Library is a Java software library that supports
the creation, manipulation and validation of directories
complying with the BagIt specification. The spec is for
packaging of digital content for transfer. Content is
packaged (the bag) along with a small amount of
machine-readable text (the tag) to help automate the
content's receipt, storage and retrieval.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/bagit.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Library/Formula/bagit.rb b/Library/Formula/bagit.rb new file mode 100644 index 000000000..5eff20ec2 --- /dev/null +++ b/Library/Formula/bagit.rb @@ -0,0 +1,18 @@ +require 'formula' + +class Bagit <Formula + url 'http://downloads.sourceforge.net/project/loc-xferutils/loc-bil-java-library/3.6/bagit-3.6-bin.zip' + homepage 'http://sourceforge.net/project/loc-xferutils' + md5 '37b3ed7c787a1722e8dbe5acdb6298ce' + + skip_clean 'logs' + + def install + prefix.install %w{ LICENSE.txt README.txt conf logs} + libexec.install Dir['lib/*'] + inreplace "bin/bag", "$APP_HOME/lib", "$APP_HOME/libexec" + inreplace "bin/bag.classworlds.conf", "${app.home}/lib", "${app.home}/libexec" + rm "bin/bag.bat" + bin.install Dir['bin/*'] + end +end |
