# -*- 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
# $Id: Portfile 84389 2011-09-25 07:14:28Z dports@macports.org $

PortSystem 1.0

name            xindy
version         2.4

categories      tex textproc
license         GPL-2+
maintainers     dports
description     framework for generating indexes
long_description \
  xindy is an index processor that can be used to generate book-like \
  indexes for arbitrary document-preparation systems. This includes \
  systems such as TeX and LaTeX, the roff-family, SGML/XML-based systems \
  (e.g., HTML) that process some kind of text and generate indexing \
  information.  In comparison to other index processors xindy has \
  several powerful features that make it an ideal framework for \
  describing and generating complex indices, addressing especially \
  international indexing.

platforms       darwin
homepage        http://www.xindy.org/
master_sites    tex_ctan:indexing/${name}/base/

# requires clisp, which does not support 64-bit
supported_archs i386 ppc

depends_lib     port:clisp

checksums       md5     0f7fc5e6954a41cd89b66023e755ef5e \
                sha1    5f49f4cea23efc293be9305b774e56356f9eb0d9 \
                rmd160  a5d91e0cadb191ff5169a3e7c659d087d4660808

patchfiles      patch-make-rules_alphabets_Makefile.am.diff \
                patch-make-rules_inputenc_Makefile.am.diff \
                patch-configure.ac.diff

use_autoreconf  yes
configure.args  --disable-docs

variant doc description "Build documentation" {
    depends_build-append port:texlive-latex-recommended \
                         port:texlive-latex-extra \
                         port:texlive-lang-cyrillic

    configure.args-delete --disable-docs
}

default_variants +doc

livecheck.type  regex
livecheck.url   http://www.ctan.org/tex-archive/indexing/xindy/base/
livecheck.regex "${name}-(\[0-9.\]+)${extract.suffix}"

