# -*- 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 75463 2011-01-25 20:11:12Z dports@macports.org $

PortSystem          1.0

name                luatex
version             0.65.0
categories          tex
maintainers         gundla.ch:patrick
description         TeX system programmable in Lua
long_description    LuaTeX is the successor of PDFTeX, Aleph and Omega. \
                    It is a typesetting system based on TeX but full \
                    unicode aware and programmable in Lua. This package \
                    provides luatex and texlua binaries only. It is not \
                    a full featured TeX installation. That means, you \
                    have to take care of format generation etc.
homepage            http://luatex.org/
platforms           darwin
use_bzip2           yes
use_configure       no
distname            ${name}-beta-${version}-source
worksrcdir          ${name}-beta-${version}
master_sites        http://foundry.supelec.fr/gf/download/frsrelease/386/1704/
checksums           md5 7089d840cef28cd220e6b7bad0a8f78b \
                    sha1 5d01dc1dbc46b8c654ca5a45f3b537cae8a2cf6d \
                    rmd160 c23ac8c3cc26c9064f099c5789ae64edd22fc1a7
build.cmd           ./build.sh
build.args          --parallel
build.env           CC=${configure.cc} \
                    CXX=${configure.cxx}
build.target
destroot {
    xinstall -m 755 ${worksrcpath}/build/texk/web2c/luatex ${destroot}${prefix}/bin
    ln -s luatex ${destroot}${prefix}/bin/texlua
}
