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" COPYRIGHT="2008-2018 Laurent Trinques, Joshua Claveau, Ronny Desmedt, Cyril Frausty, Abhishek Bansal" LICENSE="GNU GPL v2" REVISION="2" SOURCE_URI="https://download.tuxfamily.org/qet/tags/20180306/qelectrotech-$portVersion-src.tar.gz" CHECKSUM_SHA256="9144c8627f46fecaef6c49ca09f8dd3ddfd3d79b7f8755bba18951638555bbac" SOURCE_DIR="qelectrotech-$portVersion-src" PATCHES="qelectrotech-$portVersion.patchset" ADDITIONAL_FILES="qelectrotech.rdef.in" ARCHITECTURES="!x86_gcc2 ?x86 x86_64" SECONDARY_ARCHITECTURES="x86" PROVIDES=" qelectrotech$secondaryArchSuffix = $portVersion app:QElectrotech$secondaryArchSuffix = $portVersion " REQUIRES=" haiku$secondaryArchSuffix lib:libGL$secondaryArchSuffix lib:libQt5Concurrent$secondaryArchSuffix lib:libQt5Core$secondaryArchSuffix lib:libQt5Gui$secondaryArchSuffix lib:libQt5Network$secondaryArchSuffix lib:libQt5PrintSupport$secondaryArchSuffix lib:libQt5Sql$secondaryArchSuffix lib:libQt5Svg$secondaryArchSuffix lib:libQt5Widgets$secondaryArchSuffix lib:libQt5Xml$secondaryArchSuffix " BUILD_REQUIRES=" haiku${secondaryArchSuffix}_devel devel:libGL$secondaryArchSuffix devel:libQt5Core$secondaryArchSuffix " BUILD_PREREQUIRES=" cmd:find cmd:gcc$secondaryArchSuffix cmd:make cmd:qmake$secondaryArchSuffix >= 5 " BUILD() { qmake -r prefix=$appsDir/QElectrotech make $jobArgs } INSTALL() { mkdir -p $dataDir/appdata $docDir/man make install cd $appsDir/QElectrotech mv qelectrotech QElectrotech rm -f *.xml *.desktop local APP_SIGNATURE="application/x-vnd.qelectrotech" local MAJOR="`echo "$portVersion" | cut -d. -f1`" local MIDDLE="`echo "$portVersion" | cut -d. -f2`" local MINOR="0" 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 }