mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
speedcrunch, new recipe (#4910)
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
From cc2e1e5de38c5d5291bcb7a88dd624f4b98800c4 Mon Sep 17 00:00:00 2001
|
||||
From: begasus <begasus@gmail.com>
|
||||
Date: Sun, 26 Apr 2020 12:01:19 +0000
|
||||
Subject: Use -Wno-deprecated-declarations
|
||||
|
||||
|
||||
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
||||
index 2377b7b..e47291f 100644
|
||||
--- a/src/CMakeLists.txt
|
||||
+++ b/src/CMakeLists.txt
|
||||
@@ -8,7 +8,8 @@ if (MSVC)
|
||||
add_definitions(-D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS)
|
||||
else()
|
||||
add_compile_options(-Wall
|
||||
- -Wno-shift-negative-value)
|
||||
+ -Wno-shift-negative-value
|
||||
+ -Wno-deprecated-declarations)
|
||||
endif()
|
||||
|
||||
if(APPLE)
|
||||
--
|
||||
2.26.0
|
||||
|
||||
69
sci-calculators/speedcrunch/speedcrunch-0.12.0.recipe
Normal file
69
sci-calculators/speedcrunch/speedcrunch-0.12.0.recipe
Normal file
@@ -0,0 +1,69 @@
|
||||
SUMMARY="High-precision scientific calculator"
|
||||
DESCRIPTION="SpeedCrunch is a high-precision scientific calculator.
|
||||
It features a syntax-highlighted scrollable display and is designed to be \
|
||||
fully used via keyboard.
|
||||
Some distinctive features are auto-completion of functions and variables, a \
|
||||
formula book, and quick insertion of constants from various fields of knowledge.
|
||||
It is available for Windows, OS X, Linux and Haiku in a number of languages."
|
||||
HOMEPAGE="https://homepage/of/projectx.org"
|
||||
COPYRIGHT="2014-2016 Helder Correia"
|
||||
LICENSE="GNU GPL v2"
|
||||
REVISION="1"
|
||||
srcGitRev="7a18d76caad9"
|
||||
SOURCE_URI="https://bitbucket.org/heldercorreia/speedcrunch/get/$srcGitRev.zip"
|
||||
CHECKSUM_SHA256="23e8a7964186b6f1ca4026ba9a72e7e6f9ccc6f25995056297a271919f9c4688"
|
||||
SOURCE_FILENAME="speedcrunch-$portVersion-$srcGitRev.tar.zip"
|
||||
SOURCE_DIR="heldercorreia-speedcrunch-$srcGitRev"
|
||||
PATCHES="speedcrunch-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
speedcrunch = $portVersion
|
||||
app:SpeedCrunch = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libQt5Core$secondaryArchSuffix
|
||||
lib:libQt5Gui$secondaryArchSuffix
|
||||
lib:libQt5Help$secondaryArchSuffix
|
||||
lib:libQt5Sql$secondaryArchSuffix
|
||||
lib:libQt5Widgets$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libQt5Core$secondaryArchSuffix
|
||||
devel:libQt5Gui$secondaryArchSuffix
|
||||
devel:libQt5Help$secondaryArchSuffix
|
||||
devel:libQt5Sql$secondaryArchSuffix
|
||||
devel:libQt5Widgets$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:make
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:qcollectiongenerator$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
mkdir -p build && cd build
|
||||
cmake -DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_INSTALL_PREFIX=$prefix ../src
|
||||
make $jobArgs OBJ_DIR=objects
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd build
|
||||
make install
|
||||
addAppDeskbarSymlink $appsDir/SpeedCrunch
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
cd build
|
||||
make test
|
||||
}
|
||||
Reference in New Issue
Block a user