summaryrefslogtreecommitdiff
path: root/converters
diff options
context:
space:
mode:
Diffstat (limited to 'converters')
-rw-r--r--converters/bib2xml/DESCR4
-rw-r--r--converters/bib2xml/Makefile22
-rw-r--r--converters/bib2xml/PLIST2
-rw-r--r--converters/bib2xml/distinfo5
-rw-r--r--converters/bib2xml/patches/patch-aa23
5 files changed, 56 insertions, 0 deletions
diff --git a/converters/bib2xml/DESCR b/converters/bib2xml/DESCR
new file mode 100644
index 00000000000..63cb8b110d7
--- /dev/null
+++ b/converters/bib2xml/DESCR
@@ -0,0 +1,4 @@
+Bib2xml converts BibTeX to well formed xml. The package uses Greg Ward's
+great btparse library. The output is a well-formed XML file that is
+almost compatible with bibtexml (besides the order of elements and
+elements that are not supported by bibtexml). It's a flat format, however.
diff --git a/converters/bib2xml/Makefile b/converters/bib2xml/Makefile
new file mode 100644
index 00000000000..625805d9fbb
--- /dev/null
+++ b/converters/bib2xml/Makefile
@@ -0,0 +1,22 @@
+# $NetBSD: Makefile,v 1.1.1.1 2002/11/01 04:25:50 rh Exp $
+#
+
+DISTNAME= bib2xml-10062002
+PKGNAME= ${DISTNAME:C/-(....)(....)/-\2\1/}
+WRKSRC= ${WRKDIR}/bib2xml
+CATEGORIES= converters textproc
+MASTER_SITES= http://www.cs.colorado.edu/~henkel/stuff/bib2xml/
+
+MAINTAINER= packages@netbsd.org
+HOMEPAGE= http://www.cs.colorado.edu/~henkel/stuff/bib2xml/
+COMMENT= BibTeX to XML converter
+
+USE_BUILDLINK2= YES
+GNU_CONFIGURE= YES
+BUILD_DIRS= ${WRKSRC}/progs
+
+do-install:
+ ${INSTALL_PROGRAM} ${BUILD_DIRS}/bib2xml ${PREFIX}/bin
+
+.include "../../textproc/btparse/buildlink2.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/converters/bib2xml/PLIST b/converters/bib2xml/PLIST
new file mode 100644
index 00000000000..9d08ed0981a
--- /dev/null
+++ b/converters/bib2xml/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2002/11/01 04:25:50 rh Exp $
+bin/bib2xml
diff --git a/converters/bib2xml/distinfo b/converters/bib2xml/distinfo
new file mode 100644
index 00000000000..cd56d68c1a4
--- /dev/null
+++ b/converters/bib2xml/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2002/11/01 04:25:50 rh Exp $
+
+SHA1 (bib2xml-10062002.tar.gz) = f7b0c1a2f2bbba84162cd2df674bd9edf9aeaa4f
+Size (bib2xml-10062002.tar.gz) = 302900 bytes
+SHA1 (patch-aa) = debdbf7f04f1b8359f863ad68b9d9ee56b1b5038
diff --git a/converters/bib2xml/patches/patch-aa b/converters/bib2xml/patches/patch-aa
new file mode 100644
index 00000000000..5b9ab24aa36
--- /dev/null
+++ b/converters/bib2xml/patches/patch-aa
@@ -0,0 +1,23 @@
+$NetBSD: patch-aa,v 1.1.1.1 2002/11/01 04:25:50 rh Exp $
+
+--- progs/Makefile.in.orig Tue Sep 24 14:26:50 2002
++++ progs/Makefile.in
+@@ -12,8 +12,8 @@ include ../Makefile.defs # for CC, CFLAG
+ # into the guts of the lexical scanner in order to ferret out the
+ # token stream. Thus, it needs access to the PCCTS header files in
+ # order to compile.
+-LIBDIR = ..
+-CPPFLAGS = -I$(LIBDIR) -I$(LIBDIR)/pccts -I$(LIBDIR)/src
++LIBDIR = ${PREFIX}/lib
++CPPFLAGS = -I.. -I../pccts -I../src
+
+ LIBDIRS = -L$(LIBDIR) $(OTHERLIBDIRS)
+ LIBS = -lbtparse $(OTHERLIBS)
+@@ -46,7 +46,6 @@ dumpnames : $(DNOBJ) lib
+ $(CC) -o $@ $(CFLAGS) $(DNOBJ) $(LDFLAGS)
+
+ lib:
+- cd $(LIBDIR) ; make lib
+
+ clean:
+ rm -f $(BPOBJ) $(BLOBJ) $(DNOBJ) $(BXOBJ) core logfile