# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0

name                bibtex2html
version             1.99
revision            1
categories          textproc www
platforms           darwin
license             GPL-2
maintainers         nomaintainer

description         Bibtex to HTML translator
long_description    bibtex2html is a collection of tools for \
    translating from BibTeX to HTML. They allow to \
    produce, from a set of bibliography files in \
    BibTeX format, a bibliography in HTML format.

homepage            https://github.com/backtracking/bibtex2html
# Upstream moved from lri.fr to GitHub. The 1.99 release is tagged "v-1-99"
# (unlike the earlier v1.98/v1.97 tags), so the download directory is pinned.
# Unclear if this is a new pattern; we'll see with the next release...
master_sites        https://github.com/backtracking/bibtex2html/releases/download/v-1-99/

checksums           rmd160  63bec08dcbdb531b4fd233575dd156520ffbfd3c \
                    sha256  d224dadd97f50199a358794e659596a3b3c38c7dc23e86885d7b664789ceff1d \
                    size    93073

patchfiles          patch-aux2bib.1.diff

installs_libs       no

depends_build       port:hevea \
                    port:ocaml \
                    bin:pdflatex:texlive-latex \
                    port:texlive-latex-extra \
                    port:texlive-fonts-recommended

depends_run         bin:bibtex:texlive-basic

configure.args      --mandir=${destroot}${prefix}/share/man

destroot.target     install
destroot.destdir    prefix=${destroot}${prefix}

universal_variant   no

livecheck.type      regex
livecheck.url       https://api.github.com/repos/backtracking/bibtex2html/releases/latest
livecheck.regex     {bibtex2html-([0-9.]+)\.tar\.gz}
