mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
scintilla: add Jam lexer (#3326)
This commit is contained in:
committed by
waddlesplash
parent
d24f280d65
commit
1133e73317
@@ -13,12 +13,16 @@ colours and multiple fonts."
|
||||
HOMEPAGE="https://scintilla.org"
|
||||
COPYRIGHT="1998-2018 Neil Hodgson"
|
||||
LICENSE="Scintilla"
|
||||
REVISION="1"
|
||||
REVISION="2"
|
||||
SOURCE_URI="https://prdownloads.sf.net/scintilla/scintilla${portVersion//\./}.tgz"
|
||||
CHECKSUM_SHA256="8c54787600fbefa5240ff3c4ac1c84fa186a445091377dde8194a4f1e1471d52"
|
||||
SOURCE_DIR="scintilla"
|
||||
SOURCE_URI_2="https://prdownloads.sf.net/scintilla/scintillahaiku${portVersion//\./}.tgz"
|
||||
CHECKSUM_SHA256_2="dc846ab45b47dcfa87829babccb50ee3da40301d6de4124ba92417957a5c0bb3"
|
||||
srcGitRev3="a70d8f25bcd3b8260f044e2e3db195d884ffb283"
|
||||
SOURCE_URI_3="https://github.com/KapiX/scintilla-haiku-lexers/archive/$srcGitRev3.tar.gz"
|
||||
CHECKSUM_SHA256_3="53adbad4a6d9774789d46236418a802c92a15c5e65a4dbc66d3a2ec4a9aa4af4"
|
||||
SOURCE_DIR_3="scintilla-haiku-lexers-$srcGitRev3"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
@@ -39,10 +43,18 @@ REQUIRES_devel="
|
||||
scintilla$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
PROVIDES_lexers="
|
||||
scintilla${secondaryArchSuffix}_lexers = $portVersion
|
||||
"
|
||||
REQUIRES_lexers="
|
||||
scintilla$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
makefile_engine
|
||||
cmd:ar
|
||||
cmd:g++$secondaryArchSuffix
|
||||
cmd:make
|
||||
@@ -54,14 +66,21 @@ BUILD()
|
||||
cp -R $sourceDir2/haiku/ .
|
||||
cd haiku
|
||||
make $jobArgs
|
||||
|
||||
cd $sourceDir3
|
||||
cp -R $sourceDir/lexlib/ .
|
||||
make all OBJ_DIR=objects SYSTEM_INCLUDE_PATHS=$sourceDir/include
|
||||
rm -rf objects/*.d objects/*.o
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
INCLUDE_DIR=$includeDir/scintilla
|
||||
LEXERS_DIR=$dataDir/scintilla/lexers
|
||||
|
||||
mkdir -p $libDir
|
||||
mkdir -p $INCLUDE_DIR
|
||||
mkdir -p $LEXERS_DIR
|
||||
|
||||
cp -a bin/libscintilla.so $libDir/libscintilla.so
|
||||
cp include/ILoader.h $INCLUDE_DIR
|
||||
@@ -70,6 +89,9 @@ INSTALL()
|
||||
cp include/Scintilla.h $INCLUDE_DIR
|
||||
cp haiku/ScintillaView.h $INCLUDE_DIR
|
||||
|
||||
cp $sourceDir3/objects/Lex* $LEXERS_DIR
|
||||
|
||||
prepareInstalledDevelLibs libscintilla
|
||||
packageEntries devel $developDir
|
||||
packageEntries lexers $LEXERS_DIR
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user