Files
haikuports/x11-libs/qscintilla/qscintilla-2.9.1.recipe
2016-02-17 14:39:36 -05:00

85 lines
2.2 KiB
Bash

SUMMARY="A port to Qt of the Scintilla editing component"
DESCRIPTION="As well as features found in standard text editing components, \
Scintilla includes features especially useful when editing and debugging \
source code:
* syntax styling with support for over 70 languages
* error indicators
* code completion
* call tips
* code folding
* margins can contain markers like those used in debuggers to indicate \
breakpoints and the current line
* recordable macros
* multiple views
* printing
QScintilla is a port or Scintilla to the Qt GUI toolkit from The Qt Company \
and runs on any operating system supported by Qt (eg. Windows, Linux, OS X, \
iOS and Android). QScintilla works with Qt v4 and v5.
QScintilla also includes language bindings for Python. These require that \
PyQt v4 or v5 is also installed.
This version of QScintilla is based on Scintilla v3.5.4."
HOMEPAGE="https://www.riverbankcomputing.com/software/qscintilla/"
COPYRIGHT="2015 Riverbank Computing Limited"
LICENSE="GNU GPL v3"
REVISION="1"
SOURCE_URI="http://sourceforge.net/projects/pyqt/files/QScintilla2/QScintilla-$portVersion/QScintilla-gpl-$portVersion.zip"
CHECKSUM_SHA256="00b362c19c6578e7a1ebd4faf0310784af082795b7fc111549e5774c4e513be3"
SOURCE_DIR="QScintilla-gpl-$portVersion"
ARCHITECTURES="!x86_gcc2 x86"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
qscintilla$secondaryArchSuffix = $portVersion
lib:libqscintilla2$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku${secondaryArchSuffix}
lib:libqt5$secondaryArchSuffix
lib:libgl$secondaryArchSuffix
"
PROVIDES_devel="
qscintilla${secondaryArchSuffix}_devel = $portVersion
devel:libqscintilla2$secondaryArchSuffix = $portVersion
"
REQUIRES_devel="
haiku${secondaryArchSuffix}_devel
qscintilla$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libqt5$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:make
cmd:g++${secondaryArchSuffix}
"
BUILD()
{
cd Qt4Qt5
qmake
make $jobArgs
}
INSTALL()
{
cd Qt4Qt5
# doesn't work
# make INSTALL_ROOT=$PREFIX install
mkdir -p $libDir $includeDir
cp libqscintilla2* $libDir
cp -r Qsci $includeDir
prepareInstalledDevelLibs \
libqscintilla2
packageEntries devel \
$developDir
}