commit:     237d2a394306f48855830f38544261b1f0d14a65
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Mon Aug 24 08:38:13 2020 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Mon Aug 24 08:53:30 2020 +0000
URL:        https://gitweb.gentoo.org/proj/kde-sunset.git/commit/?id=237d2a39

sci-misc/qcad: Import 3.21.2.0 from Gentoo Bugzilla

Initial ebuild work by Thomas Kear, Dirk Tilger and Massimo Burcheri.
- Added missing eclasses, missing quotes
- Dropped untested KEYWORDS, Qt5 support, L10N hacks
- Fixed indendation and cleaned up leading spaces

What a hack this upstream build system is though.

Bug: https://bugs.gentoo.org/498656
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 sci-misc/qcad/qcad-3.21.2.0.ebuild | 55 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 55 insertions(+)

diff --git a/sci-misc/qcad/qcad-3.21.2.0.ebuild 
b/sci-misc/qcad/qcad-3.21.2.0.ebuild
new file mode 100644
index 00000000..b570d9dd
--- /dev/null
+++ b/sci-misc/qcad/qcad-3.21.2.0.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit desktop eutils qmake-utils xdg
+
+DESCRIPTION="Open Source 2D CAD"
+HOMEPAGE="https://www.qcad.org/en/";
+SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="
+       dev-libs/glib
+       dev-qt/designer:4
+       dev-qt/qtcore:4
+       dev-qt/qtgui:4
+       dev-qt/qthelp:4
+       dev-qt/qtopengl:4
+       dev-qt/qtscript:4
+       dev-qt/qtsql:4
+       dev-qt/qtsvg:4
+       dev-qt/qtwebkit:4
+       dev-qt/qtxmlpatterns:4
+       media-libs/glu
+       media-libs/mesa
+"
+RDEPEND="${DEPEND}"
+
+src_configure () {
+       eqmake4 -r
+}
+
+src_install () {
+       #dobin ${FILESDIR}/qcad
+       #test -e ${S}/release/${PN} || ln ${S}/release/qcad-bin 
${S}/release/${PN}
+       #dobin ${S}/release/${PN}
+       domenu "${S}"/*.desktop
+       doicon "${S}"/scripts/${PN}_icon.svg
+       doicon --size 256 "${S}"/scripts/${PN}_icon.png
+
+       insinto /usr/lib/${PN}/
+       doins -r scripts fonts patterns linetypes themes
+       insopts -m0755
+       doins release/*
+       make_wrapper ${PN} /usr/lib/${PN}/qcad-bin "" 
/usr/lib/${PN}:/usr/lib/${PN}/plugins
+       doins -r plugins
+
+       docinto examples
+       dodoc -r examples/*
+       docompress -x /usr/share/doc/${PF}/examples
+}

Reply via email to