2015-08-04 19:48:11 +00:00
|
|
|
SUMMARY="A free source code editing component"
|
|
|
|
DESCRIPTION="Scintilla is a free source code editing component. It comes with \
|
|
|
|
complete source code and a license that permits use in any free project or \
|
|
|
|
commercial product.
|
|
|
|
As well as features found in standard text editing components, \
|
|
|
|
Scintilla includes features especially useful when editing and debugging \
|
|
|
|
source code. These include support for syntax styling, error indicators, code \
|
|
|
|
completion and call tips. The selection margin can contain markers like those \
|
|
|
|
used in debuggers to indicate breakpoints and the current line. Styling \
|
|
|
|
choices are more open than with many editors, allowing the use of \
|
|
|
|
proportional fonts, bold and italics, multiple foreground and background \
|
|
|
|
colours and multiple fonts."
|
2018-09-10 07:04:25 +00:00
|
|
|
HOMEPAGE="https://scintilla.org"
|
2020-03-09 06:51:09 +00:00
|
|
|
COPYRIGHT="1998-2020 Neil Hodgson"
|
2018-03-14 20:04:30 +00:00
|
|
|
LICENSE="Scintilla"
|
2020-03-09 06:51:09 +00:00
|
|
|
REVISION="1"
|
2018-10-07 18:20:05 +00:00
|
|
|
SOURCE_URI="https://prdownloads.sf.net/scintilla/scintilla${portVersion//\./}.tgz"
|
2020-03-09 06:51:09 +00:00
|
|
|
CHECKSUM_SHA256="3061386bbb66a4829c7563aa987fb0bca25758a20794f617d5cb64d400d51a35"
|
2018-08-03 12:52:23 +00:00
|
|
|
SOURCE_DIR="scintilla"
|
2018-10-07 18:20:05 +00:00
|
|
|
SOURCE_URI_2="https://prdownloads.sf.net/scintilla/scintillahaiku${portVersion//\./}.tgz"
|
2020-03-09 06:51:09 +00:00
|
|
|
CHECKSUM_SHA256_2="2dfe0fae8a168ed1a88c780159eb65f7b1d1e1fa5f6a82544b2a6eb0cb405dab"
|
|
|
|
srcGitRev3="0018aab724122168b4818c8ead2882f83fbc6848"
|
2018-11-03 17:31:33 +00:00
|
|
|
SOURCE_URI_3="https://github.com/KapiX/scintilla-haiku-lexers/archive/$srcGitRev3.tar.gz"
|
2020-03-09 06:51:09 +00:00
|
|
|
CHECKSUM_SHA256_3="901cb864942c329a6ba98ecdb24c80bbbbfc1ec4e29060f2a963ba31de6d0861"
|
2018-11-03 17:31:33 +00:00
|
|
|
SOURCE_DIR_3="scintilla-haiku-lexers-$srcGitRev3"
|
2015-08-04 19:48:11 +00:00
|
|
|
|
2021-09-15 19:40:18 +00:00
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
2015-08-04 19:48:11 +00:00
|
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
|
|
|
|
PROVIDES="
|
|
|
|
scintilla$secondaryArchSuffix = $portVersion
|
2018-06-23 19:14:55 +00:00
|
|
|
lib:libscintilla$secondaryArchSuffix = $portVersion
|
2015-08-04 19:48:11 +00:00
|
|
|
"
|
2018-07-18 15:17:06 +00:00
|
|
|
REQUIRES="
|
|
|
|
haiku$secondaryArchSuffix
|
|
|
|
"
|
|
|
|
|
2015-08-04 19:48:11 +00:00
|
|
|
PROVIDES_devel="
|
|
|
|
scintilla${secondaryArchSuffix}_devel = $portVersion
|
|
|
|
devel:libscintilla$secondaryArchSuffix = $portVersion
|
|
|
|
"
|
|
|
|
REQUIRES_devel="
|
2018-07-18 15:17:06 +00:00
|
|
|
scintilla$secondaryArchSuffix == $portVersion base
|
2015-08-04 19:48:11 +00:00
|
|
|
"
|
|
|
|
|
2018-11-03 17:31:33 +00:00
|
|
|
PROVIDES_lexers="
|
|
|
|
scintilla${secondaryArchSuffix}_lexers = $portVersion
|
|
|
|
"
|
|
|
|
REQUIRES_lexers="
|
|
|
|
scintilla$secondaryArchSuffix == $portVersion base
|
|
|
|
"
|
|
|
|
|
2015-08-04 19:48:11 +00:00
|
|
|
BUILD_REQUIRES="
|
|
|
|
haiku${secondaryArchSuffix}_devel
|
|
|
|
"
|
|
|
|
BUILD_PREREQUIRES="
|
2018-11-03 17:31:33 +00:00
|
|
|
makefile_engine
|
2015-08-04 19:48:11 +00:00
|
|
|
cmd:ar
|
|
|
|
cmd:g++$secondaryArchSuffix
|
2018-08-08 15:34:16 +00:00
|
|
|
cmd:make
|
2015-08-04 19:48:11 +00:00
|
|
|
"
|
|
|
|
|
2019-05-08 07:55:35 +00:00
|
|
|
PATCH()
|
|
|
|
{
|
|
|
|
sed -i -e 's#SymbolValue() noexcept = #SymbolValue() = #' \
|
|
|
|
$sourceDir/lexers/LexCPP.cxx
|
|
|
|
}
|
|
|
|
|
2015-08-04 19:48:11 +00:00
|
|
|
BUILD()
|
|
|
|
{
|
|
|
|
mkdir -p haiku
|
2017-01-14 12:20:01 +00:00
|
|
|
cp -R $sourceDir2/haiku/ .
|
2015-08-04 19:48:11 +00:00
|
|
|
cd haiku
|
|
|
|
make $jobArgs
|
2018-11-03 17:31:33 +00:00
|
|
|
|
|
|
|
cd $sourceDir3
|
|
|
|
cp -R $sourceDir/lexlib/ .
|
|
|
|
make all OBJ_DIR=objects SYSTEM_INCLUDE_PATHS=$sourceDir/include
|
|
|
|
rm -rf objects/*.d objects/*.o
|
2020-03-09 06:51:09 +00:00
|
|
|
|
|
|
|
cd $sourceDir/lexilla/src
|
|
|
|
make $jobArgs
|
2015-08-04 19:48:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
INSTALL()
|
|
|
|
{
|
|
|
|
INCLUDE_DIR=$includeDir/scintilla
|
2018-11-03 17:31:33 +00:00
|
|
|
LEXERS_DIR=$dataDir/scintilla/lexers
|
2015-08-28 14:47:07 +00:00
|
|
|
|
2015-08-04 19:48:11 +00:00
|
|
|
mkdir -p $libDir
|
|
|
|
mkdir -p $INCLUDE_DIR
|
2018-11-03 17:31:33 +00:00
|
|
|
mkdir -p $LEXERS_DIR
|
2015-08-04 19:48:11 +00:00
|
|
|
|
2018-06-23 19:14:55 +00:00
|
|
|
cp -a bin/libscintilla.so $libDir/libscintilla.so
|
2020-03-09 06:51:09 +00:00
|
|
|
cp -a bin/lexilla.so $libDir/lexilla.so
|
2018-04-02 01:01:17 +00:00
|
|
|
cp include/ILoader.h $INCLUDE_DIR
|
2015-08-04 19:48:11 +00:00
|
|
|
cp include/*Lexer.h $INCLUDE_DIR
|
|
|
|
cp include/Sci_Position.h $INCLUDE_DIR
|
|
|
|
cp include/Scintilla.h $INCLUDE_DIR
|
|
|
|
cp haiku/ScintillaView.h $INCLUDE_DIR
|
|
|
|
|
2018-11-03 17:31:33 +00:00
|
|
|
cp $sourceDir3/objects/Lex* $LEXERS_DIR
|
|
|
|
|
2020-03-09 06:51:09 +00:00
|
|
|
prepareInstalledDevelLibs libscintilla lexilla
|
2015-08-04 19:48:11 +00:00
|
|
|
packageEntries devel $developDir
|
2018-11-03 17:31:33 +00:00
|
|
|
packageEntries lexers $LEXERS_DIR
|
2015-08-04 19:48:11 +00:00
|
|
|
}
|