# -*- 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$ PortSystem 1.0 PortGroup qt4 1.0 name LyX conflicts LyX1 version 2.2.2 set branch [join [lrange [split ${version} .] 0 1] .] categories aqua license GPL-2+ maintainers khindenburg openmaintainer description WYSIWYM document processor homepage http://www.lyx.org/ 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. platforms darwin depends_build-append port:bison port:gawk port:cctools \ port:aspell port:hunspell depends_lib-append port:enchant \ bin:latex:texlive \ port:ImageMagick \ port:boost \ port:hunspell \ port:libmagic use_xz yes distname lyx-${version} 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/ checksums rmd160 c3e4d309038aebb8225b62e7cf1e6cf04258f5ff \ sha256 a85c3d7412c4069f8a1f5af4eb172948ae9a50394602f6318ab5c8e990aa5568 configure.pre_args --prefix=${applications_dir}/LyX.app # With 2.2.x, Qt 5.6.x is supported configure.args --with-frontend=qt4 --without-x --with-included-gettext --without-included-boost \ --enable-optimization=-Os --disable-concept-checks \ --with-version-suffix=-${branch} # To be removed after Feb 2017 variant python26 requires python27 description {Legacy compatibility variant} {} variant python27 description {Use python27} { depends_build-append port:python27 configure.python ${prefix}/bin/python2.7 } default_variants +python27 variant debug description {Build with debugging information} { configure.args-append --enable-debug } post-configure { reinplace \ "s|\$(MKDIR_P) \$(pkgdatadir)|\ \$(MKDIR_P) \$(DESTDIR)\$(pkgdatadir)|" \ ${worksrcpath}/development/MacOSX/Makefile } post-destroot { file delete -force ${destroot}${applications_dir}/LyX.app/Contents/Library/Spotlight } notes " With the upgrade to 2.2+, there are a number of important changes. Read ${applications_dir}/${name}.app/Contents/Resources/RELEASE-NOTES for more information. It is advisible to not delete the previous version so that it can be re-activated if there are issues with the new version. https://guide.macports.org/#using.port.upgrade " livecheck.type regex livecheck.url ${homepage} livecheck.regex "${name} (\\d+\\.\\d+\\.\\d+(\\.\\d+)?) released"