mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
cudatext, 32bit version (#7767)
This commit is contained in:
69
app-editors/cudatext/additional-files/CudaText.rdef.in
Normal file
69
app-editors/cudatext/additional-files/CudaText.rdef.in
Normal file
@@ -0,0 +1,69 @@
|
||||
/*--------------------------------------------------------------------
|
||||
Change the value in quotes to match the signature passed
|
||||
to the BApplication constructor by your program.
|
||||
--------------------------------------------------------------------*/
|
||||
resource app_signature "application/x-vnd.Alexey-T.CudaText";
|
||||
|
||||
/*--------------------------------------------------------------------
|
||||
Value for app flags can be B_SINGLE_LAUNCH, B_MULTIPLE_LAUNCH, or
|
||||
B_EXCLUSIVE_LAUNCH.
|
||||
|
||||
Additionally, you may also add the B_BACKGROUND_APP or
|
||||
B_ARGV_ONLY flags via a pipe symbol, such as the following:
|
||||
B_SINGLE_LAUNCH | B_BACKGROUND_APP
|
||||
|
||||
B_SINGLE_LAUNCH is the normal OS behavior
|
||||
--------------------------------------------------------------------*/
|
||||
resource app_flags B_SINGLE_LAUNCH;
|
||||
|
||||
resource("QT:QPA_FLAGS") "Q_REF_TO_ARGV|Q_REF_TO_FORK";
|
||||
|
||||
/*--------------------------------------------------------------------
|
||||
Set the version information about your app here.
|
||||
The variety can be set to one of the following values
|
||||
B_APPV_DEVELOPMENT,
|
||||
B_APPV_ALPHA,
|
||||
B_APPV_BETA,
|
||||
B_APPV_GAMMA,
|
||||
B_APPV_GOLDEN_MASTER,
|
||||
B_APPV_FINAL
|
||||
--------------------------------------------------------------------*/
|
||||
|
||||
resource file_types message {
|
||||
"types" = "text/plain",
|
||||
"types" = "text/x-source-code",
|
||||
"types" = "text",
|
||||
"types" = "text/x-makefile",
|
||||
"types" = "text/x-rez",
|
||||
"types" = "text/x-jamfile",
|
||||
"types" = "application/xhtml+xml"
|
||||
};
|
||||
|
||||
/*------------------------------------------------------------------*/
|
||||
|
||||
resource app_version {
|
||||
major = @MAJOR@,
|
||||
middle = @MIDDLE@,
|
||||
minor = @MINOR@,
|
||||
|
||||
variety = B_APPV_GAMMA,
|
||||
internal = @INTERNAL@,
|
||||
|
||||
short_info = "The Cross Platform text and code editor",
|
||||
long_info = "CudaText is a cross-platform text editor, written in Object Pascal."
|
||||
};
|
||||
|
||||
|
||||
resource vector_icon array {
|
||||
$"6E6369660503787A750401C90401C9020012023FE5363BA2BBBBA2BB3FE53646"
|
||||
$"06F0C5379500FFD2FFFF0003F8A12E060206422349233A2322372332213A2340"
|
||||
$"223E2442405E395E475E594558475A435A3C5A3E5A3A0604BF415F395F495F5E"
|
||||
$"4D5C5160495F3E6145CB53BC3E55340605F703425D455D405D574E4B4B4E5247"
|
||||
$"593BC982BD8E5A3C5A435B40594606057E032338233E233B2341415E3E60C07A"
|
||||
$"CB7B583149BCF352B758C0980610AEEBEBBA432C3D2B3F2ABE6CB772BD8BB7FC"
|
||||
$"B9E8BA462F38B8E2BBB8B909BD1AB98DBE393D49434B3E4BC2964B503F4F4151"
|
||||
$"3D4F394644424545453F453E43363B3537353935353734060BEAAA2B442F4C38"
|
||||
$"473E4240454040403E3D39373C34413A433CC0A9BDDF443D48384131070A0101"
|
||||
$"01000A000100000A010102000A030103000A0201001001178200040A04010400"
|
||||
$"0A04010500"
|
||||
};
|
||||
7
app-editors/cudatext/additional-files/setup-cudatext.sh
Executable file
7
app-editors/cudatext/additional-files/setup-cudatext.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
settingsDir="$(finddir B_USER_SETTINGS_DIRECTORY)/"
|
||||
dataDir="$(finddir B_SYSTEM_DATA_DIRECTORY)/cudatext/"
|
||||
|
||||
mkdir -p $settingsDir
|
||||
cp -rf "$dataDir" "$settingsDir"
|
||||
77
app-editors/cudatext/cudatext-1.152.0.9.recipe
Normal file
77
app-editors/cudatext/cudatext-1.152.0.9.recipe
Normal file
@@ -0,0 +1,77 @@
|
||||
SUMMARY="The Cross Platform code and text editor"
|
||||
DESCRIPTION="CudaText is a cross-platform text editor, written in Object Pascal.
|
||||
It is open source project and can be used free of charge, even for business.
|
||||
It starts quite fast: ~0.3 sec with ~30 plugins, on Linux on CPU Intel Core i3 3Hz.
|
||||
It is extensible by Python add-ons: plugins, linters, code tree parsers, external tools.
|
||||
Syntax parser is feature-rich, based on EControl engine (though not as fast as in some \
|
||||
competitors).
|
||||
|
||||
Features:
|
||||
* Syntax highlight for lot of languages (250+ lexers).
|
||||
* Code tree: structure of functions/classes/etc, if lexer allows it.
|
||||
* Code folding.
|
||||
* Multi-carets and multi-selections.
|
||||
* Find/Replace with regular expressions.
|
||||
* Configs in JSON format. Including lexer-specific configs.
|
||||
* Tabbed UI.
|
||||
* Split view to primary/secondary. Split window to 2/3/4/6 groups of tabs.
|
||||
* Command palette, with fuzzy matching.
|
||||
* Minimap. Micromap.
|
||||
* Show unprinted whitespace.
|
||||
* Support for many encodings.
|
||||
* Customizable hotkeys.
|
||||
* Binary/Hex viewer for files of unlimited size (can show 10 Gb logs).
|
||||
* Correctly saves binary files."
|
||||
HOMEPAGE="https://cudatext.github.io/
|
||||
https://github.com/Alexey-T/CudaText"
|
||||
COPYRIGHT="2014 Alexey-T"
|
||||
LICENSE="MPL v2.0"
|
||||
REVISION="1"
|
||||
srcGitRev="b6e292364cc4b10125999fda61b40834a5105958"
|
||||
SOURCE_URI="https://github.com/Begasus/CudaText-Haiku/archive/$srcGitRev.tar.gz"
|
||||
CHECKSUM_SHA256="d2ca147c298826f86c23e3f7d3b149e82e48fa52c3dd18a138313c39b2d8ac51"
|
||||
SOURCE_DIR="CudaText-Haiku-$srcGitRev/files-32bit"
|
||||
SOURCE_FILENAME="cudatext-$portVersion-$srcGitRev.tar.gz"
|
||||
ADDITIONAL_FILES="CudaText.rdef.in
|
||||
setup-cudatext.sh
|
||||
"
|
||||
|
||||
ARCHITECTURES="!all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
POST_INSTALL_SCRIPTS="$relativePostInstallDir/setup-cudatext.sh"
|
||||
|
||||
PROVIDES="
|
||||
cudatext$secondaryArchSuffix = $portVersion
|
||||
app:CudaText
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libpython3.7m$secondaryArchSuffix
|
||||
lib:libQt5Pas$secondaryArchSuffix >= 1.2.9
|
||||
"
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
mkdir -p $appsDir $dataDir $postInstallDir
|
||||
cp apps/CudaText $appsDir
|
||||
cp -rf settings/cudatext $dataDir
|
||||
|
||||
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
||||
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
|
||||
local MINOR="`echo "$portVersion" | cut -d. -f3`"
|
||||
local INTERNAL="`echo "$portVersion" | cut -d. -f4`"
|
||||
sed \
|
||||
-e "s|@MAJOR@|$MAJOR|" \
|
||||
-e "s|@MIDDLE@|$MIDDLE|" \
|
||||
-e "s|@MINOR@|$MINOR|" \
|
||||
-e "s|@INTERNAL@|$INTERNAL|" \
|
||||
$portDir/additional-files/CudaText.rdef.in > CudaText.rdef
|
||||
|
||||
addResourcesToBinaries CudaText.rdef \
|
||||
$appsDir/CudaText
|
||||
|
||||
cp -f $portDir/additional-files/setup-cudatext.sh $postInstallDir
|
||||
|
||||
addAppDeskbarSymlink $appsDir/CudaText
|
||||
}
|
||||
Reference in New Issue
Block a user