Files
haikuports/app-editors/nano/nano-5.7.recipe
waddlesplash 4f180bdb94 Utilize the new "all" ARCHITECTURES keyword in most recipes. (#6189)
x86_64 is used as a baseline: the "x86_64" entry, whatever status it has,
is transformed into "all", and then the other entries in ARCHITECTURES
either dropped or rearranged appropriately.
2021-09-15 15:40:18 -04: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/v5/nano-$portVersion.tar.xz"
CHECKSUM_SHA256="d4b181cc2ec11def3711b4649e34f2be7a668e70ab506860514031d069cccafa"
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
}