summaryrefslogtreecommitdiff
path: root/print/bibtool
diff options
context:
space:
mode:
Diffstat (limited to 'print/bibtool')
-rw-r--r--print/bibtool/DESCR9
-rw-r--r--print/bibtool/Makefile44
-rw-r--r--print/bibtool/PLIST21
-rw-r--r--print/bibtool/distinfo7
-rw-r--r--print/bibtool/patches/patch-aa31
-rw-r--r--print/bibtool/patches/patch-ab10
6 files changed, 122 insertions, 0 deletions
diff --git a/print/bibtool/DESCR b/print/bibtool/DESCR
new file mode 100644
index 00000000000..8131d9c3454
--- /dev/null
+++ b/print/bibtool/DESCR
@@ -0,0 +1,9 @@
+BibTeX provides an easy to use means to integrate citations and
+bibliographies into LaTeX documents. But the user is left alone
+with the management of the BibTeX files. The program BibTool is
+intended to fill this gap. BibTool allows the manipulation of BibTeX
+files which goes beyond the possibilities---and intentions---of
+BibTeX.
+
+BibTool contains a user's manual written in LaTeX of more than 60
+pages (and still growing).
diff --git a/print/bibtool/Makefile b/print/bibtool/Makefile
new file mode 100644
index 00000000000..202085a7b3a
--- /dev/null
+++ b/print/bibtool/Makefile
@@ -0,0 +1,44 @@
+# $NetBSD: Makefile,v 1.1.1.1 2006/03/31 03:11:56 smb Exp $
+DISTNAME= BibTool-2.48
+CATEGORIES= print
+MASTER_SITES= ${MASTER_SITE_TEX_CTAN:=biblio/bibtex/utils/bibtool/}
+
+MAINTAINER= smb@NetBSD.org
+HOMEPAGE= http://www.gerd-neugebauer.de/software/TeX/BibTool.en.html
+COMMENT= Tool to manipulate BibTeX databases
+
+GNU_CONFIGURE= yes
+MAKEFILE= makefile
+#CONFIGURE_DIRS= ${WRKSRC} ${WRKSRC}/BibTcl
+
+REPLACE_INTERPRETER+= tcl
+REPLACE.tcl.old= /usr/local/bin/tclsh
+REPLACE.tcl.new= /usr/pkg/bin/tclsh
+REPLACE_FILES.tcl= Tcl/bibtool.tcl
+REPLACE_PERL+= Perl/bibtool.pl
+
+DOCDIR= ${LOCALBASE}/share/doc/BibTool
+EXAMPLEDIR= ${LOCALBASE}/share/examples/BibTool
+
+TEX_ACCEPTED= teTeX1 teTeX2 teTeX3
+TEX_DEPMETHOD= build
+.include "../../mk/tex.buildlink3.mk"
+
+#pre-configure:
+# rm ${WRKSRC:Q}/BibTcl/Makefile
+# mv ${WRKSRC:Q}/BibTcl/Makefile.in ${WRKSRC:Q}/BibTcl/makefile.in
+
+post-build:
+ cd ${WRKSRC:Q}/Doc && make
+# cd ${WRKSRC:Q}/BibTcl && make
+
+post-install:
+ cd ${WRKSRC:Q} && make install.man
+ ${MKDIR} ${DOCDIR}
+ for i in ${WRKSRC:Q}/Doc/*.dvi; do ${INSTALL_DATA} $$i ${DOCDIR}; done
+ ${MKDIR} ${EXAMPLEDIR}
+ ${INSTALL_DATA} ${WRKSRC:Q}/Perl/bibtool.pl ${EXAMPLEDIR}
+ ${INSTALL_DATA} ${WRKSRC:Q}/Tcl/bibtool.tcl ${EXAMPLEDIR}
+# cd ${WRKSRC:Q}/BibTcl && make install
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/print/bibtool/PLIST b/print/bibtool/PLIST
new file mode 100644
index 00000000000..e3c8e8fdbea
--- /dev/null
+++ b/print/bibtool/PLIST
@@ -0,0 +1,21 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2006/03/31 03:11:56 smb Exp $
+bin/bibtool
+lib/BibTool/braces.rsc
+lib/BibTool/check_y.rsc
+lib/BibTool/default.rsc
+lib/BibTool/field.rsc
+lib/BibTool/improve.rsc
+lib/BibTool/iso2tex.rsc
+lib/BibTool/month.rsc
+lib/BibTool/opt.rsc
+lib/BibTool/sort_fld.rsc
+lib/BibTool/tex_def.rsc
+man/man1/bibtool.1
+share/doc/BibTool/bibtool.dvi
+share/doc/BibTool/c_lib.dvi
+share/doc/BibTool/ref_card.dvi
+share/examples/BibTool/bibtool.pl
+share/examples/BibTool/bibtool.tcl
+@dirrm share/examples/BibTool
+@dirrm share/doc/BibTool
+@dirrm lib/BibTool
diff --git a/print/bibtool/distinfo b/print/bibtool/distinfo
new file mode 100644
index 00000000000..ce04ad77d52
--- /dev/null
+++ b/print/bibtool/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1.1.1 2006/03/31 03:11:56 smb Exp $
+
+SHA1 (BibTool-2.48.tar.gz) = ed4d20823be38f4b90179613049a3be83dc51ab2
+RMD160 (BibTool-2.48.tar.gz) = 7928faf26316ec1e014a4f8234f9510a32d0e6b9
+Size (BibTool-2.48.tar.gz) = 634267 bytes
+SHA1 (patch-aa) = c145084288db91c4fc32ecc45c4205c9ee0a5ff3
+SHA1 (patch-ab) = a57258c20dea53c924f4ecafcb9881db2ac9ee93
diff --git a/print/bibtool/patches/patch-aa b/print/bibtool/patches/patch-aa
new file mode 100644
index 00000000000..f9baf70d6f8
--- /dev/null
+++ b/print/bibtool/patches/patch-aa
@@ -0,0 +1,31 @@
+$NetBSD: patch-aa,v 1.1.1.1 2006/03/31 03:11:56 smb Exp $
+
+--- BibTcl/configure.orig 2006-03-19 11:48:19.000000000 -0500
++++ BibTcl/configure
+@@ -712,7 +712,7 @@ done
+
+ ac_given_srcdir=$srcdir
+
+-trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
++trap 'rm -fr `echo "makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
+ EOF
+ cat >> $CONFIG_STATUS <<EOF
+
+@@ -794,7 +794,7 @@ EOF
+
+ cat >> $CONFIG_STATUS <<EOF
+
+-CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
++CONFIG_FILES=\${CONFIG_FILES-"makefile"}
+ EOF
+ cat >> $CONFIG_STATUS <<\EOF
+ for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
+@@ -834,7 +834,7 @@ for ac_file in .. $CONFIG_FILES; do if t
+ rm -f "$ac_file"
+ configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
+ case "$ac_file" in
+- *Makefile*) ac_comsub="1i\\
++ *makefile*) ac_comsub="1i\\
+ # $configure_input" ;;
+ *) ac_comsub= ;;
+ esac
diff --git a/print/bibtool/patches/patch-ab b/print/bibtool/patches/patch-ab
new file mode 100644
index 00000000000..af4866609ac
--- /dev/null
+++ b/print/bibtool/patches/patch-ab
@@ -0,0 +1,10 @@
+$NetBSD: patch-ab,v 1.1.1.1 2006/03/31 03:11:56 smb Exp $
+
+--- BibTcl/configure.in.orig 2006-03-19 11:48:23.000000000 -0500
++++ BibTcl/configure.in
+@@ -48,4 +48,4 @@ AC_SUBST(TCL_VERSION)
+ TCL_PREFIX=$TCL_PREFIX
+ AC_SUBST(TCL_PREFIX)
+
+-AC_OUTPUT(Makefile)
++AC_OUTPUT(makefile)