Files
haikuports/app-editors/jed/jed-0.99.20_158.recipe
augiedoggie b50ebd6392 jed: update version and various fixes (#6968)
improve the secondary arch support
use XDG_CONFIG_HOME to locate the rc file
attempt to cleanup package layout
2022-05-29 22:44:24 -06:00

79 lines
1.7 KiB
Bash

SUMMARY="Lightweight terminal based editor for programmers"
DESCRIPTION="Jed is a small, fast and powerful text editor.\
It is completely customizable with prepared emulation modes for Emacs, \
CUA (similar to Openoffice), Borland-IDE, Brief, and EDT using the S-Lang \
scripting language (with a syntax resembling C)."
HOMEPAGE="http://www.jedsoft.org/jed/"
COPYRIGHT="1992, 1998, 2000, 2005, 2006-2019 John E. Davis"
LICENSE="GNU GPL v2"
REVISION="1"
srcGitRev="1f279c4b22854c7d02466227b3070b01ef48c053"
SOURCE_URI="https://github.com/jedsoft/jed/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="0b4e1fe9627869551b906bd08bec58bc0789e98d524c24199deac742ba0f49eb"
SOURCE_DIR="jed-$srcGitRev"
PATCHES="jed-$portVersion.patchset"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
commandSuffix=$secondaryArchSuffix
commandBinDir=$binDir
if [ "$targetArchitecture" = x86_gcc2 ]; then
commandSuffix=
commandBinDir=$prefix/bin
fi
PROVIDES="
jed$secondaryArchSuffix = $portVersion
cmd:jed$commandSuffix
cmd:jed_script$commandSuffix
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libslang$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libslang$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:awk
cmd:gcc$secondaryArchSuffix
cmd:m4
cmd:make
cmd:pkg_config$secondaryArchSuffix
cmd:sed
"
PATCH()
{
# adapted from Arch Linux
sed \
-e "s|..DEST.*doc|${docDir}|g" \
-i src/Makefile.in
}
BUILD()
{
make -C autoconf
LDFLAGS="-lbsd -lnetwork" \
JED_ROOT=$dataDir/jed \
runConfigure --omit-dirs binDir ./configure \
--bindir="$commandBinDir" \
--with-slanglib=$libDir \
--with-slanginc=$developDir
make $jobArgs
}
INSTALL()
{
make install
rm -f $manDir/man1/rgrep.1
cp -af INSTALL* $docDir
}