summaryrefslogtreecommitdiff
path: root/textproc/p5-Text-BibTeX
diff options
context:
space:
mode:
authorjtb <jtb>2001-02-27 23:39:55 +0000
committerjtb <jtb>2001-02-27 23:39:55 +0000
commitfb89638dc264ff5f5785be6deaf7a613e7dce077 (patch)
treef1de8599263984b98edca22b286d00c241260dae /textproc/p5-Text-BibTeX
parente1657d6f6a90b309da36bba9d850ab986a8d9762 (diff)
downloadpkgsrc-fb89638dc264ff5f5785be6deaf7a613e7dce077.tar.gz
Initial import of p5-Text-BibTeX:
Perl library for reading, parsing, and processing BibTeX files Package submitted by Mark Davies (mark@MCS.VUW.AC.NZ) in PR 12061. Trivial modifications by me.
Diffstat (limited to 'textproc/p5-Text-BibTeX')
-rw-r--r--textproc/p5-Text-BibTeX/Makefile19
-rw-r--r--textproc/p5-Text-BibTeX/files/md54
-rw-r--r--textproc/p5-Text-BibTeX/files/patch-sum4
-rw-r--r--textproc/p5-Text-BibTeX/patches/patch-aa31
-rw-r--r--textproc/p5-Text-BibTeX/patches/patch-ab22
-rw-r--r--textproc/p5-Text-BibTeX/pkg/DESCR12
-rw-r--r--textproc/p5-Text-BibTeX/pkg/PLIST1
7 files changed, 93 insertions, 0 deletions
diff --git a/textproc/p5-Text-BibTeX/Makefile b/textproc/p5-Text-BibTeX/Makefile
new file mode 100644
index 00000000000..3d81f4ca47e
--- /dev/null
+++ b/textproc/p5-Text-BibTeX/Makefile
@@ -0,0 +1,19 @@
+# $NetBSD: Makefile,v 1.1.1.1 2001/02/27 23:39:55 jtb Exp $
+
+DISTNAME= Text-BibTeX-0.33
+PKGNAME= p5-${DISTNAME}
+CATEGORIES= textproc perl5
+MASTER_SITES= ${MASTER_SITE_TEX_CTAN:=biblio/bibtex/utils/btOOL/}
+DISTFILES+= ${DISTNAME}.tar.gz btparse-0.32.tar.gz
+
+MAINTAINER= packages@netbsd.org
+HOMEPAGE= http://starship.python.net/~gward/btOOL/
+COMMENT= Perl library for reading, parsing, and processing BibTeX files
+
+USE_PERL5= # defined
+PERL5_PACKLIST= ${PERL5_SITEARCH}/auto/Text/BibTeX/.packlist
+
+do-configure:
+ @cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PERL5} Makefile.PL
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/textproc/p5-Text-BibTeX/files/md5 b/textproc/p5-Text-BibTeX/files/md5
new file mode 100644
index 00000000000..403b95ff79e
--- /dev/null
+++ b/textproc/p5-Text-BibTeX/files/md5
@@ -0,0 +1,4 @@
+$NetBSD: md5,v 1.1.1.1 2001/02/27 23:39:55 jtb Exp $
+
+MD5 (Text-BibTeX-0.33.tar.gz) = 5ddc27a7f87e99ba75aabf88ea38ff61
+MD5 (btparse-0.32.tar.gz) = fd4cb0d69284f302b330e48549d1558b
diff --git a/textproc/p5-Text-BibTeX/files/patch-sum b/textproc/p5-Text-BibTeX/files/patch-sum
new file mode 100644
index 00000000000..9e28f031594
--- /dev/null
+++ b/textproc/p5-Text-BibTeX/files/patch-sum
@@ -0,0 +1,4 @@
+$NetBSD: patch-sum,v 1.1.1.1 2001/02/27 23:39:55 jtb Exp $
+
+MD5 (patch-aa) = c302458b28d00096c738163b5bcebe91
+MD5 (patch-ab) = a233d29602fa8182af1aecead30a4796
diff --git a/textproc/p5-Text-BibTeX/patches/patch-aa b/textproc/p5-Text-BibTeX/patches/patch-aa
new file mode 100644
index 00000000000..d0cfaad36bf
--- /dev/null
+++ b/textproc/p5-Text-BibTeX/patches/patch-aa
@@ -0,0 +1,31 @@
+$NetBSD: patch-aa,v 1.1.1.1 2001/02/27 23:39:55 jtb Exp $
+
+--- BibTeX.xs~ Wed Oct 6 14:56:46 1999
++++ BibTeX.xs Fri Sep 15 23:49:59 2000
+@@ -29,6 +29,8 @@
+ #include "perl.h"
+ #include "XSUB.h"
+
++#define na PL_na
++
+ #define BT_DEBUG 0
+
+ #include "btparse.h"
+@@ -49,7 +51,7 @@
+ if (constant(name, &i))
+ ST(0) = sv_2mortal(newSViv(i));
+ else
+- ST(0) = &sv_undef;
++ ST(0) = &PL_sv_undef;
+
+
+ MODULE = Text::BibTeX PACKAGE = Text::BibTeX PREFIX = bt_
+@@ -96,7 +98,7 @@
+ for (i = 0; i < names->num_items; i++)
+ {
+ if (names->items[i] == NULL)
+- sv_name = &sv_undef;
++ sv_name = &PL_sv_undef;
+ else
+ sv_name = sv_2mortal (newSVpv (names->items[i], 0));
+
diff --git a/textproc/p5-Text-BibTeX/patches/patch-ab b/textproc/p5-Text-BibTeX/patches/patch-ab
new file mode 100644
index 00000000000..fa4511798e7
--- /dev/null
+++ b/textproc/p5-Text-BibTeX/patches/patch-ab
@@ -0,0 +1,22 @@
+$NetBSD: patch-ab,v 1.1.1.1 2001/02/27 23:39:55 jtb Exp $
+
+--- btxs_support.c~ Thu Mar 23 14:09:25 2000
++++ btxs_support.c Fri Sep 15 23:41:44 2000
+@@ -160,7 +160,7 @@
+
+ DBG_ACTION (2, printf (" field=%s, value=\"%s\"\n",
+ field_name, text));
+- sv_field_value = text ? newSVpv (text, 0) : &sv_undef;
++ sv_field_value = text ? newSVpv (text, 0) : &PL_sv_undef;
+ }
+
+ return sv_field_value;
+@@ -297,7 +297,7 @@
+ else
+ {
+ value = bt_get_text (top);
+- sv_value = value ? newSVpv (value, 0) : &sv_undef;
++ sv_value = value ? newSVpv (value, 0) : &PL_sv_undef;
+ }
+ hv_store (entry, "value", 5, sv_value, 0);
+
diff --git a/textproc/p5-Text-BibTeX/pkg/DESCR b/textproc/p5-Text-BibTeX/pkg/DESCR
new file mode 100644
index 00000000000..3d78c633da4
--- /dev/null
+++ b/textproc/p5-Text-BibTeX/pkg/DESCR
@@ -0,0 +1,12 @@
+Text::BibTeX is a Perl library for reading, parsing, and processing
+BibTeX files. It is the Perl half of btOOL, a pair of libraries for
+dealing with BibTeX data; the C half, btparse, is needed to compile
+Text::BibTeX.
+
+Text::BibTeX gives you access to the data at many different levels: you
+may work with BibTeX entries as simple "field -> string" mappings, or
+get at the original form of the data as a list of simple values
+(strings, macros, or numbers) pasted together. You can impose no
+restrictions on the allowed/expected entry types or fields, or you can
+use the structure defined by BibTeX 0.99's standard style files, or you
+can invent your own.
diff --git a/textproc/p5-Text-BibTeX/pkg/PLIST b/textproc/p5-Text-BibTeX/pkg/PLIST
new file mode 100644
index 00000000000..e4f426cab52
--- /dev/null
+++ b/textproc/p5-Text-BibTeX/pkg/PLIST
@@ -0,0 +1 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2001/02/27 23:39:55 jtb Exp $