mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 06:58:57 +02:00
sc-im: new recipe (#7801)
This commit is contained in:
74
app-office/sc-im/sc_im-0.8.3.recipe
Normal file
74
app-office/sc-im/sc_im-0.8.3.recipe
Normal file
@@ -0,0 +1,74 @@
|
||||
SUMMARY="Spreadsheet Calculator Improvised - An ncurses spreadsheet program for terminal"
|
||||
DESCRIPTION="Spreadsheet Calculator Improvised, aka sc-im, is an ncurses based, vim-like \
|
||||
spreadsheet calculator.
|
||||
|
||||
sc-im is based on sc, whose original authors are James Gosling and Mark Weiser, and mods \
|
||||
were later added by Chuck Martin."
|
||||
HOMEPAGE="https://github.com/andmarti1424/sc-im"
|
||||
COPYRIGHT="2013-2023 Andrés Martinelli"
|
||||
LICENSE="BSD (4-clause)"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/andmarti1424/sc-im/archive/refs/tags/v$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="5568f9987b6d26535c0e7a427158848f1bc03d829f74e41cbcf007d8704e9bd3"
|
||||
SOURCE_DIR="sc-im-$portVersion"
|
||||
PATCHES="sc_im-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
|
||||
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
fi
|
||||
|
||||
PROVIDES="
|
||||
sc_im$secondaryArchSuffix = $portVersion
|
||||
cmd:sc_im = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libncursesw$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
cmd:bison
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
devel:libncursesw$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:make
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:which
|
||||
"
|
||||
|
||||
TEST_REQUIRES="
|
||||
cmd:bash
|
||||
cmd:getopt
|
||||
"
|
||||
|
||||
PATCH()
|
||||
{
|
||||
sed -i -e "s,^prefix = /usr/local,prefix = $prefix," src/Makefile
|
||||
sed -i -e "s,^HELPDIR = .*,HELPDIR = $docDir," src/Makefile
|
||||
sed -i -e "s,^LIBDIR = .*,LIBDIR = $dataDir/sc-im," src/Makefile
|
||||
sed -i -e "s,^MANDIR = .*,MANDIR = $manDir/man1," src/Makefile
|
||||
sed -i -e "s,^HISTORY_DIR= .*,HISTORY_DIR= $settingsDir/sc-im," src/Makefile
|
||||
sed -i -e "s,^CONFIG_DIR= .config/sc-im,CONFIG_DIR= $settingsDir/sc-im," src/Makefile
|
||||
}
|
||||
|
||||
BUILD()
|
||||
{
|
||||
make -C src $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make -C src install
|
||||
# we don't want `scopen`, we'll use Haiku's `open` instead
|
||||
rm $prefix/bin/scopen
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
# All test fail because they require "cmd:valgrind".
|
||||
cd tests && run_all_tests.sh
|
||||
}
|
||||
Reference in New Issue
Block a user