aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--media-gfx/librecad/ChangeLog3
-rw-r--r--media-gfx/librecad/Manifest6
-rw-r--r--media-gfx/librecad/librecad-2.0.0_alpha1.ebuild47
-rw-r--r--media-gfx/librecad/librecad-9999.ebuild31
4 files changed, 68 insertions, 19 deletions
diff --git a/media-gfx/librecad/ChangeLog b/media-gfx/librecad/ChangeLog
index bfafbeeb4..9e78e72d3 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/Manifest b/media-gfx/librecad/Manifest
index 97cbfb95d..fcc4c69f6 100644
--- a/media-gfx/librecad/Manifest
+++ b/media-gfx/librecad/Manifest
@@ -2,8 +2,10 @@ AUX 1.0.0_rc2-gcc4.6.patch 1404 RMD160 a2e72683beb7bb3fb5e27118dc0819b00cc5a328
AUX librecad-1.0.0_rc2-version.patch 532 RMD160 ef600cab3da265fa5b9b336e61386037eb0bdb28 SHA1 88c3605f71f3cef2cd44f810604716acdea03a0d SHA256 e43d1f3c5e10583ffbc2b6c6d7ff1b70c2dbef54593c510c05d443fb842b2d81
DIST librecad-1.0.0_rc3.tar.gz 3533857 RMD160 f552989eb70d33c5a4b92984fa2276731056ea07 SHA1 6ff6b05aab915d62fea9605f1a6203dc849a45dd SHA256 1584d7b7ca6cdbc1e323cd508c1e00a388eb0991e81e7f2c7a7f11d58fbd9565
DIST librecad-1.0.0_rc4.tar.gz 4688340 RMD160 1f1868ff83d82e5a81fd80f760e8dcc7902cd9e0 SHA1 b808c95e826367a5757db4aa89144502edcaa818 SHA256 c31511b37657c31bca60537a0db3b1722bffcaa4e3a0479ff110fecc06142c83
+DIST librecad-2.0.0_alpha1.tar.gz 13771736 RMD160 dd52fdd3a71927a84e8ddc0d64b70fc4b5c910d7 SHA1 043ad1ebbae8c98c14f96e8fa0d3c8f48f0d161b SHA256 a7355cfddb0a51eac38da5b0b764848cc11981669c3486447be89251846daecb
EBUILD librecad-1.0.0_rc3.ebuild 864 RMD160 c0dfb19e4663859fdba9054069e8d06d3489fe33 SHA1 8857889076961ecf8334ae0bdff658cc9d6af5ab SHA256 7d596c19e42e04dde6750afd1cd0e19d3b78967ed6c409956ba770f42d8b7c32
EBUILD librecad-1.0.0_rc4.ebuild 864 RMD160 c0dfb19e4663859fdba9054069e8d06d3489fe33 SHA1 8857889076961ecf8334ae0bdff658cc9d6af5ab SHA256 7d596c19e42e04dde6750afd1cd0e19d3b78967ed6c409956ba770f42d8b7c32
-EBUILD librecad-9999.ebuild 992 RMD160 a7954a695b9ce2d1304d60e9c5422475205c4d15 SHA1 d787e83ea6da10c2cc815ffb034e935b3f686dcc SHA256 fd07782a763602b414446460bf91269e22ccf5ae1465b6b1daaac6321b83fd64
-MISC ChangeLog 1766 RMD160 cceef719d0e18b09a19ef414c2e2b79eb44f2847 SHA1 dce867b8f9a2dc60be518ac1ee006b35120cc352 SHA256 228cf05671625fb7e94855c65107e12f4f42ef2e95081495051cb45a57d62c69
+EBUILD librecad-2.0.0_alpha1.ebuild 825 RMD160 63898e3dacd6d7112455a4c836a64de39d6af801 SHA1 61f4ee97639d68910f68714f29941152d0281bcf SHA256 866951df7699d339f94449be45871d8091ff7a0e7301c4d73dfd8bdf92189835
+EBUILD librecad-9999.ebuild 856 RMD160 466e254718986fd8e540fd589e3416333f7797b0 SHA1 2338c3dd874f911ca146ee83a14dab0f92f847bd SHA256 37edf33bcd38772ce1942e19e181310dae8bc54018060673ea27c091126975fd
+MISC ChangeLog 1934 RMD160 7a7bc3ab5e32a1715305de820b1dc918c4037de1 SHA1 b79d48da1ae91e40d859fb85167aa1c9fff06019 SHA256 0c678dae5a90f9618415c70485ac958504d79f6a0d7a0833ed0918e6941c756e
MISC metadata.xml 532 RMD160 65faefb44be12c802b877c564528a7d947b7df90 SHA1 177502bff5b6a28d28d77fea9289e07653254e51 SHA256 4503c12d4f7786303e7bfdf5ed0840870d6767c04290d24acf33128f18634c01
diff --git a/media-gfx/librecad/librecad-2.0.0_alpha1.ebuild b/media-gfx/librecad/librecad-2.0.0_alpha1.ebuild
new file mode 100644
index 000000000..4a4636f63
--- /dev/null
+++ b/media-gfx/librecad/librecad-2.0.0_alpha1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+
+inherit qt4-r2
+
+DESCRIPTION="An generic 2D CAD program"
+HOMEPAGE="http://www.librecad.org/"
+SRC_URI="https://nodeload.github.com/LibreCAD/LibreCAD/tarball/${PV/_/} ->
+${P}.tar.gz"
+
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+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() {
+sed -i -e '/HAS_CPP11/ s/^#//' src/src.pro
+}
+
+src_install() {
+ qt4-r2_src_install
+ dobin unix/librecad
+ insinto /usr/share/"${PN}"
+ doins -r unix/resources/*
+ if use doc ; then
+ dohtml -r support/doc/*
+ fi
+ doicon res/main/"${PN}".png
+ make_desktop_entry "${PN}" LibreCAD "${PN}.png" Graphics
+}
diff --git a/media-gfx/librecad/librecad-9999.ebuild b/media-gfx/librecad/librecad-9999.ebuild
index ced0341bd..9a5c5d532 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
}