mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 11:40:06 +02:00
Switch SOURCE_URI to upstream. HaikuPorter can handle .tar.lz files transparently thanks to Python's tarfile module. Fix #9548.
66 lines
1.5 KiB
Bash
66 lines
1.5 KiB
Bash
SUMMARY="GNU's line-oriented text editor"
|
|
DESCRIPTION="GNU ed is a line-oriented text editor. It is used to create, \
|
|
display, modify and otherwise manipulate text files, both interactively and \
|
|
via shell scripts. A restricted version of ed, red, can only edit files in \
|
|
the current directory and cannot execute shell commands.
|
|
Ed is the \"standard\" text editor in the sense that it is the original editor \
|
|
for Unix, and thus widely available."
|
|
HOMEPAGE="https://www.gnu.org/software/ed/"
|
|
COPYRIGHT="1992-2023 Free Software Foundation, Inc."
|
|
LICENSE="GNU GPL v3"
|
|
REVISION="1"
|
|
SOURCE_URI="https://ftp.gnu.org/gnu/ed/ed-$portVersion.tar.lz"
|
|
CHECKSUM_SHA256="ce2f2e5c424790aa96d09dacb93d9bbfdc0b7eb6249c9cb7538452e8ec77cd48"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
fi
|
|
|
|
commandBinDir=$binDir
|
|
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
|
commandBinDir=$prefix/bin
|
|
fi
|
|
|
|
PROVIDES="
|
|
ed$secondaryArchSuffix = $portVersion compat >= 1
|
|
cmd:ed = $portVersion compat >= 1
|
|
cmd:red = $portVersion compat >= 1
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
if [ -n "$secondaryArchSuffix" ]; then
|
|
CONFLICTS="
|
|
ed
|
|
"
|
|
fi
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmp
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:perl
|
|
cmd:sed
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
runConfigure --omit-dirs binDir ./configure --bindir="$commandBinDir"
|
|
make
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|