mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
ecode, add 64bit package (#11129)
This commit is contained in:
29
app-editors/ecode/additional-files/ecode.rdef.in
Normal file
29
app-editors/ecode/additional-files/ecode.rdef.in
Normal file
@@ -0,0 +1,29 @@
|
||||
resource app_flags B_SINGLE_LAUNCH;
|
||||
|
||||
resource app_version {
|
||||
major = @MAJOR@,
|
||||
middle = @MIDDLE@,
|
||||
minor = @MINOR@,
|
||||
|
||||
variety = B_APPV_FINAL,
|
||||
internal = 0,
|
||||
|
||||
short_info = "@APP_NAME@",
|
||||
long_info = "@LONG_INFO@"
|
||||
};
|
||||
|
||||
resource app_signature "@APP_SIGNATURE@";
|
||||
|
||||
resource("QT:QPA_FLAGS") "Q_KILL_ON_EXIT";
|
||||
|
||||
resource vector_icon {
|
||||
$"6E6369660202000602ABD1993DBC7FBDA6BBABE85C42F3B649FE0C003DAEE9FF"
|
||||
$"0082BA05FF030606FF07CBA940CBA940CBA9C65440CBA9C654CBA9B92BCBA9B3"
|
||||
$"D640B3D6C654B3D6B92B40B3D6B92BB3D6C654B3D6CBA940CBA9B92BCBA94040"
|
||||
$"0006BFEBBF37BFEBBF37C02FBF06BFBDBE82BFEFBEA2BF14BE18BE0FBF50BE4C"
|
||||
$"BEB2BD86C0ADBFF1C262BEACC208C23EC305C4D0BEF5C45CC11FC568BC1CC0EE"
|
||||
$"B84FC386B95DC0EEB84F0006C002BF0CC002BF0CBFC5BF59C070BFC8C02EBFB5"
|
||||
$"C151C009C211BE55C1FFBF1AC239BCA0BEF3BB7EC07EBB7ABC28BB87BA97C0EE"
|
||||
$"BA65BE59BAD8C453C11EC725BDDBC6CDC11EC725030A000100000A0101011001"
|
||||
$"178320040A010102100117832004"
|
||||
};
|
||||
84
app-editors/ecode/ecode-0.6.1.recipe
Normal file
84
app-editors/ecode/ecode-0.6.1.recipe
Normal file
@@ -0,0 +1,84 @@
|
||||
SUMMARY="Lightweight multi-platform code editor"
|
||||
DESCRIPTION="ecode is a lightweight multi-platform code editor designed for modern hardware with \
|
||||
a focus on responsiveness and performance. It has been developed with the hardware-accelerated \
|
||||
eepp GUI, which provides the core technology for the editor. The project comes as the first \
|
||||
serious project using the eepp GUI, and it's currently being developed to improve the eepp GUI \
|
||||
library as part of one of its main objectives."
|
||||
HOMEPAGE="https://github.com/SpartanJ/eepp"
|
||||
COPYRIGHT="2023 Martín Lucas Golini"
|
||||
LICENSE="MIT"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/SpartanJ/eepp/archive/refs/tags/eepp-2.8.1.tar.gz"
|
||||
CHECKSUM_SHA256="9b247c78f7d02a8be7844ec6cccb412dedf044b2151b30632bba03ffd347d67a"
|
||||
#SOURCE_FILENAME="eepp-2.8.1.tar.gz"
|
||||
SOURCE_DIR="eepp-eepp-2.8.1"
|
||||
srcGitRev_2="229324688c26f1e31da0171f3f5193f12253619e"
|
||||
SOURCE_URI_2="https://github.com/SpartanJ/soil2/archive/$srcGitRev_2.tar.gz"
|
||||
CHECKSUM_SHA256_2="6487667b9d0bbc72bbce80dc5bf92a365442d657e6c2b7e8f81d4c7cd2d242ea"
|
||||
SOURCE_FILENAME_2="SOIL2-$srcGitRev_2.tar.gz"
|
||||
SOURCE_DIR_2="SOIL2-$srcGitRev_2"
|
||||
srcGitRev_3="aa4b29e5253adce75f6884573de4611869e09de8"
|
||||
SOURCE_URI_3="https://github.com/SpartanJ/efsw/archive/$srcGitRev_3.tar.gz"
|
||||
CHECKSUM_SHA256_3="d970f17724f3e25dcd0c155bed800da59af57778d81c158cf84b8eab3e340bc8"
|
||||
SOURCE_FILENAME_3="efsw-$srcGitRev_3.tar.gz"
|
||||
SOURCE_DIR_3="efsw-$srcGitRev_3"
|
||||
ADDITIONAL_FILES="ecode.rdef.in"
|
||||
|
||||
ARCHITECTURES="!all x86_64"
|
||||
|
||||
PROVIDES="
|
||||
ecode = $portVersion
|
||||
cmd:ecode = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
lib:libGL
|
||||
lib:libSDL2_2.0
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
devel:libGL
|
||||
devel:libSDL2_2.0
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:awk
|
||||
cmd:gcc
|
||||
cmd:make
|
||||
cmd:premake5
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cp -r $sourceDir2/* src/thirdparty/SOIL2
|
||||
cp -r $sourceDir3/* src/thirdparty/efsw
|
||||
cd projects/haiku/ecode
|
||||
./build.app.sh
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
mkdir -p $appsDir/Ecode
|
||||
cp -rf ./projects/haiku/ecode/ecode.app/* $appsDir/Ecode
|
||||
rm -f $appsDir/Ecode/lib/libSDL2*
|
||||
rm -f $appsDir/Ecode/ecode.png
|
||||
|
||||
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
||||
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
|
||||
local MINOR="`echo "$portVersion" | cut -d. -f3`"
|
||||
local APP_NAME="Ecode"
|
||||
local LONG_INFO="$SUMMARY"
|
||||
local APP_SIGNATURE="application/x-vnd.ecode"
|
||||
sed \
|
||||
-e "s|@MAJOR@|$MAJOR|" \
|
||||
-e "s|@MIDDLE@|$MIDDLE|" \
|
||||
-e "s|@MINOR@|$MINOR|" \
|
||||
-e "s|@LONG_INFO@|$LONG_INFO|" \
|
||||
-e "s|@APP_NAME@|$APP_NAME|" \
|
||||
-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
|
||||
$portDir/additional-files/ecode.rdef.in > ecode.rdef
|
||||
|
||||
addResourcesToBinaries ecode.rdef $appsDir/Ecode/ecode
|
||||
|
||||
addAppDeskbarSymlink $appsDir/Ecode/ecode Ecode
|
||||
}
|
||||
Reference in New Issue
Block a user