mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-04 05:58:52 +02:00
93 lines
2.6 KiB
Bash
93 lines
2.6 KiB
Bash
SUMMARY="Multiplatform Notepad++-like editor"
|
|
DESCRIPTION="Notepadqq is designed from developers, for developers. With its \
|
|
more than 100 supported languages, it is the ideal text editor for your daily \
|
|
tasks."
|
|
HOMEPAGE="http://notepadqq.altervista.org/"
|
|
COPYRIGHT="2012-2018 Notepadqq Project"
|
|
LICENSE="GNU LGPL v3"
|
|
REVISION="2"
|
|
SOURCE_URI="https://github.com/notepadqq/notepadqq/archive/v$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="f295353224848c06fafcc71c7f6a38780a98890075ab33f0179181ebf21bad08"
|
|
PATCHES="notepadqq-$portVersion.patchset"
|
|
ADDITIONAL_FILES="notepadqq.rdef.in"
|
|
|
|
ARCHITECTURES="!x86_gcc2 x86_64"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
notepadqq$secondaryArchSuffix = $portVersion
|
|
app:Notepadqq$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libGL$secondaryArchSuffix
|
|
lib:libQt5Core$secondaryArchSuffix
|
|
lib:libQt5Gui$secondaryArchSuffix
|
|
lib:libQt5Network$secondaryArchSuffix
|
|
lib:libQt5PrintSupport$secondaryArchSuffix
|
|
lib:libQt5Svg$secondaryArchSuffix
|
|
lib:libQt5WebKit$secondaryArchSuffix
|
|
lib:libQt5WebKitWidgets$secondaryArchSuffix
|
|
lib:libQt5Widgets$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libGL$secondaryArchSuffix
|
|
devel:libQt5Core$secondaryArchSuffix
|
|
devel:libQt5Gui$secondaryArchSuffix
|
|
devel:libQt5Network$secondaryArchSuffix
|
|
devel:libQt5PrintSupport$secondaryArchSuffix
|
|
devel:libQt5Svg$secondaryArchSuffix
|
|
devel:libQt5WebKit$secondaryArchSuffix
|
|
devel:libQt5WebKitWidgets$secondaryArchSuffix
|
|
devel:libQt5Widgets$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:find
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:g++$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:lrelease$secondaryArchSuffix >= 5
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
cmd:qmake$secondaryArchSuffix >= 5
|
|
cmd:which
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
./configure --prefix "$appsDir/Notepadqq"
|
|
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
mkdir -p $appsDir/Notepadqq
|
|
make install
|
|
|
|
# Cleanup
|
|
rm -rf $appsDir/Notepadqq/share/{icons,applications}
|
|
# Fun with hardcoded paths :(
|
|
mv $appsDir/Notepadqq/lib/notepadqq/notepadqq-bin \
|
|
$appsDir/Notepadqq/lib/notepadqq/Notepadqq
|
|
rm -rf $appsDir/Notepadqq/bin
|
|
|
|
# Icon
|
|
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
|
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
|
|
local MINOR="`echo "$portVersion" | cut -d. -f3 | cut -d~ -f1`"
|
|
|
|
sed \
|
|
-e "s|@MAJOR@|$MAJOR|" \
|
|
-e "s|@MIDDLE@|$MIDDLE|" \
|
|
-e "s|@MINOR@|$MINOR|" \
|
|
$portDir/additional-files/notepadqq.rdef.in > notepadqq.rdef
|
|
|
|
addResourcesToBinaries notepadqq.rdef \
|
|
$appsDir/Notepadqq/lib/notepadqq/Notepadqq
|
|
|
|
addAppDeskbarSymlink $appsDir/Notepadqq/lib/notepadqq/Notepadqq
|
|
}
|