public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Dongxu Li" <dongxuli2011@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:master commit in: media-gfx/librecad/
Date: Tue, 13 Dec 2011 17:32:08 +0000 (UTC)	[thread overview]
Message-ID: <2653126b365d816173f95a330f7e967abc929527.dongxuli@gentoo> (raw)

commit:     2653126b365d816173f95a330f7e967abc929527
Author:     Dongxu Li <dongxuli2011 <AT> gmail <DOT> com>
AuthorDate: Tue Dec 13 17:32:01 2011 +0000
Commit:     Dongxu Li <dongxuli2011 <AT> gmail <DOT> com>
CommitDate: Tue Dec 13 17:32:01 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=2653126b

media-gfx/librecad: version bump to 2.0.0_alpha1

---
 media-gfx/librecad/ChangeLog                       |    3 ++
 ...ad-9999.ebuild => librecad-2.0.0_alpha1.ebuild} |   19 +++++++----
 media-gfx/librecad/librecad-9999.ebuild            |   31 +++++++++-----------
 3 files changed, 29 insertions(+), 24 deletions(-)

diff --git a/media-gfx/librecad/ChangeLog b/media-gfx/librecad/ChangeLog
index bfafbee..9e78e72 100644
--- a/media-gfx/librecad/ChangeLog
+++ b/media-gfx/librecad/ChangeLog
@@ -2,6 +2,9 @@
 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
 # $Header$
 
+  13 Dec 2011; Dongxu Li <dongxuli2011@gmail.com> +librecad-2.0.0_alpha1.ebuild librecad-9999.ebuild:
+  Version bumped to 2.0.0_alpha1, updated ebuild for git version
+
   23 Oct 2011; Dongxu Li <dongxuli2011@gmail.com> +librecad-1.0.0_rc4.ebuild:
   Version bumped to 1.0.0_rc4
 

diff --git a/media-gfx/librecad/librecad-9999.ebuild b/media-gfx/librecad/librecad-2.0.0_alpha1.ebuild
similarity index 62%
copy from media-gfx/librecad/librecad-9999.ebuild
copy to media-gfx/librecad/librecad-2.0.0_alpha1.ebuild
index ced0341..4a4636f 100644
--- a/media-gfx/librecad/librecad-9999.ebuild
+++ b/media-gfx/librecad/librecad-2.0.0_alpha1.ebuild
@@ -4,11 +4,13 @@
 
 EAPI=4
 
-inherit qt4-r2 git-2
+inherit qt4-r2
 
 DESCRIPTION="An generic 2D CAD program"
 HOMEPAGE="http://www.librecad.org/"
-EGIT_REPO_URI="https://github.com/LibreCAD/LibreCAD.git"
+SRC_URI="https://nodeload.github.com/LibreCAD/LibreCAD/tarball/${PV/_/} ->
+${P}.tar.gz"
+
 
 LICENSE="GPL-2"
 SLOT="0"
@@ -17,16 +19,19 @@ IUSE="debug doc"
 
 DEPEND="
 	x11-libs/qt-assistant:4
+	x11-libs/qt-gui:4
 	dev-libs/boost
 	"
+
 RDEPEND="${DEPEND}"
 
+src_unpack() {
+	unpack ${A}
+	mv * ${P}
+}
+
 src_prepare() {
-	# patch to solve an issue caused by gcc-4.6, by mickele, archlinux
-	sed \
-		-e "s|LiteralMask<Value_t, n>::mask;|LiteralMask<Value_t, static_cast<unsigned int>(n)>::mask;|" \
-		-e "s|SimpleSpaceMask<n>::mask;|SimpleSpaceMask<static_cast<unsigned int>(n)>::mask;|" \
-		-i fparser/fparser.cc || die
+sed -i -e '/HAS_CPP11/ s/^#//' src/src.pro
 }
 
 src_install() {

diff --git a/media-gfx/librecad/librecad-9999.ebuild b/media-gfx/librecad/librecad-9999.ebuild
index ced0341..9a5c5d5 100644
--- a/media-gfx/librecad/librecad-9999.ebuild
+++ b/media-gfx/librecad/librecad-9999.ebuild
@@ -2,41 +2,38 @@
 # Distributed under the terms of the GNU General Public License v2
 # $Header: $
 
-EAPI=4
-
-inherit qt4-r2 git-2
+EAPI="4"
+inherit qt4-r2 git-2 flag-o-matic
 
 DESCRIPTION="An generic 2D CAD program"
 HOMEPAGE="http://www.librecad.org/"
-EGIT_REPO_URI="https://github.com/LibreCAD/LibreCAD.git"
-
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
 IUSE="debug doc"
 
-DEPEND="
+EGIT_REPO_URI="https://github.com/LibreCAD/LibreCAD.git"
+
+DEPEND="${RDEPEND}
 	x11-libs/qt-assistant:4
 	dev-libs/boost
-	"
-RDEPEND="${DEPEND}"
+"
 
 src_prepare() {
-	# patch to solve an issue caused by gcc-4.6, by mickele, archlinux
-	sed \
-		-e "s|LiteralMask<Value_t, n>::mask;|LiteralMask<Value_t, static_cast<unsigned int>(n)>::mask;|" \
-		-e "s|SimpleSpaceMask<n>::mask;|SimpleSpaceMask<static_cast<unsigned int>(n)>::mask;|" \
-		-i fparser/fparser.cc || die
+	#sed -i -e "s:\\\$\+system(git describe --tags):9999:" src/src.pro
+	#enable C++11 by default
+	sed -i -e '/HAS_CPP11/ s/^#//' src/src.pro
+	sed -i -e '/RS_VECTOR2D/ s/^#//' src/src.pro
 }
 
-src_install() {
-	qt4-r2_src_install
+src_install()
+{
 	dobin unix/librecad
 	insinto /usr/share/"${PN}"
 	doins -r unix/resources/*
 	if use doc ; then
-		dohtml -r support/doc/*
+	dohtml -r support/doc/*
 	fi
 	doicon res/main/"${PN}".png
-	make_desktop_entry "${PN}" LibreCAD "${PN}.png" Graphics
+	make_desktop_entry "${PN}" LibreCAD "${PN}" Graphics
 }



             reply	other threads:[~2011-12-13 17:32 UTC|newest]

Thread overview: 60+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-13 17:32 Dongxu Li [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-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-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=2653126b365d816173f95a330f7e967abc929527.dongxuli@gentoo \
    --to=dongxuli2011@gmail.com \
    --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