From e1394a646484597d6906d79b4c929107649c36b9 Mon Sep 17 00:00:00 2001 From: OscarL Date: Thu, 26 Jan 2023 06:39:29 -0300 Subject: [PATCH] sc: new recipe (#7800) - Removed a script that attepmted to open sc in an xterm window. - Use $settingsDir instead of $dataDir for "plugins" dir and tutorial.sc --- app-office/sc/sc-7.16_1.1.2.recipe | 67 ++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 app-office/sc/sc-7.16_1.1.2.recipe diff --git a/app-office/sc/sc-7.16_1.1.2.recipe b/app-office/sc/sc-7.16_1.1.2.recipe new file mode 100644 index 000000000..638311bce --- /dev/null +++ b/app-office/sc/sc-7.16_1.1.2.recipe @@ -0,0 +1,67 @@ +SUMMARY="Spreadsheet Calculator - A spreadsheet program for the terminal" +DESCRIPTION="sc is a free curses-based spreadsheet program that uses key bindings \ +similar to vi and less." +HOMEPAGE="https://github.com/n-t-roff/sc" +COPYRIGHT="1981-2018 sc authors" +LICENSE="Public Domain" +REVISION="1" +SOURCE_URI="https://github.com/n-t-roff/sc/archive/refs/tags/$portVersion.tar.gz" +CHECKSUM_SHA256="1802c9d3d60dac85feb783adf967bc0d2fd7e5f592d9d1df15e4e87d83efcf14" +SOURCE_DIR="sc-$portVersion" + +ARCHITECTURES="all !x86_gcc2" + +if [ "$targetArchitecture" = x86_gcc2 ]; then + SECONDARY_ARCHITECTURES="x86" +fi + +GLOBAL_WRITABLE_FILES="settings/sc directory keep-old" + +PROVIDES=" + sc$secondaryArchSuffix = $portVersion + cmd:sc = $portVersion + cmd:psc = $portVersion + cmd:scqref = $portVersion + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libncursesw$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:libncursesw$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:bison + cmd:gcc$secondaryArchSuffix + cmd:make + " + +PATCH() +{ + sed -i -e "s,^prefix=/usr/local,prefix=$prefix," "Makefile.in" + sed -i -e "s,^MANDIR=.*,MANDIR=$manDir/man1," "Makefile.in" + sed -i -e "s,^LIBDIR=.*,LIBDIR=$settingsDir/sc," "Makefile.in" + + # Use symlinks (the order of the sed calls here matters) + sed -i -e "s,^LN=ln,#LN=ln," "Makefile.in" + sed -i -e "s,^#LN=ln -s,LN=ln -s," "Makefile.in" +} + +BUILD() +{ + # This is not an autotools "configure" script, but a custom one. + ./configure + # don't use parallel builds, as it may break if bison/yacc files are processed too late. + make +} + +INSTALL() +{ + make install + + # These are not really that useful to have around. + rm $prefix/bin/xsc + rm $manDir/man1/xsc.1 +}