Skip to content

Commit

Permalink
LyX: update to 2.4.2 for Qt5; pin Qt4 at 2.3.8
Browse files Browse the repository at this point in the history
We are ignoring expermental Qt6 ATM. Add other python versions.

See: https://trac.macports.org/ticket/70162
  • Loading branch information
kurthindenburg committed Oct 8, 2024
1 parent 468b53c commit c810ce1
Showing 1 changed file with 28 additions and 9 deletions.
37 changes: 28 additions & 9 deletions aqua/LyX/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ PortGroup boost 1.0

name LyX
conflicts LyX1
version 2.3.8
version 2.4.2
revision 0
set branch [join [lrange [split ${version} .] 0 1] .]
categories aqua
Expand Down Expand Up @@ -37,9 +37,9 @@ master_sites http://lyx.cybermirror.org/stable/${branch}.x/ \
ftp://ftp.ntua.gr/pub/X11/LyX/stable/${branch}.x/ \
ftp://ftp.lyx.org/pub/lyx/stable/${branch}.x/

checksums rmd160 80b2c53d12b04dd64a6326b4b1ea505dcb352120 \
sha256 7e8f56d148cb459eb00abbe9c6371744e4ff077b842c0024153a3f094b10d4ad \
size 16412700
checksums rmd160 686630c5fe6d98bb29625e0818d9ad027bdb3814 \
sha256 0d5a75dec9a169ab23bfa47da53ec65c62432de57014de315023d620ebccfe68 \
size 17871168

configure.args --disable-silent-rules

Expand All @@ -55,35 +55,54 @@ post-configure {
${worksrcpath}/development/MacOSX/Makefile
}

# 2.4.x has expermintal support for Qt6 - we are ignoring ATM
if {${os.platform} eq "darwin" && ${os.major} < 11} {
default_variants +qt4
} elseif {![variant_isset qt4]} {
default_variants +qt5
}

# Make the default match boost's default.
if {![variant_isset python38] && ![variant_isset python39]} {
default_variants-append +python310
if {![variant_isset python38] && ![variant_isset python39] &&
![variant_isset python310] && ![variant_isset python311]} {
default_variants-append +python312
}

variant python38 conflicts python39 python310 description {Use python38} {
# TODO: use loops like other ports do
variant python38 conflicts python39 python310 python311 python312 description {Use python38} {
depends_build-append port:python38
configure.python ${prefix}/bin/python3.8
}

variant python39 conflicts python38 python310 description {Use python39} {
variant python39 conflicts python38 python310 python311 python312 description {Use python39} {
depends_build-append port:python39
configure.python ${prefix}/bin/python3.9
}

variant python310 conflicts python38 python39 description {Use python310} {
variant python310 conflicts python38 python39 python311 python312 description {Use python310} {
depends_build-append port:python310
configure.python ${prefix}/bin/python3.10
}

variant python311 conflicts python38 python39 python310 python312 description {Use python311} {
depends_build-append port:python311
configure.python ${prefix}/bin/python3.11
}

variant python312 conflicts python38 python39 python310 python311 description {Use python312} {
depends_build-append port:python312
configure.python ${prefix}/bin/python3.12
}

variant qt4 conflicts qt5 description {Use Qt4} {
PortGroup qt4 1.0

version 2.3.8
revision 0
checksums rmd160 80b2c53d12b04dd64a6326b4b1ea505dcb352120 \
sha256 7e8f56d148cb459eb00abbe9c6371744e4ff077b842c0024153a3f094b10d4ad \
size 16412700

configure.pre_args --prefix=${applications_dir}/LyX.app
configure.args-append \
--without-x \
Expand Down

0 comments on commit c810ce1

Please sign in to comment.