2012-10-08 17:18:20 +02:00
|
|
|
# $NetBSD: Makefile,v 1.32 2012/10/08 15:18:20 jaapb Exp $
|
2004-03-07 06:40:21 +01:00
|
|
|
|
2012-02-10 18:12:48 +01:00
|
|
|
DISTNAME= bibtex2html-1.97
|
2012-10-08 17:18:20 +02:00
|
|
|
PKGREVISION= 2
|
2004-03-07 06:40:21 +01:00
|
|
|
CATEGORIES= converters
|
|
|
|
MASTER_SITES= http://www.lri.fr/~filliatr/ftp/bibtex2html/
|
|
|
|
|
2012-02-10 18:12:48 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2004-03-07 06:40:21 +01:00
|
|
|
HOMEPAGE= http://www.lri.fr/~filliatr/bibtex2html/
|
|
|
|
COMMENT= Collection of tools for translating from BibTeX to HTML
|
Fix build with current ocaml.
While here update to latest version - 1.96
ersion 1.96, September 29, 2010
================================
o option -debug now prints the exact BibTeX commmand which is run
o new option --note-html similar to --note but assuming a bibtex
field already in HTML format
o various little changes in the Makefile requested by the Debian maintainer
Version 1.95, March 23, 2010
============================
o bib2bib: option "--php-output" to produce output as a PHP 2D array
o bib2bib: options "--remove" and "--rename", to remove or rename fields
o new headers with proper copyright
o bib2bib: option "--no-comment", to prevent generation of extra
comments
o fixed support for DOI links: when field "doi" is already an URL, the
DOI prefix is not prepended
o tags "bibtexnumber" and "bibtexitem" are now inserted to ease the
customization using CSS
Version 1.94, 07/05/09
======================
o support for arXiv preprints links: a field "eprint = {xxx}" will be
recognized, if any, and a link to http://arxiv.org/abs/ will be displayed;
option -noeprint turns it off and option -eprintf-prefix <url> sets a
different prefix for the urls (contributed by Ari Stern)
Version 1.93, 12/12/08
======================
o bib2bib: giving '$date' as argument of option -s allows to sort from
oldest to newest entry
o bib2bib: field names in conditions may contain digits and '-' (usefull for
custom fields)
Version 1.92, 08/07/08
======================
o Windows installer (using NSIS nsis.sourceforge.net)
o new bib2bib option --expand-xrefs to perform crossrefs expansion
o option -m (reading macros from a file):
- fixed macro definition with \def
- macros with arguments are now supported
o added accents conversion for tilda, and fixed accents conversion
for \"i, \"\i and such (patch by Samuel Colin)
o fixed bib2bib command line options to accept --warn-error and
--quiet (as described in the manual)
Version 1.91, 20/02/2008
========================
o fixed bug in bib2bib and bibtex2html when quotes (") are used in fields
o fixed bug with -nobibsource and -multiple (bib links on the separate pages)
Version 1.90, 01/02/2008
========================
o bib2bib: = and <> are now case insensitive; use == and != instead
to perform case sensitive comparison
o correctly support $x$$y$ where the central $$ is not passing into
display math mode
o more cases for accent macros \' \~ \. \u \v (patch by John Kewley)
2011-04-01 23:14:53 +02:00
|
|
|
LICENSE= gnu-gpl-v2
|
2004-03-07 06:40:21 +01:00
|
|
|
|
2005-02-14 16:51:10 +01:00
|
|
|
BUILD_DEPENDS+= hevea-[0-9]*:../../textproc/hevea
|
2012-02-10 18:12:48 +01:00
|
|
|
BUILD_DEPENDS+= tex-cm-super-[0-9]*:../../fonts/tex-cm-super
|
|
|
|
BUILD_DEPENDS+= tex-ec-[0-9]*:../../fonts/tex-ec
|
|
|
|
BUILD_DEPENDS+= tex-latex-[0-9]*:../../print/tex-latex
|
|
|
|
BUILD_DEPENDS+= tex-latex-bin-[0-9]*:../../print/tex-latex-bin
|
|
|
|
BUILD_DEPENDS+= tex-preprint-[0-9]*:../../print/tex-preprint
|
|
|
|
BUILD_DEPENDS+= tex-url-[0-9]*:../../print/tex-url
|
|
|
|
DEPENDS+= tex-bibtex-[0-9]*:../../print/tex-bibtex
|
|
|
|
DEPENDS+= web2c-[0-9]*:../../print/web2c
|
2004-03-07 06:40:21 +01:00
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
2005-07-16 03:19:06 +02:00
|
|
|
USE_TOOLS+= perl:run
|
2004-03-07 06:40:21 +01:00
|
|
|
|
2005-02-14 16:51:10 +01:00
|
|
|
SUBST_CLASSES+= paths
|
2006-01-13 10:10:41 +01:00
|
|
|
SUBST_MESSAGE.paths= Fixing hardcoded paths.
|
2005-02-14 16:51:10 +01:00
|
|
|
SUBST_STAGE.paths= pre-configure
|
|
|
|
SUBST_FILES.paths= aux2bib.1
|
|
|
|
SUBST_SED.paths= -e 's,/usr/share,${PREFIX}/share,g'
|
|
|
|
|
2008-01-10 19:15:29 +01:00
|
|
|
INSTALLATION_DIRS+= bin ${PKGMANDIR}/man1
|
|
|
|
INSTALLATION_DIRS+= share/doc/${PKGBASE}
|
2005-06-16 08:57:37 +02:00
|
|
|
|
2012-02-10 18:12:48 +01:00
|
|
|
.include "../../lang/ocaml/buildlink3.mk"
|
|
|
|
|
2005-02-14 16:51:10 +01:00
|
|
|
post-build:
|
Update converters/bibtex2html to 1.88
Changes:
Version 1.88, 20/11/2007
========================
o new option -revkeys to number entries in reverse order
(patch by Walter Guttmann)
o fixed bug with '\ ' (backslash space) introduced in version 1.82
(shows up with -s gerplain)
o \c{C}, \"y, \"Y (patch by John Kewley)
o \k (using unicode entities, patch by John Kewley)
Version 1.87, 16/07/2007
========================
o \hat
o \mathfrak (supported but no font change, as for \mathcal ad \mathbb)
o \~a, \~A, \~o, and \~O
o -- translated to – and --- to —
Version 1.86, 21/03/2007
========================
o more accents macros: \oe \OE \~ \v \' \r
2007-12-01 15:19:35 +01:00
|
|
|
set -e; \
|
2012-02-10 18:12:48 +01:00
|
|
|
cd ${WRKSRC} && ${MAKE} doc
|
2005-02-14 16:51:10 +01:00
|
|
|
|
- Update of bibtex2html from 1.65 to 1.74
- ok'ed minskim
Version 1.74, 22/10/2004
========================
o bib2bib: special characters \n \r \t and \ddd in regular expressions
o fix minor bug: when looking for cross-references, comparison of
keys is now case-insensitive
o footer and bibtex entries now enclosed in HTML paragraphs (<p>...</p>)
o in case of syntax error, the key of the entry where the error
occurred is shown
o new option -no-links to disable weblinks
o fix bug in bib2bib: preamble now enclosed with a single pair of braces
Version 1.72, 3/9/2004
======================
o --help now prints on standard output and exits successfully
o fixed bug with very long keys (when bibtex inserts % to cut lines)
o arguments to macros read from a file (option -m) are discarded
Version 1.71, 24/8/2004
=======================
o improved date sorting algorithm to handle days (e.g. month = "June 29")
o bib2bib: crossrefs are expanded before conditions are checked
o bib2bib: '_' allowed in field identifiers
o added option -w (--warn-error) to stop immediately when a warning
is issued.
Version 1.70, 30/6/2004
=======================
o fixed bug with crossrefs not translated from LaTeX to HTML
is issued.
Version 1.70, 30/6/2004
=======================
o fixed bug with crossrefs not translated from LaTeX to HTML
o macros for Greek letters now translated to HTML entities
Version 1.69, 6/4/2004
======================
o macros \bysame, \MR and \MRhref for AMS* stylew
o modified -bib.html output to circumvent a Konqueror bug
Version 1.68, 16/03/2004
========================
o fixed bug with parentheses-enclosed entries
o macros \relax, \hskip
Version 1.66, 18/02/2004
========================
o characters ( and ) in keys
o New FAQ: pb with quotes under MS Windows
2005-02-04 22:56:14 +01:00
|
|
|
do-install:
|
2008-03-03 06:51:07 +01:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/aux2bib ${DESTDIR}${PREFIX}/bin
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bibtex2html ${DESTDIR}${PREFIX}/bin
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bib2bib ${DESTDIR}${PREFIX}/bin
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/bibtex2html.1 \
|
|
|
|
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/bibtex2html.1 \
|
|
|
|
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/bib2bib.1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/aux2bib.1 \
|
|
|
|
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/aux2bib.1
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/manual.html \
|
|
|
|
${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
|
Fix build with current ocaml.
While here update to latest version - 1.96
ersion 1.96, September 29, 2010
================================
o option -debug now prints the exact BibTeX commmand which is run
o new option --note-html similar to --note but assuming a bibtex
field already in HTML format
o various little changes in the Makefile requested by the Debian maintainer
Version 1.95, March 23, 2010
============================
o bib2bib: option "--php-output" to produce output as a PHP 2D array
o bib2bib: options "--remove" and "--rename", to remove or rename fields
o new headers with proper copyright
o bib2bib: option "--no-comment", to prevent generation of extra
comments
o fixed support for DOI links: when field "doi" is already an URL, the
DOI prefix is not prepended
o tags "bibtexnumber" and "bibtexitem" are now inserted to ease the
customization using CSS
Version 1.94, 07/05/09
======================
o support for arXiv preprints links: a field "eprint = {xxx}" will be
recognized, if any, and a link to http://arxiv.org/abs/ will be displayed;
option -noeprint turns it off and option -eprintf-prefix <url> sets a
different prefix for the urls (contributed by Ari Stern)
Version 1.93, 12/12/08
======================
o bib2bib: giving '$date' as argument of option -s allows to sort from
oldest to newest entry
o bib2bib: field names in conditions may contain digits and '-' (usefull for
custom fields)
Version 1.92, 08/07/08
======================
o Windows installer (using NSIS nsis.sourceforge.net)
o new bib2bib option --expand-xrefs to perform crossrefs expansion
o option -m (reading macros from a file):
- fixed macro definition with \def
- macros with arguments are now supported
o added accents conversion for tilda, and fixed accents conversion
for \"i, \"\i and such (patch by Samuel Colin)
o fixed bib2bib command line options to accept --warn-error and
--quiet (as described in the manual)
Version 1.91, 20/02/2008
========================
o fixed bug in bib2bib and bibtex2html when quotes (") are used in fields
o fixed bug with -nobibsource and -multiple (bib links on the separate pages)
Version 1.90, 01/02/2008
========================
o bib2bib: = and <> are now case insensitive; use == and != instead
to perform case sensitive comparison
o correctly support $x$$y$ where the central $$ is not passing into
display math mode
o more cases for accent macros \' \~ \. \u \v (patch by John Kewley)
2011-04-01 23:14:53 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/manual.pdf \
|
2008-03-03 06:51:07 +01:00
|
|
|
${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
|
- Update of bibtex2html from 1.65 to 1.74
- ok'ed minskim
Version 1.74, 22/10/2004
========================
o bib2bib: special characters \n \r \t and \ddd in regular expressions
o fix minor bug: when looking for cross-references, comparison of
keys is now case-insensitive
o footer and bibtex entries now enclosed in HTML paragraphs (<p>...</p>)
o in case of syntax error, the key of the entry where the error
occurred is shown
o new option -no-links to disable weblinks
o fix bug in bib2bib: preamble now enclosed with a single pair of braces
Version 1.72, 3/9/2004
======================
o --help now prints on standard output and exits successfully
o fixed bug with very long keys (when bibtex inserts % to cut lines)
o arguments to macros read from a file (option -m) are discarded
Version 1.71, 24/8/2004
=======================
o improved date sorting algorithm to handle days (e.g. month = "June 29")
o bib2bib: crossrefs are expanded before conditions are checked
o bib2bib: '_' allowed in field identifiers
o added option -w (--warn-error) to stop immediately when a warning
is issued.
Version 1.70, 30/6/2004
=======================
o fixed bug with crossrefs not translated from LaTeX to HTML
is issued.
Version 1.70, 30/6/2004
=======================
o fixed bug with crossrefs not translated from LaTeX to HTML
o macros for Greek letters now translated to HTML entities
Version 1.69, 6/4/2004
======================
o macros \bysame, \MR and \MRhref for AMS* stylew
o modified -bib.html output to circumvent a Konqueror bug
Version 1.68, 16/03/2004
========================
o fixed bug with parentheses-enclosed entries
o macros \relax, \hskip
Version 1.66, 18/02/2004
========================
o characters ( and ) in keys
o New FAQ: pb with quotes under MS Windows
2005-02-04 22:56:14 +01:00
|
|
|
|
2004-03-07 06:40:21 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|