pkgsrc/converters/bibtex2html/Makefile

57 lines
1.9 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.32 2012/10/08 15:18:20 jaapb Exp $
DISTNAME= bibtex2html-1.97
PKGREVISION= 2
CATEGORIES= converters
MASTER_SITES= http://www.lri.fr/~filliatr/ftp/bibtex2html/
MAINTAINER= pkgsrc-users@NetBSD.org
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
BUILD_DEPENDS+= hevea-[0-9]*:../../textproc/hevea
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
GNU_CONFIGURE= yes
USE_TOOLS+= perl:run
SUBST_CLASSES+= paths
SUBST_MESSAGE.paths= Fixing hardcoded paths.
SUBST_STAGE.paths= pre-configure
SUBST_FILES.paths= aux2bib.1
SUBST_SED.paths= -e 's,/usr/share,${PREFIX}/share,g'
INSTALLATION_DIRS+= bin ${PKGMANDIR}/man1
INSTALLATION_DIRS+= share/doc/${PKGBASE}
.include "../../lang/ocaml/buildlink3.mk"
post-build:
set -e; \
cd ${WRKSRC} && ${MAKE} doc
- 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:
${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 \
${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
.include "../../mk/bsd.pkg.mk"