koder: add recipe

This commit is contained in:
Kacper Kasper
2017-01-02 22:34:03 +01:00
parent 9ecedd74ad
commit 27b1c7e3d2

View File

@@ -0,0 +1,57 @@
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-2017 Kacper Kasper"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://github.com/KapiX/Koder/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="654d2d7fea52abaaeb15dae88704462ae76c965b30e4d7a2aa7a06eb52eea7f7"
SOURCE_DIR="Koder-$portVersion"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
koder$secondaryArchSuffix = $portVersion
app:Koder = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libyaml_cpp$secondaryArchSuffix >= 0.5
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libyaml_cpp$secondaryArchSuffix >= 0.5
devel:libscintilla$secondaryArchSuffix
"
BUILD_PREREQUIRES="
makefile_engine
cmd:g++$secondaryArchSuffix
cmd:make
"
USER_SETTINGS_FILES="
settings/Koder directory
"
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
}