public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Justin Lecher" <jlec@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:master commit in: media-gfx/librecad/
Date: Thu, 27 Aug 2015 15:01:40 +0000 (UTC)	[thread overview]
Message-ID: <1440604857.b000af3faf1c55ad4952c91e3669bdf342994069.jlec@gentoo> (raw)

commit:     b000af3faf1c55ad4952c91e3669bdf342994069
Author:     Dongxu Li <dongxuli2011 <AT> gmail <DOT> com>
AuthorDate: Wed Aug 26 16:00:09 2015 +0000
Commit:     Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Wed Aug 26 16:00:57 2015 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=b000af3f

media-gfx/librecad: version bump 2.0.8

 media-gfx/librecad/ChangeLog             |  4 ++
 media-gfx/librecad/librecad-2.0.8.ebuild | 65 ++++++++++++++++++++++++++++++++
 media-gfx/librecad/librecad-9999.ebuild  | 42 ++++++++++++++++-----
 3 files changed, 102 insertions(+), 9 deletions(-)

diff --git a/media-gfx/librecad/ChangeLog b/media-gfx/librecad/ChangeLog
index f1965b1..c810091 100644
--- a/media-gfx/librecad/ChangeLog
+++ b/media-gfx/librecad/ChangeLog
@@ -2,6 +2,10 @@
 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
 # $Header$
 
+  26 Aug 2015; Dongxu Li <dongxuli2011@gmail.com>
+  +librecad-2.0.8.ebuild librecad-9999.ebuild:
+  version bump: 2.0.8, qt5 support
+
   05 Apr 2015; Dongxu Li <dongxuli2011@gmail.com>
   librecad-2.0.7.ebuild librecad-9999.ebuild:
   fixed doc and appdata installation

diff --git a/media-gfx/librecad/librecad-2.0.8.ebuild b/media-gfx/librecad/librecad-2.0.8.ebuild
new file mode 100644
index 0000000..cd17775
--- /dev/null
+++ b/media-gfx/librecad/librecad-2.0.8.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils qmake-utils
+
+DESCRIPTION="Generic 2D CAD program"
+HOMEPAGE="http://www.librecad.org/"
+SRC_URI="https://github.com/LibreCAD/LibreCAD/archive/${PV/_/}.zip -> ${P}.zip"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+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/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/${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
+}

diff --git a/media-gfx/librecad/librecad-9999.ebuild b/media-gfx/librecad/librecad-9999.ebuild
index 4858c75..0c63626 100644
--- a/media-gfx/librecad/librecad-9999.ebuild
+++ b/media-gfx/librecad/librecad-9999.ebuild
@@ -4,7 +4,7 @@
 
 EAPI=5
 
-inherit qt4-r2 eutils git-r3
+inherit eutils git-r3 qmake-utils
 
 DESCRIPTION="Generic 2D CAD program"
 HOMEPAGE="http://www.librecad.org/"
@@ -14,24 +14,48 @@ EGIT_REPO_URI="https://github.com/LibreCAD/LibreCAD.git"
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS=""
-IUSE="debug doc"
+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/qtsvg:5
+	            dev-qt/qtwidgets:5
+	            dev-qt/qtxml:5
+	)
 
-DEPEND="${RDEPEND}
-	dev-qt/qtgui:4
-	dev-qt/qthelp:4
-	dev-qt/qtsvg:4
 	dev-libs/boost
 	dev-cpp/muParser
 	media-libs/freetype"
 
+RDEPEND="${DEPEND}"
+S="${WORKDIR}/LibreCAD-${PV}"
+
 src_prepare() {
-	#sed -i -e "s:\\\$\+system(git describe --tags):9999:" src/src.pro
-	#enable C++11 by default
-	sed -i -e '/RS_VECTOR2D/ s/^#//' librecad/src/src.pro || die
+	# 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}


             reply	other threads:[~2015-08-27 15:01 UTC|newest]

Thread overview: 60+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-27 15:01 Justin Lecher [this message]
  -- strict thread matches above, loose matches on Subject: below --
2018-09-06 18:29 [gentoo-commits] proj/sci:master commit in: media-gfx/librecad/ Alexey Shvetsov
2015-09-01  7:57 Justin Lecher
2015-09-01  7:57 Justin Lecher
2015-08-27 15:01 Justin Lecher
2015-04-07  8:56 Justin Lecher
2015-02-08 21:07 Christoph Junghans
2015-02-08 21:07 Christoph Junghans
2015-02-08 21:07 Christoph Junghans
2015-02-08 21:07 Christoph Junghans
2015-01-18  2:16 Christoph Junghans
2015-01-18  2:16 Christoph Junghans
2015-01-18  2:16 Christoph Junghans
2015-01-18  2:16 Christoph Junghans
2015-01-18  2:16 Christoph Junghans
2015-01-15 15:57 Christoph Junghans
2014-09-24  6:45 Justin Lecher
2014-08-19 21:51 Christoph Junghans
2014-08-10  8:05 Justin Lecher
2014-08-10  8:05 Justin Lecher
2014-03-24 15:28 Justin Lecher
2014-03-24 15:28 Justin Lecher
2014-01-18  7:38 Justin Lecher
2014-01-06 19:27 Justin Lecher
2013-12-28 23:17 Justin Lecher
2013-11-14 17:06 Nicolas Bock
2013-09-04  5:11 Kacper Kowalik
2013-06-14 11:21 [gentoo-commits] proj/sci:fixing " Justin Lecher
2013-06-14 11:21 ` [gentoo-commits] proj/sci:master " Justin Lecher
2013-06-11 16:42 Sebastien Fabbro
2013-06-10 11:35 Justin Lecher
2013-04-15  6:14 Kacper Kowalik
2013-03-16 22:00 Christoph Junghans
2012-07-15 18:33 Dongxu Li
2012-05-23 19:56 Kacper Kowalik
2012-05-20 15:18 Dongxu Li
2012-04-16  3:10 Dongxu Li
2012-04-03  4:13 Kacper Kowalik
2012-04-01 19:02 Dongxu Li
2012-02-05 12:52 Dongxu Li
2011-12-15  2:35 Dongxu Li
2011-12-13 17:32 Dongxu Li
2011-10-24  3:33 Dongxu Li
2011-10-10 16:31 Dongxu Li
2011-10-06 19:38 Dongxu Li
2011-09-20 15:57 Dongxu Li
2011-09-19 20:31 Dongxu Li
2011-09-09 14:37 Dongxu Li
2011-09-05  1:14 Dongxu Li
2011-09-03 22:45 Dongxu Li
2011-09-03 22:34 Dongxu Li
2011-08-29 11:18 Justin Lecher
2011-08-27  2:37 Dongxu Li
2011-08-18 16:00 Dongxu Li
2011-06-30 22:34 Dongxu Li
2011-06-30 13:10 Dongxu Li
2011-06-24 17:09 Justin Lecher
2011-06-19 11:40 Dongxu Li
2011-05-24 13:50 Dongxu Li
2011-05-07  2:15 Dongxu Li
2011-04-30 14:22 Dongxu Li

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1440604857.b000af3faf1c55ad4952c91e3669bdf342994069.jlec@gentoo \
    --to=jlec@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox