# -*- 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 compiler_blacklist_versions 1.0 PortGroup boost 1.0 name LyX conflicts LyX1 version 2.3.7 revision 0 set branch [join [lrange [split ${version} .] 0 1] .] categories aqua license GPL-2+ maintainers {khindenburg @kurthindenburg} openmaintainer description WYSIWYM document processor homepage https://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 depends_lib-append port:enchant \ bin:latex:texlive \ port:ImageMagick \ port:hunspell \ port:libmagic \ port:aspell use_xz yes # not sure why they added this "-1" distname lyx-${version}-1 worksrcdir 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/ checksums rmd160 54a5b4cf90e1903516de3ea9da720fc9b3aed567 \ sha256 39be8864fb86b34e88310e70fb80e5e9e296601f0856cf161aa094171718d8ed \ size 16158416 configure.args --disable-silent-rules compiler.cxx_standard 2014 compiler.blacklist-append { clang < 800 } patchfiles-append patch-lyx-applescriptproxy-add-stringh.diff patchfiles-append patch-lyx-linkbackserver-older-nsalert.diff post-configure { reinplace \ "s|\$(MKDIR_P) \$(pkgdatadir)|\ \$(MKDIR_P) \$(DESTDIR)\$(pkgdatadir)|" \ ${worksrcpath}/development/MacOSX/Makefile } if {![variant_isset qt4]} { default_variants +qt5 } # Make the default match boost's default. if {![variant_isset python38] && ![variant_isset python39]} { default_variants-append +python310 } variant python38 conflicts python39 python310 description {Use python38} { depends_build-append port:python38 configure.python ${prefix}/bin/python3.8 } variant python39 conflicts python38 python310 description {Use python39} { depends_build-append port:python39 configure.python ${prefix}/bin/python3.9 } variant python310 conflicts python38 python39 description {Use python310} { depends_build-append port:python310 configure.python ${prefix}/bin/python3.10 } variant qt4 conflicts qt5 description {Use Qt4} { PortGroup qt4 1.0 configure.pre_args --prefix=${applications_dir}/LyX.app configure.args-append \ --without-x \ --without-included-boost \ --enable-optimization=-Os \ --with-version-suffix=-${branch} \ --with-qt-dir=${prefix}/libexec/qt4 } variant qt5 conflicts qt4 description {Use Qt5} { PortGroup qt5 1.0 qt5.depends_component qtbase \ qtmacextras \ qtsvg configure.cxxflags-append -std=c++11 configure.pre_args --prefix=${applications_dir}/LyX.app configure.args-append \ --without-x \ --without-included-boost \ --enable-optimization=-Os \ --with-version-suffix=-${branch} \ --with-qt-dir=${prefix}/libexec/qt5 \ --with-qt-includes=${prefix}/libexec/qt5/include \ --with-qt-libraries=${prefix}/libexec/qt5/lib \ --enable-qt5 } variant debug description {Build with debugging information} { configure.args-append --enable-debug } post-destroot { file delete -force ${destroot}${applications_dir}/LyX.app/Contents/Library/Spotlight } notes " You may want to install texlive-latex-extra if you get errors about missing tex files. It is a very large package. 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"