# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=portfile:et:sw=4:ts=4:sts=4

PortSystem          1.0

name                sc
version             7.16
revision            3
set git_commit      e84d756c0b398e437020d58e15b89abfae64f69f
license             public-domain
maintainers         nomaintainer

categories          finance
description         sc is the Venerable Spreadsheet Calculator
long_description    sc is a free curses-based spreadsheet program that uses key bindings similar to vi and less.

platforms           darwin

homepage            http://www.ibiblio.org/pub/Linux/apps/financial/spreadsheet/

master_sites        https://salsa.debian.org/debian/sc/-/archive/master/
distname            ${name}-${git_commit}
use_bzip2           yes
worksrcdir          ${name}-master-${git_commit}

checksums           rmd160  4feb67769f96a4dc31bc211343e1a47ddcee9eeb \
                    sha256  c51d1b6d00058beaf92f80a18f0b37bc29d06c55f7c8bb26959c8a2da7ba785c \
                    size    175814

patchfiles          Makefile.diff \
                    patch-sc.h.diff

depends_lib         port:ncurses \
                    port:bison

use_configure       no

build.args-append   CC="${configure.cc} ${configure.cppflags} ${configure.cflags} [get_canonical_archflags]"

destroot.destdir-append    prefix=${prefix}

livecheck.type      none
