summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2020-08-14 01:22:18 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2020-08-14 11:06:30 +0200
commitc512c4528202ea8de782ebad959c804f6fd2ae94 (patch)
tree41e1bf531f4397ec398be6a1c44b1864d5a87a6d /sci-electronics/qucs/qucs-0.0.18.ebuild
parentdev-qt/qt-meta: Drop stale CVS header (diff)
downloadkde-sunset-c512c4528202ea8de782ebad959c804f6fd2ae94.tar.gz
kde-sunset-c512c4528202ea8de782ebad959c804f6fd2ae94.tar.bz2
kde-sunset-c512c4528202ea8de782ebad959c804f6fd2ae94.zip
sci-electronics/qucs: Import 0.0.18 from Gentoo repo before last-rites
Package-Manager: Portage-3.0.2, Repoman-2.3.23 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'sci-electronics/qucs/qucs-0.0.18.ebuild')
-rw-r--r--sci-electronics/qucs/qucs-0.0.18.ebuild68
1 files changed, 68 insertions, 0 deletions
diff --git a/sci-electronics/qucs/qucs-0.0.18.ebuild b/sci-electronics/qucs/qucs-0.0.18.ebuild
new file mode 100644
index 00000000..dfb70bad
--- /dev/null
+++ b/sci-electronics/qucs/qucs-0.0.18.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit flag-o-matic toolchain-funcs
+
+DESCRIPTION="Quite Universal Circuit Simulator in Qt4"
+HOMEPAGE="http://qucs.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug"
+
+RDEPEND="dev-qt/qtcore:4[qt3support]
+ dev-qt/qtgui:4[qt3support]
+ dev-qt/qtscript:4
+ dev-qt/qtsvg:4
+ dev-qt/qt3support:4
+ x11-libs/libX11:0="
+DEPEND="${RDEPEND}"
+
+PATCHES=( "${FILESDIR}"/${P}-gcc6.patch )
+
+src_prepare() {
+ default
+
+ # oh my, they strip -g out of C*FLAGS and force -s into LDFLAGS
+ # note: edit .ac first, then generated files, so that the latter
+ # have newer timestamp and not trigger regen
+ sed -i \
+ -e 's/C.*FLAGS.*sed.*-g.*$/:/' \
+ -e 's/C.*FLAGS.*-O0.*$/:/' \
+ -e 's/LDFLAGS.*-s.*$/:/' \
+ configure.ac asco/configure.ac qucs-core/configure.ac \
+ configure asco/configure qucs-core/configure \
+ || die "C*FLAGS and LDFLAGS sanitization sed failed"
+}
+
+src_configure() {
+ local myconf=(
+ # enables asserts and debug codepaths
+ $(use_enable debug)
+
+ # avoid automagic dep
+ # TODO: add support for it
+ --disable-mpi
+ )
+
+ # automagic default on clang++
+ tc-export CXX
+
+ # the package doesn't use pkg-config on Linux, only on Darwin
+ # very smart of upstream...
+ append-ldflags $( $(tc-getPKG_CONFIG) --libs-only-L \
+ QtCore QtGui QtScript QtSvg QtXml Qt3Support )
+
+ econf "${myconf[@]}"
+}
+
+pkg_postinst() {
+ if ! has_version 'sci-electronics/freehdl'; then
+ elog "If you would like to be able to run digital simulations, please install:"
+ elog " sci-electronics/freehdl"
+ fi
+}