Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: haikuports/haikuports
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 8edee6b8d1c0
Choose a base ref
...
head repository: haikuports/haikuports
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 231603a89168
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Oct 29, 2021

  1. 3
    Copy the full SHA
    231603a View commit details
Showing with 21 additions and 13 deletions.
  1. +21 −13 app-editors/featherpad/{featherpad-0.9.2.recipe → featherpad-1.0.1.recipe}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
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 \
<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 \
@@ -18,16 +18,15 @@ saving with encoding;
* Auto-saving;
* Printing;
* Text zooming;
* Appropriate but non-interrupting prompts;
* Haiku OS support; and
* Other features that can be found in its settings,
* 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/V$portVersion.tar.gz"
CHECKSUM_SHA256="f3ed0bc17b1679e8498d3e453209055274a9f89b1fec01a1201389365d47e67c"
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"
@@ -39,9 +38,11 @@ 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
@@ -54,6 +55,7 @@ REQUIRES="
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libGL$secondaryArchSuffix
devel:libhunspell_1.7$secondaryArchSuffix
devel:libQt5Core$secondaryArchSuffix
devel:libQt5Gui$secondaryArchSuffix
devel:libQt5Network$secondaryArchSuffix
@@ -62,40 +64,46 @@ BUILD_REQUIRES="
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:qmake$secondaryArchSuffix >= 5
cmd:cmake$secondaryArchSuffix
"

BUILD()
{
qmake PREFIX=$appsDir/FeatherPad
mkdir -p build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX:PATH="$appsDir/FeatherPad" \
-DCMAKE_BUILD_TYPE=Release

make $jobArgs
}

INSTALL()
{
cd build
make install

local APP_SIGNATURE="application/x-vnd-featherpad"
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`"
local LONG_INFO="$SUMMARY"

sed \
-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
-e "s|@MAJOR@|$MAJOR|" \
-e "s|@MIDDLE@|$MIDDLE|" \
-e "s|@MINOR@|$MINOR|" \
-e "s|@LONG_INFO@|$LONG_INFO|" \
$portDir/additional-files/featherpad.rdef.in > featherpad.rdef

addResourcesToBinaries featherpad.rdef $appsDir/FeatherPad/FeatherPad
addAppDeskbarSymlink $appsDir/FeatherPad/FeatherPad
addAppDeskbarSymlink $appsDir/FeatherPad/FeatherPad "FeatherPad"
}