Skip to content

Commit

Permalink
treesheets: update to 20240609, peg old systems to 20230408
Browse files Browse the repository at this point in the history
  • Loading branch information
barracuda156 committed Jun 9, 2024
1 parent 0043fd3 commit 93b1b73
Showing 1 changed file with 32 additions and 18 deletions.
50 changes: 32 additions & 18 deletions editors/treesheets/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,31 @@ PortGroup cmake 1.1
PortGroup github 1.0
PortGroup wxWidgets 1.0

github.setup aardappel treesheets 4640240271
version 20230408
revision 0
if {${os.platform} ne "darwin" || ${os.major} > 17} {
github.setup aardappel treesheets 9435739325
version 20240609
revision 0

checksums rmd160 9e0a59e955007cf7b05558323cc2eeee75e1f2ac \
sha256 e6497fac777caac8f55631ec63e93007d389d2e271939a73c34bd9a18d8ddc2a \
size 3088087

compiler.cxx_standard \
2020
} else {
# Pegged version for older systems.
# https://github.com/aardappel/treesheets/issues/670
github.setup aardappel treesheets 4640240271
version 20230408
revision 0

checksums rmd160 9164ba2f3ff1678cbaeac267da4c87684eee1012 \
sha256 394b6ab25126a0b9fc680ec8dfd53385170664eb8fcb40b4e24489afda9ab770 \
size 3060894

compiler.cxx_standard \
2017
}

homepage https://strlen.com/treesheets

Expand All @@ -21,17 +43,17 @@ license zlib
maintainers {gmail.com:herby.gillot @herbygillot} \
openmaintainer

checksums ${distname}${extract.suffix} \
rmd160 9164ba2f3ff1678cbaeac267da4c87684eee1012 \
sha256 394b6ab25126a0b9fc680ec8dfd53385170664eb8fcb40b4e24489afda9ab770 \
size 3060894

github.tarball_from archive

# https://github.com/aardappel/treesheets/pull/671
patchfiles-append 0001-lobster-tools.h-avoid-conflicting-define-for-ssize_t.patch

# https://github.com/aardappel/treesheets/issues/670
set ts_app_dir ${applications_dir}/TreeSheets.app
set ts_libexec_dir ${prefix}/libexec/${name}

cmake.install_prefix \
${ts_libexec_dir}

if {${os.platform} eq "darwin" && ${os.major} > 17} {
wxWidgets.use wxWidgets-3.2
} elseif {${os.platform} eq "darwin" && ${os.major} > 11} {
Expand All @@ -40,15 +62,6 @@ if {${os.platform} eq "darwin" && ${os.major} > 17} {
wxWidgets.use wxGTK-3.0-cxx11
}

compiler.cxx_standard \
2017

set ts_app_dir ${applications_dir}/TreeSheets.app
set ts_libexec_dir ${prefix}/libexec/${name}

cmake.install_prefix \
${ts_libexec_dir}

depends_lib-append port:${wxWidgets.port}

configure.env-append \
Expand All @@ -57,6 +70,7 @@ configure.env-append \
build.env-append PATH=$env(PATH):${wxWidgets.prefix}/bin

configure.args-append \
-DGIT_WXWIDGETS_SUBMODULES=OFF \
-DwxWidgets_CONFIG_EXECUTABLE=${wxWidgets.wxconfig}

if {${os.platform} eq "darwin" && ${configure.build_arch} in [list ppc ppc64]} {
Expand Down

0 comments on commit 93b1b73

Please sign in to comment.