Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

9
print/bibtool/DESCR Normal file
View File

@@ -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).

52
print/bibtool/Makefile Normal file
View File

@@ -0,0 +1,52 @@
# $NetBSD: Makefile,v 1.13 2012/12/24 01:51:20 dholland Exp $
DISTNAME= BibTool-2.48
PKGREVISION= 1
CATEGORIES= print
MASTER_SITES= ${MASTER_SITE_TEX_CTAN:=biblio/bibtex/utils/bibtool/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.gerd-neugebauer.de/software/TeX/BibTool.en.html
COMMENT= Tool to manipulate BibTeX databases
LICENSE= gnu-gpl-v1
BUILD_DEPENDS+= tex-bibtex-[0-9]*:../../print/tex-bibtex
BUILD_DEPENDS+= tex-latex-bin-[0-9]*:../../print/tex-latex-bin
BUILD_DEPENDS+= tex-tools-[0-9]*:../../print/tex-tools
BUILD_DEPENDS+= makeindexk-[0-9]*:../../textproc/makeindexk
GNU_CONFIGURE= yes
MAKE_FILE= makefile
#CONFIGURE_DIRS= ${WRKSRC} ${WRKSRC}/BibTcl
REPLACE_INTERPRETER+= tcl
REPLACE.tcl.old= /usr/local/bin/tclsh
REPLACE.tcl.new= ${PREFIX}/bin/tclsh
REPLACE_FILES.tcl= Tcl/bibtool.tcl
REPLACE_PERL+= Perl/bibtool.pl
DOCDIR= ${PREFIX}/share/doc/BibTool
EXAMPLEDIR= ${PREFIX}/share/examples/BibTool
INSTALL_MAKE_FLAGS= prefix=${DESTDIR}${PREFIX} \
MANDIR=${DESTDIR}${PREFIX}/${PKGMANDIR}
INSTALL_TARGET= install install.man
INSTALLATION_DIRS= ${DOCDIR} ${EXAMPLEDIR}
#pre-configure:
# rm ${WRKSRC}/BibTcl/Makefile
# mv ${WRKSRC}/BibTcl/Makefile.in ${WRKSRC}/BibTcl/makefile.in
post-build:
cd ${WRKSRC}/Doc && ${MAKE}
# cd ${WRKSRC}/BibTcl && ${MAKE}
post-install:
set -e; for i in ${WRKSRC}/Doc/*.dvi; do \
${INSTALL_DATA} "$$i" ${DESTDIR}${DOCDIR}; \
done
${INSTALL_DATA} ${WRKSRC}/Perl/bibtool.pl ${DESTDIR}${EXAMPLEDIR}
${INSTALL_DATA} ${WRKSRC}/Tcl/bibtool.tcl ${DESTDIR}${EXAMPLEDIR}
# cd ${WRKSRC}/BibTcl && make install
.include "../../mk/bsd.pkg.mk"

18
print/bibtool/PLIST Normal file
View File

@@ -0,0 +1,18 @@
@comment $NetBSD: PLIST,v 1.2 2009/06/14 18:11:54 joerg 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

11
print/bibtool/distinfo Normal file
View File

@@ -0,0 +1,11 @@
$NetBSD: distinfo,v 1.2 2012/12/24 01:50:57 dholland 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
SHA1 (patch-configure) = 6762349941de9086711fe9ec988f4f5784dd5d65
SHA1 (patch-main.c) = 26fa84025ae93002ae73d42d78f52640d713f705
SHA1 (patch-parse.c) = 5e9371428c4fe8324703ed97bff0283d03f6d441
SHA1 (patch-regex-0.12_regex.c) = ebffe11aec2c1ff40b4f4c41c3b9342c9426ea7a

View File

@@ -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

View File

@@ -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)

View File

@@ -0,0 +1,17 @@
$NetBSD: patch-configure,v 1.1 2012/12/24 01:50:57 dholland Exp $
Disable a highly obsolete configure test that exercises undefined
behavior.
--- configure~ 2012-12-24 01:44:27.000000000 +0000
+++ configure
@@ -2789,7 +2789,8 @@ fi
if test $ac_cv_header_stdc = yes; then
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
- if test "$cross_compiling" = yes; then
+ # disabled 20121222, IRIX 4 is long dead and this test exercises UB.
+ if true; then
:
else
cat >conftest.$ac_ext <<_ACEOF

View File

@@ -0,0 +1,19 @@
$NetBSD: patch-main.c,v 1.1 2012/12/24 01:50:57 dholland Exp $
Remove wrong casts.
--- main.c~ 2004-02-08 09:41:38.000000000 +0000
+++ main.c
@@ -789,10 +789,10 @@ static int update_crossref(db,rec) /
/* */
t = *++hp; t++; /* */
(void)sp_open(t); /* Try to extract */
- if ( (s = SParseSymbol(&t)) == (Uchar)NULL ) /* the crossref as symbol*/
+ if ( (s = SParseSymbol(&t)) == NULL ) /* the crossref as symbol*/
{ return 0; } /* */
/* */
- if ( (s = db_new_key(db,s)) == (Uchar)NULL ) /* */
+ if ( (s = db_new_key(db,s)) == NULL ) /* */
{ ERROR2("Crossref not found: ",(char*)s); /* */
return 0; /* */
} /* */

View File

@@ -0,0 +1,23 @@
$NetBSD: patch-parse.c,v 1.1 2012/12/24 01:50:58 dholland Exp $
Fix bug handling EOF, detected by gcc.
--- parse.c~ 2004-02-08 09:41:45.000000000 +0000
+++ parse.c
@@ -533,13 +533,15 @@ static void parse_number() /*
static int parse_string(quotep) /* */
int quotep; /* */
{ Uchar c; /* */
+ int c1; /* */
int left; /* */
int start_flno = flno; /* */
/* */
left = 0; /* */
if ( quotep ) (void)sbputchar('"',parse_sb); /*" */
do /* */
- { switch ( c=skip_nl() ) /* */
+ { c=c1=skip_nl(); /* */
+ switch ( c1 ) /* */
{ case EOF: /* */
UnterminatedError("Unterminated double quote",
start_flno);

View File

@@ -0,0 +1,67 @@
$NetBSD: patch-regex-0.12_regex.c,v 1.1 2012/12/24 01:50:58 dholland Exp $
Use the right config.h. This package misuses autoconf fairly
extensively, and has its own config.h with its own config in it where
where autoconf packages would normally put autoconf's output config.h.
Also patch up some integer/pointer casts.
--- regex-0.12/regex.c.orig 2000-12-16 09:49:55.000000000 +0000
+++ regex-0.12/regex.c
@@ -30,7 +30,7 @@
#include <sys/types.h>
#ifdef HAVE_CONFIG_H
-#include "config.h"
+#include "bibtool/config.h"
#endif
/* The `emacs' switch turns on certain matching commands
@@ -65,9 +65,12 @@
#ifdef STDC_HEADERS
#include <stdlib.h>
+#include <stdint.h>
#else
char *malloc ();
char *realloc ();
+typedef long intptr_t;
+typedef unsigned long uintptr_t;
#endif
@@ -2404,10 +2407,10 @@ typedef struct
} \
\
DEBUG_PRINT2 (" Pushing low active reg: %d\n", lowest_active_reg);\
- PUSH_FAILURE_ITEM (lowest_active_reg); \
+ PUSH_FAILURE_ITEM ((uintptr_t)lowest_active_reg); \
\
DEBUG_PRINT2 (" Pushing high active reg: %d\n", highest_active_reg);\
- PUSH_FAILURE_ITEM (highest_active_reg); \
+ PUSH_FAILURE_ITEM ((uintptr_t)highest_active_reg); \
\
DEBUG_PRINT2 (" Pushing pattern 0x%x: ", pattern_place); \
DEBUG_PRINT_COMPILED_PATTERN (bufp, pattern_place, pend); \
@@ -2492,10 +2495,10 @@ typedef struct
DEBUG_PRINT_COMPILED_PATTERN (bufp, pat, pend); \
\
/* Restore register info. */ \
- high_reg = (unsigned) POP_FAILURE_ITEM (); \
+ high_reg = (unsigned)(uintptr_t) POP_FAILURE_ITEM (); \
DEBUG_PRINT2 (" Popping high active reg: %d\n", high_reg); \
\
- low_reg = (unsigned) POP_FAILURE_ITEM (); \
+ low_reg = (unsigned)(uintptr_t) POP_FAILURE_ITEM (); \
DEBUG_PRINT2 (" Popping low active reg: %d\n", low_reg); \
\
for (this_reg = high_reg; this_reg >= low_reg; this_reg--) \
@@ -3762,7 +3765,7 @@ re_match_2 (bufp, string1, size1, string
regstart[r] = old_regstart[r];
/* xx why this test? */
- if ((int) old_regend[r] >= (int) regstart[r])
+ if ((intptr_t) old_regend[r] >= (intptr_t) regstart[r])
regend[r] = old_regend[r];
}
}