Files
haikuports/haiku-apps/koder/koder-0.5.1.recipe
2019-05-11 19:30:22 +02:00

60 lines
1.4 KiB
Bash

SUMMARY="A code editor"
DESCRIPTION="Koder is a code editor for Haiku based on Scintilla editing \
component. It supports syntax highlighting for several programming languages \
and additional languages can be added by the user. It also features multiline \
editing, folding, brace highlighting, and some other things supported by \
Scintilla."
HOMEPAGE="https://github.com/KapiX/Koder"
COPYRIGHT="2016-2019 Kacper Kasper"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://github.com/KapiX/Koder/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="bc01c2adc3420205a1d46bf0ee2868cdccfcf02480110ba73b935f20a161212d"
SOURCE_DIR="Koder-$portVersion"
ARCHITECTURES="!x86_gcc2 x86_64"
SECONDARY_ARCHITECTURES="x86"
USER_SETTINGS_FILES="
settings/Koder directory
"
PROVIDES="
koder$secondaryArchSuffix = $portVersion
app:Koder = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
scintilla${secondaryArchSuffix}_lexers
lib:libscintilla$secondaryArchSuffix
lib:libyaml_cpp$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libscintilla$secondaryArchSuffix
devel:libyaml_cpp$secondaryArchSuffix
"
BUILD_PREREQUIRES="
makefile_engine
cmd:g++$secondaryArchSuffix
cmd:make
"
BUILD()
{
make $jobArgs OBJ_DIR=objects
make bindcatalogs OBJ_DIR=objects
}
INSTALL()
{
mkdir -p $appsDir
cp -af objects/Koder $appsDir
mkdir -p $dataDir/Koder
cp -r data/* $dataDir/Koder
addAppDeskbarSymlink $appsDir/Koder
}