summaryrefslogtreecommitdiff
path: root/textproc/bibparse
diff options
context:
space:
mode:
authorwiz <wiz>2001-07-24 13:47:34 +0000
committerwiz <wiz>2001-07-24 13:47:34 +0000
commit955d99c8da355847ec98ae49db069d34393c24cd (patch)
tree2e16bcd5feb3c80c3de4714ba58eb7cd4a7dd008 /textproc/bibparse
parentd2e02dd996809d2b0d5e85ac415123951652157a (diff)
downloadpkgsrc-955d99c8da355847ec98ae49db069d34393c24cd.tar.gz
Initial import of bibparse, a syntax checking tools for BibTeX
bibliography databases. Package provided by Stoned Elipot in pkg/13514.
Diffstat (limited to 'textproc/bibparse')
-rw-r--r--textproc/bibparse/Makefile15
-rw-r--r--textproc/bibparse/distinfo6
-rw-r--r--textproc/bibparse/patches/patch-aa97
-rw-r--r--textproc/bibparse/patches/patch-ab22
-rw-r--r--textproc/bibparse/pkg/DESCR14
-rw-r--r--textproc/bibparse/pkg/PLIST12
6 files changed, 166 insertions, 0 deletions
diff --git a/textproc/bibparse/Makefile b/textproc/bibparse/Makefile
new file mode 100644
index 00000000000..bb384e0af80
--- /dev/null
+++ b/textproc/bibparse/Makefile
@@ -0,0 +1,15 @@
+# $NetBSD: Makefile,v 1.1.1.1 2001/07/24 13:47:34 wiz Exp $
+#
+
+DISTNAME= bibparse-1.04
+CATEGORIES= textproc
+MASTER_SITES= ftp://ftp.math.utah.edu/pub/tex/bib/
+
+MAINTAINER= seb@pbox.org
+HOMEPAGE= http://www.math.utah.edu/~beebe/software/bibtex-bibliography-tools.html
+COMMENT= syntax checking tools for BibTeX bibliography databases
+
+GNU_CONFIGURE= YES
+USE_BUILDLINK_ONLY= YES
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/textproc/bibparse/distinfo b/textproc/bibparse/distinfo
new file mode 100644
index 00000000000..1e00561ea9a
--- /dev/null
+++ b/textproc/bibparse/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2001/07/24 13:47:34 wiz Exp $
+
+SHA1 (bibparse-1.04.tar.gz) = 807702fd74965a3dc3ea2236a9677d47676fef95
+Size (bibparse-1.04.tar.gz) = 837735 bytes
+SHA1 (patch-aa) = 971dbda54d4586c1feaf4f220a582c8ee0c2b57f
+SHA1 (patch-ab) = facf719e4ea6ad2857b08145857246d4ee871138
diff --git a/textproc/bibparse/patches/patch-aa b/textproc/bibparse/patches/patch-aa
new file mode 100644
index 00000000000..6f6c50e9eff
--- /dev/null
+++ b/textproc/bibparse/patches/patch-aa
@@ -0,0 +1,97 @@
+$NetBSD: patch-aa,v 1.1.1.1 2001/07/24 13:47:34 wiz Exp $
+
+--- Makefile.in.orig Thu Oct 21 18:08:35 1999
++++ Makefile.in
+@@ -62,7 +62,12 @@
+ # [16-Jan-1993]
+ # ======================================================================
+
+-prefix = /usr/local
++prefix = @prefix@
++
++srcdir = @srcdir@
++VPATH = @srcdir@
++
++top_builddir = .
+
+ # Change these to suit local conventions:
+ BINDIR = $(prefix)/bin
+@@ -213,6 +218,15 @@
+
+ NROFF = @NROFF@
+
++INSTALL_PROGRAM = $(BSD_INSTALL_PROGRAM)
++INSTALL_MAN = $(BSD_INSTALL_MAN)
++INSTALL_SCRIPT = $(BSD_INSTALL_SCRIPT)
++INSTALL_DATA = $(BSD_INSTALL_DATA)
++INSTALL_PROGRAM_DIR = $(BSD_INSTALL_PROGRAM_DIR)
++INSTALL_MAN_DIR = $(BSD_INSTALL_MAN_DIR)
++INSTALL_DATA_DIR = $(BSD_INSTALL_DATA_DIR)
++
++
+ # This variable defined to be empty, with the intent that the user can
+ # set it on the make command line at build time to choose fancy
+ # compiler-dependent optimization switches.
+@@ -387,16 +401,13 @@
+
+ all: programs
+
+-bibdup.sh: bibdup.sin Makefile
+- -$(RM) -f $@
+- $(SED) -e 's=_LIBDIR_=$(SHRLIBDIR)=g' \
+- -e 's=_BINDIR_=$(BINDIR)=g' \
+- -e 's=_AWK_=$(AWK)=g' \
+- <bibdup.sin >$@
++bibdup.sh: $(srcdir)/bibdup.sin $(top_builddir)/config.status
++ cd $(top_builddir) \
++ && CONFIG_FILES=$@:bibdup.sin CONFIG_HEADERS= $(SHELL) ./config.status
+ $(CHMOD) 555 $@
+
+ biblex: lexmain.c biblex.c args.h bibyydcl.h token.h
+- $(CC) $(CFLAGS) -o biblex lexmain.c biblex.c $(LDFLAGS) $(LIBS)
++ $(CC) $(CFLAGS) -o biblex $(srcdir)/lexmain.c biblex.c $(LDFLAGS) $(LIBS)
+
+ biblex.c: biblex.l
+
+@@ -555,7 +566,7 @@
+
+ html-files: $(HTML-FILES)
+
+-install: install-programs install-lib install-man install-show
++install: install-programs install-lib install-man
+
+ install-ftp: bibparse.jar bibparse.shr bibparse.tar bibparse.zip \
+ bibparse.zoo uninstall-ftp
+@@ -572,25 +583,23 @@
+ $(LS) -l $(FTPDIR)/bibparse-$(VERSION)*
+
+ install-lib: uninstall-lib
+- -$(MKDIR) $(SHRLIBDIR)
+- $(CP) bibdup.awk $(SHRLIBDIR)/bibdup.awk
+- $(CHMOD) 664 $(SHRLIBDIR)/bibdup.awk
++ -$(INSTALL_DATA_DIR) $(SHRLIBDIR)
++ $(INSTALL_DATA) $(srcdir)/bibdup.awk $(SHRLIBDIR)/bibdup.awk
+
+ install-man: uninstall-man
++ -$(INSTALL_MAN_DIR) $(MANDIR)/man$(MANEXT)
+ for program in $(BASEPROGS) ; \
+ do \
+- $(CP) $$program.man $(MANDIR)/man$(MANEXT)/$$program.1 ; \
+- $(CHMOD) 664 $(MANDIR)/man$(MANEXT)/$$program.1 ; \
++ $(INSTALL_MAN) $(srcdir)/$$program.man $(MANDIR)/man$(MANEXT)/$$program.1 ; \
+ done
+
+ install-programs: $(PROGRAMS) bibdup.sh uninstall-programs
++ -$(INSTALL_PROGRAM_DIR) $(BINDIR)
+ for program in $(PROGRAMS) ; \
+ do \
+- $(CP) $$program $(BINDIR)/$$program ; \
+- $(CHMOD) 775 $(BINDIR)/$$program ; \
++ $(INSTALL_PROGRAM) $$program $(BINDIR)/$$program ; \
+ done ; \
+- $(CP) bibdup.sh $(BINDIR)/bibdup ; \
+- $(CHMOD) 775 $(BINDIR)/bibdup
++ $(INSTALL_SCRIPT) bibdup.sh $(BINDIR)/bibdup
+
+ install-show:
+ @echo ''
diff --git a/textproc/bibparse/patches/patch-ab b/textproc/bibparse/patches/patch-ab
new file mode 100644
index 00000000000..e727a2d05c9
--- /dev/null
+++ b/textproc/bibparse/patches/patch-ab
@@ -0,0 +1,22 @@
+$NetBSD: patch-ab,v 1.1.1.1 2001/07/24 13:47:34 wiz Exp $
+
+--- bibdup.sin.orig Sat May 8 22:05:18 1999
++++ bibdup.sin
+@@ -11,7 +11,10 @@
+ # [08-May-1999] -- update for bibparse 1.04 release
+ # [16-Jan-1993]
+
+-LIBDIR=_LIBDIR_
++prefix=@prefix@
++exec_prefix=@exec_prefix@
++LIBDIR=${prefix}/share/lib/bibdup
++BINDIR=@bindir@
+
+ if test ! -d $LIBDIR
+ then
+@@ -26,4 +29,4 @@
+
+ # NB: Use regexp notation with tr so it works with both System V and
+ # BSD style tr!
+-_BINDIR_/biblex $* | tr '[A-Z]' '[a-z]' | _AWK_ -f $LIBDIR/bibdup.awk
++$BINDIR/biblex $* | tr '[A-Z]' '[a-z]' | @AWK@ -f $LIBDIR/bibdup.awk
diff --git a/textproc/bibparse/pkg/DESCR b/textproc/bibparse/pkg/DESCR
new file mode 100644
index 00000000000..8824a17d2cc
--- /dev/null
+++ b/textproc/bibparse/pkg/DESCR
@@ -0,0 +1,14 @@
+Bibparse, biblex, and bibunlex are programs for doing syntax checking
+on BibTeX bibliography database files.
+
+Biblex lexically analyzes BibTeX bibliography database files and
+produces a lexical token stream from them.
+
+Bibparse verifies a biblex or bibclean (available as a separate
+package) lexical token stream or BibTeX database files.
+
+Bibunlex reconstructs a BibTeX bibliography database file from
+bibclean or biblex lexical analysis output.
+
+Also included in this package is bibdup which checks for duplicate
+abbreviations and entries in BibTeX bibliography database files.
diff --git a/textproc/bibparse/pkg/PLIST b/textproc/bibparse/pkg/PLIST
new file mode 100644
index 00000000000..3b014dba820
--- /dev/null
+++ b/textproc/bibparse/pkg/PLIST
@@ -0,0 +1,12 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2001/07/24 13:47:34 wiz Exp $
+bin/bibdup
+bin/biblex
+bin/bibparse
+bin/bibunlex
+man/man1/bibdup.1
+man/man1/biblex.1
+man/man1/bibparse.1
+man/man1/bibunlex.1
+share/lib/bibdup/bibdup.awk
+@dirrm share/lib/bibdup
+@dirrm share/lib