Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sc-im: update to 0.8.4, add support for libxlsxwriter #26469

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 17 additions & 11 deletions finance/sc-im/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,35 +4,41 @@ PortSystem 1.0
PortGroup github 1.0
PortGroup makefile 1.0

github.setup andmarti1424 sc-im 0.8.2 v
github.setup andmarti1424 sc-im 0.8.4 v
maintainers @nkorth openmaintainer
license BSD
categories finance
description Spreadsheet Calculator Improvised
long_description An ncurses spreadsheet program for terminal

platforms darwin

github.tarball_from archive
checksums rmd160 afabf063feda1800fd07e6ee13b4036c7d5a200f \
sha256 7f00c98601e7f7709431fb4cbb83707c87016a3b015d48e5a7c2f018eff4b7f7 \
size 1619617
checksums rmd160 3f4f54259f17935ad78fe72b00adbb8f90b29419 \
sha256 ebb1f10006fe49f964a356494f96d86a4f06eb018659e3b9bde63b25c03abdf0 \
size 1672884

patchfiles patch-prefix.diff

worksrcdir ${distname}/src
build.args-append prefix=${prefix}
destroot.destdir-append prefix=${prefix}
destroot.destdir-append \
prefix=${prefix}

# Define GNUPLOT even if it's not present. It's not actually a build dependency,
# it's just used via system() when the user runs one of sc-im's plot commands.
# This define lets the user always use those commands, and they'll get an error
# message if they don't have gnuplot installed.
build.env-append CFLAGS=-DGNUPLOT

depends_build bin:bison:bison \
port:pkgconfig
depends_lib port:libxls \
compiler.blacklist-append \
*gcc-4.0 *gcc-4.2

depends_build-append \
bin:bison:bison \
path:bin/pkg-config:pkgconfig

depends_lib-append port:libxls \
port:libxlsxwriter \
port:libxml2 \
port:libzip \
port:lua51 \
port:ncurses
#TODO optional dependency libxlswriter doesn't have a port yet
38 changes: 38 additions & 0 deletions textproc/libxlsxwriter/Portfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4

PortSystem 1.0
PortGroup cmake 1.1
PortGroup github 1.0

github.setup jmcnamara libxlsxwriter 1.1.9 v
revision 0

categories textproc devel
license FreeBSD
maintainers nomaintainer
description Library for creating Excel XLSX files
long_description ${name} is a C library that can be used to write text, \
numbers, formulas and hyperlinks to multiple worksheets \
in an Excel 2007+ XLSX file.
homepage https://libxlsxwriter.github.io
checksums rmd160 5c242e063d6beb3942a80e41e15c81115680ccea \
sha256 03ae330d50f74c8a70be0b06b52bd50868f7cd1251ed040fe3b68d1ad6fd11dc \
size 21840995
github.tarball_from archive

depends_build-append \
path:bin/pkg-config:pkgconfig

depends_lib-append port:minizip \
port:zlib

configure.args-append \
-DBUILD_EXAMPLES=OFF \
-DBUILD_SHARED_LIBS=ON \
-DBUILD_TESTS=OFF \
-DIOAPI_NO_64=OFF \
-DUSE_DTOA_LIBRARY=OFF \
-DUSE_NO_MD5=OFF \
-DUSE_OPENSSL_MD5=OFF \
-DUSE_SYSTEM_MINIZIP=ON \
-DZLIB_ROOT=${prefix}
Loading