0
0
Fork 0
haikuports/sci-electronics/qelectrotech/qelectrotech-0.7.0.recipe

108 lines
3.7 KiB
Bash
Raw Permalink Normal View History

2017-07-05 08:16:57 +00:00
SUMMARY="Create electric diagrams"
DESCRIPTION="QElectroTech is an application to create primarily, electrical, \
electronics, automation and control circuits. However, QElectroTech can be \
exploited to create mechanical objects to illustrate processes, \
instrumentation drawings among various creative possibilities. QElectroTech \
is a good professional quality drafting application for various drawings that \
form a project.
QElectroTech has a large collection of standard and custom symbols, referred \
to as elements, that describe most of the commonly used components in \
electrical, hydraulic, pneumatic, computer systems. These elements can be \
selected drag dropped with mouse on to a diagram editor and connected with \
lines to represent or describe a system. A large number of such diagrams can \
be drafted under a project.
QElectroTech also consists of an inbuilt element editor that permits creation \
of newer elements that do not exist in the collection. Elements in the QET \
collection are not editable i.e read only. But, once the element is drag \
dropped into a diagram, it is automatically added to “imported” collection in \
a duplicate copy. This copy of the element will be available for editing to \
effect suitable changes to create customized symbols."
HOMEPAGE="https://qelectrotech.org"
2019-08-13 10:57:44 +00:00
COPYRIGHT="2008-2019 Laurent Trinques, Joshua Claveau, Ronny Desmedt, Cyril Frausty, Abhishek Bansal"
2017-07-05 08:16:57 +00:00
LICENSE="GNU GPL v2"
REVISION="2"
2019-08-13 10:57:44 +00:00
SOURCE_URI="https://git.tuxfamily.org/qet/qet.git/snapshot/qet-$portVersion.tar.gz"
CHECKSUM_SHA256="d9d7de46c26f9ab9076d02463e9abd9b4b01e4e77202dc22ccecfe08d9bdd2c4"
SOURCE_DIR="qet-$portVersion"
2017-07-05 08:16:57 +00:00
PATCHES="qelectrotech-$portVersion.patchset"
2018-06-17 12:35:54 +00:00
ADDITIONAL_FILES="qelectrotech.rdef.in"
2017-07-05 08:16:57 +00:00
ARCHITECTURES="all !x86_gcc2 ?x86"
2017-07-05 08:16:57 +00:00
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
2018-06-17 12:35:54 +00:00
qelectrotech$secondaryArchSuffix = $portVersion
app:QElectrotech$secondaryArchSuffix = $portVersion
2017-07-05 08:16:57 +00:00
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libGL$secondaryArchSuffix
2019-08-13 10:57:44 +00:00
lib:libKF5CoreAddons$secondaryArchSuffix
lib:libKF5WidgetsAddons$secondaryArchSuffix
2018-06-17 12:35:54 +00:00
lib:libQt5Concurrent$secondaryArchSuffix
2017-07-05 08:16:57 +00:00
lib:libQt5Core$secondaryArchSuffix
lib:libQt5Gui$secondaryArchSuffix
lib:libQt5Network$secondaryArchSuffix
2017-07-05 08:16:57 +00:00
lib:libQt5PrintSupport$secondaryArchSuffix
lib:libQt5Sql$secondaryArchSuffix
lib:libQt5Svg$secondaryArchSuffix
2017-07-05 08:16:57 +00:00
lib:libQt5Widgets$secondaryArchSuffix
lib:libQt5Xml$secondaryArchSuffix
2017-07-05 08:16:57 +00:00
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
2019-08-13 10:57:44 +00:00
extra_cmake_modules$secondaryArchSuffix >= 5.55
2017-07-05 08:16:57 +00:00
devel:libGL$secondaryArchSuffix
2019-08-13 10:57:44 +00:00
devel:libKF5CoreAddons$secondaryArchSuffix
devel:libKF5WidgetsAddons$secondaryArchSuffix
devel:libQt5Core$secondaryArchSuffix
2017-07-05 08:16:57 +00:00
"
BUILD_PREREQUIRES="
cmd:find
cmd:gcc$secondaryArchSuffix
2019-08-13 10:57:44 +00:00
cmd:lrelease$secondaryArchSuffix >= 5
2017-07-05 08:16:57 +00:00
cmd:make
cmd:qmake$secondaryArchSuffix >= 5
2017-07-05 08:16:57 +00:00
"
BUILD()
{
2019-08-13 10:57:44 +00:00
qmake -r \
prefix=$appsDir/QElectrotech \
INCLUDEPATH="/system/$relativeIncludeDir/KF5/KWidgetsAddons /system/$relativeIncludeDir/KF5/KCoreAddons"
2017-07-05 08:16:57 +00:00
make $jobArgs
}
INSTALL()
{
2018-06-17 12:35:54 +00:00
mkdir -p $dataDir/appdata $docDir/man
2017-07-05 08:16:57 +00:00
make install
2018-06-17 12:35:54 +00:00
cd $appsDir/QElectrotech
mv qelectrotech QElectrotech
rm -f *.xml *.desktop
rm -rf $appsDir/share
2017-07-05 08:16:57 +00:00
2018-06-17 12:35:54 +00:00
local APP_SIGNATURE="application/x-vnd.qelectrotech"
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
2019-08-13 10:57:44 +00:00
local MINOR="`echo "$portVersion" | cut -d. -f3`"
2018-06-17 12:35:54 +00:00
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/qelectrotech.rdef.in > \
$sourceDir/qelectrotech.rdef
addResourcesToBinaries $sourceDir/qelectrotech.rdef \
$appsDir/QElectrotech/QElectrotech
addAppDeskbarSymlink $appsDir/QElectrotech/QElectrotech
2017-07-05 08:16:57 +00:00
}