2010-05-20 21:14:23 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Bibutils < Formula
|
2012-02-10 03:29:37 +00:00
|
|
|
homepage 'http://sourceforge.net/p/bibutils/home/Bibutils/'
|
2014-03-15 20:24:03 +00:00
|
|
|
url 'https://downloads.sourceforge.net/project/bibutils/bibutils_5.3_src.tgz'
|
|
|
|
sha1 'd592ff4fea53dfc5440dc182204b5955fedb9ea2'
|
2013-09-28 03:55:09 +00:00
|
|
|
|
|
|
|
#fix uint not being defined clang error
|
2014-03-18 03:44:53 +00:00
|
|
|
patch :DATA
|
2010-05-20 21:14:23 +00:00
|
|
|
|
|
|
|
def install
|
2012-05-15 18:31:21 +00:00
|
|
|
system "./configure", "--install-dir", prefix
|
2013-02-03 16:36:36 +00:00
|
|
|
system "make", "CC=#{ENV.cc}"
|
2010-07-28 12:43:21 +00:00
|
|
|
|
2012-02-10 03:29:37 +00:00
|
|
|
cd 'bin' do
|
|
|
|
bin.install %w{bib2xml ris2xml end2xml endx2xml med2xml isi2xml copac2xml
|
|
|
|
biblatex2xml ebi2xml wordbib2xml xml2ads xml2bib xml2end xml2isi xml2ris
|
|
|
|
xml2wordbib modsclean}
|
|
|
|
end
|
2010-05-20 21:14:23 +00:00
|
|
|
end
|
|
|
|
end
|
2013-09-28 03:55:09 +00:00
|
|
|
|
|
|
|
__END__
|
|
|
|
diff --git a/lib/biblatexin.c b/lib/biblatexin.c
|
|
|
|
index 41c51dc..8d6f57a 100644
|
|
|
|
--- a/lib/biblatexin.c
|
|
|
|
+++ b/lib/biblatexin.c
|
|
|
|
@@ -21,6 +21,8 @@
|
|
|
|
#include "reftypes.h"
|
|
|
|
#include "biblatexin.h"
|
|
|
|
|
|
|
|
+#include <sys/types.h>
|
|
|
|
+
|
|
|
|
extern const char progname[];
|
|
|
|
|
|
|
|
static list find = { 0, 0, 0, NULL };
|
|
|
|
diff --git a/lib/bibtexin.c b/lib/bibtexin.c
|
|
|
|
index 5d97832..bce0847 100644
|
|
|
|
--- a/lib/bibtexin.c
|
|
|
|
+++ b/lib/bibtexin.c
|
|
|
|
@@ -21,6 +21,8 @@
|
|
|
|
#include "reftypes.h"
|
|
|
|
#include "bibtexin.h"
|
|
|
|
|
|
|
|
+#include <sys/types.h>
|
|
|
|
+
|
|
|
|
static list find = { 0, 0, 0, NULL };
|
|
|
|
static list replace = { 0, 0, 0, NULL };
|