Files
haikuports/app-editors/nano/nano-6.2.recipe
2022-02-24 21:38:13 +01:00

70 lines
1.8 KiB
Bash

SUMMARY="Pico clone with more functionality under the GPL license"
DESCRIPTION="nano is a simple text editor for Unix-like computing systems \
using a command line interface. It closely emulates the Pico text editor, \
part of the Pine email client, while providing additional functionality. \
Features include:
- Full undo/redo support
- Syntax highlighting
- Customizable key bindings
- 'Soft' line wrapping
- Line numbers
- Pager support (reading from stdin)
- Warnings for unwritable files
- Localization"
HOMEPAGE="https://www.nano-editor.org/"
COPYRIGHT="1999-2020 Free Software Foundation, Inc."
LICENSE="GNU GPL v3"
REVISION="1"
SOURCE_URI="https://www.nano-editor.org/dist/v6/nano-$portVersion.tar.xz"
CHECKSUM_SHA256="2bca1804bead6aaf4ad791f756e4749bb55ed860eec105a97fba864bc6a77cb3"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
commandSuffix=$secondaryArchSuffix
commandBinDir=$binDir
if [ "$targetArchitecture" = x86_gcc2 ]; then
commandSuffix=
commandBinDir=$prefix/bin
fi
PROVIDES="
nano$secondaryArchSuffix = $portVersion compat >= 2
cmd:nano$commandSuffix = $portVersion compat >= 2
cmd:rnano$commandSuffix = $portVersion compat >= 2
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libiconv$secondaryArchSuffix
lib:libintl$secondaryArchSuffix
lib:libncurses$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libiconv$secondaryArchSuffix
devel:libintl$secondaryArchSuffix
devel:libncurses$secondaryArchSuffix
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:groff
cmd:ld$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
runConfigure --omit-dirs binDir ./configure --bindir=$commandBinDir
make $jobArgs
}
INSTALL()
{
make install
}