# -*- 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
PortGroup           qt4 1.0

name                LyX1
version             1.6.10
revision            3
categories          aqua
platforms           darwin
license             GPL-2+
maintainers         nomaintainer

description         WYSIWYM document processor
long_description    LyX is an advanced open source document processor \
                    that encourages an approach to writing based on \
                    the structure of your documents, not their \
                    appearance. LyX lets you concentrate on writing, \
                    leaving details of visual layout to the software.
homepage            http://www.lyx.org/

conflicts           LyX

depends_build-append    port:python27
depends_lib-append      bin:tex:texlive \
                        port:ImageMagick

set branch [join [lrange [split ${version} .] 0 1] .]

master_sites        http://lyx.cybermirror.org/stable/${branch}.x/ \
                    http://sunsite.icm.edu.pl/pub/unix/editors/lyx/stable/${branch}.x/ \
                    ftp://ftp.ntua.gr/pub/X11/LyX/stable/${branch}.x/ \
                    ftp://ftp.lyx.org/pub/lyx/stable/${branch}.x/ \
                    http://gd.tuwien.ac.at/publishing/tex/lyx/stable/${branch}.x/
distname            lyx-${version}
use_bzip2           yes
checksums           rmd160  b84409c19d320f915c3254d56d8aa0b40e61540d \
                    sha256  dcfb6fc0f6880e706d45ea16459ed2206265179f3882b4685e4955c18adaf569

patchfiles          patch-configure.diff

configure.python    ${prefix}/bin/python2.7
configure.pre_args  --prefix=${applications_dir}/LyX.app
configure.args      --with-frontend=qt4 --without-x --with-included-gettext \
                    --enable-optimization=-Os --disable-concept-checks \
                    --with-version-suffix=-${branch}

livecheck.type      none
