mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 22:48:55 +02:00
featherpad: bump version (#6342)
This commit is contained in:
109
app-editors/featherpad/featherpad-1.0.1.recipe
Normal file
109
app-editors/featherpad/featherpad-1.0.1.recipe
Normal file
@@ -0,0 +1,109 @@
|
||||
SUMMARY="A lightweight Qt5 plain-text editor for Linux"
|
||||
DESCRIPTION="FeatherPad (by Pedram Pourang, a.k.a. Tsu Jan \
|
||||
<tsujan2000@gmail.com>) is a lightweight Qt5 plain-text editor for Linux. \
|
||||
It is independent of any desktop environment and has: \
|
||||
* Drag-and-drop support, including tab detachment and attachment;
|
||||
* X11 virtual desktop awareness (using tabs on current desktop but opening \
|
||||
a new window on another);
|
||||
* An optionally permanent search-bar with a different search entry for each tab;
|
||||
* Instant highlighting of found matches when searching;
|
||||
* A docked window for text replacement;
|
||||
* Support for showing line numbers and jumping to a specific line;
|
||||
* Automatic detection of text encoding as far as possible and optional \
|
||||
saving with encoding;
|
||||
* Syntax highlighting for common programming languages;
|
||||
* Ability to open URLs with appropriate applications;
|
||||
* Session management;
|
||||
* Side-pane mode;
|
||||
* Auto-saving;
|
||||
* Printing;
|
||||
* Text zooming;
|
||||
* Appropriate but non-interrupting prompts; and
|
||||
* Other features that can be found in its settings, \
|
||||
on its menus or when it is actually used."
|
||||
HOMEPAGE="https://github.com/tsujan/FeatherPad"
|
||||
COPYRIGHT="2016, 2018 Pedram Pourang"
|
||||
LICENSE="GNU GPL v3"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/tsujan/FeatherPad/archive/refs/tags/V$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="62bcb8ceb788a1626c41ee7dc3f3fbebf73b82db31cf76708a79073da0f04414"
|
||||
SOURCE_FILENAME="FeatherPad-$portVersion-tar.gz"
|
||||
SOURCE_DIR="FeatherPad-$portVersion"
|
||||
ADDITIONAL_FILES="featherpad.rdef.in"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
featherpad$secondaryArchSuffix = $portVersion
|
||||
app:FeatherPad$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libGL$secondaryArchSuffix
|
||||
lib:libhunspell_1.7$secondaryArchSuffix
|
||||
lib:libQt5Core$secondaryArchSuffix
|
||||
lib:libQt5Gui$secondaryArchSuffix
|
||||
lib:libQt5Network$secondaryArchSuffix
|
||||
lib:libQt5PrintSupport$secondaryArchSuffix
|
||||
lib:libQt5Svg$secondaryArchSuffix
|
||||
lib:libQt5Widgets$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libGL$secondaryArchSuffix
|
||||
devel:libhunspell_1.7$secondaryArchSuffix
|
||||
devel:libQt5Core$secondaryArchSuffix
|
||||
devel:libQt5Gui$secondaryArchSuffix
|
||||
devel:libQt5Network$secondaryArchSuffix
|
||||
devel:libQt5PrintSupport$secondaryArchSuffix
|
||||
devel:libQt5Svg$secondaryArchSuffix
|
||||
devel:libQt5Widgets$secondaryArchSuffix
|
||||
devel:libz$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:find
|
||||
cmd:g++$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:lrelease$secondaryArchSuffix >= 5
|
||||
cmd:make
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
cmd:cmake$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
mkdir -p build
|
||||
cd build
|
||||
cmake .. -DCMAKE_INSTALL_PREFIX:PATH="$appsDir/FeatherPad" \
|
||||
-DCMAKE_BUILD_TYPE=Release
|
||||
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd build
|
||||
make install
|
||||
|
||||
mv $appsDir/FeatherPad/featherpad \
|
||||
$appsDir/FeatherPad/FeatherPad
|
||||
|
||||
local APP_SIGNATURE="application/x-vnd.featherpad"
|
||||
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
||||
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
|
||||
local MINOR="`echo "$portVersion" | cut -d. -f3`"
|
||||
sed \
|
||||
-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
|
||||
-e "s|@MAJOR@|$MAJOR|" \
|
||||
-e "s|@MIDDLE@|$MIDDLE|" \
|
||||
-e "s|@MINOR@|$MINOR|" \
|
||||
$portDir/additional-files/featherpad.rdef.in > featherpad.rdef
|
||||
|
||||
addResourcesToBinaries featherpad.rdef $appsDir/FeatherPad/FeatherPad
|
||||
addAppDeskbarSymlink $appsDir/FeatherPad/FeatherPad "FeatherPad"
|
||||
}
|
||||
Reference in New Issue
Block a user