summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSławomir Lis <slis@gentoo.org>2015-09-08 08:30:53 +0200
committerSławomir Lis <slis@gentoo.org>2015-09-08 08:30:53 +0200
commitc7c422d3d93efb17ef1d2253b2013ad3b201614c (patch)
tree49dccd36acde2aad58e28fd853f4056f7616d56a /media-gfx/librecad/librecad-9999.ebuild
parentsys-auth/consolekit: Mark ~hppa (bug #559770). (diff)
downloadgentoo-c7c422d3d93efb17ef1d2253b2013ad3b201614c.tar.gz
gentoo-c7c422d3d93efb17ef1d2253b2013ad3b201614c.tar.bz2
gentoo-c7c422d3d93efb17ef1d2253b2013ad3b201614c.zip
version bump (thanks to dxli)
Pull request at: https://github.com/gentoo/gentoo/pull/46 Package-Manager: portage-2.2.20.1
Diffstat (limited to 'media-gfx/librecad/librecad-9999.ebuild')
-rw-r--r--media-gfx/librecad/librecad-9999.ebuild70
1 files changed, 70 insertions, 0 deletions
diff --git a/media-gfx/librecad/librecad-9999.ebuild b/media-gfx/librecad/librecad-9999.ebuild
new file mode 100644
index 000000000000..0c9ba9ba0ee9
--- /dev/null
+++ b/media-gfx/librecad/librecad-9999.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils git-r3 qmake-utils
+
+DESCRIPTION="Generic 2D CAD program"
+HOMEPAGE="http://www.librecad.org/"
+SRC_URI=""
+EGIT_REPO_URI="https://github.com/LibreCAD/LibreCAD.git"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS=""
+IUSE="3d debug doc tools qt4 +qt5"
+REQUIRED_USE="|| ( qt4 qt5 )"
+
+DEPEND="
+ qt4? (
+ dev-qt/qtcore:4
+ dev-qt/qtgui:4
+ dev-qt/qtsvg:4
+ dev-qt/qthelp:4
+ )
+ qt5? (
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qthelp:5
+ dev-qt/qtprintsupport:5
+ dev-qt/qtsvg:5
+ dev-qt/qtwidgets:5
+ dev-qt/qtxml:5
+ )
+
+ dev-libs/boost
+ dev-cpp/muParser
+ media-libs/freetype"
+
+RDEPEND="${DEPEND}"
+S="${WORKDIR}/librecad-${PV}"
+
+src_prepare() {
+ # currently RS_VECTOR3D causes an internal compiler error on GCC-4.8
+ use 3d || sed -i -e '/RS_VECTOR2D/ s/^#//' librecad/src/src.pro || die
+}
+
+src_configure() {
+ if use qt4
+ then
+ eqmake4 -r
+ else
+ eqmake5 -r
+ fi
+}
+
+src_install() {
+ dobin unix/librecad
+ use tools && dobin unix/ttf2lff
+ insinto /usr/share
+ doins -r unix/appdata
+ insinto /usr/share/${PN}
+ doins -r unix/resources/*
+ use doc && dohtml -r librecad/support/doc/*
+ insinto /usr/share/appdata
+ doins unix/appdata/librecad.appdata.xml
+ doicon librecad/res/main/${PN}.png
+ make_desktop_entry ${PN} LibreCAD ${PN} Graphics
+}