Gentoo Archives: gentoo-commits

From: Dongxu Li <dongxuli2011@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: media-gfx/librecad/
Date: Sat, 30 Apr 2011 14:22:51
Message-Id: 0f3ad75f3a451c55c320e8fd2973fd675ce7569a.dongxuli@gentoo
1 commit: 0f3ad75f3a451c55c320e8fd2973fd675ce7569a
2 Author: Dongxu Li <dongxuli2011 <AT> gmail <DOT> com>
3 AuthorDate: Sat Apr 30 14:21:55 2011 +0000
4 Commit: Dongxu Li <dongxuli2011 <AT> gmail <DOT> com>
5 CommitDate: Sat Apr 30 14:21:55 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=0f3ad75f
7
8 media-gfx/librecad: initial port, #344791
9
10 ---
11 media-gfx/librecad/ChangeLog | 6 ++++
12 media-gfx/librecad/librecad-9999.ebuild | 39 +++++++++++++++++++++++++++++++
13 media-gfx/librecad/metadata.xml | 13 ++++++++++
14 3 files changed, 58 insertions(+), 0 deletions(-)
15
16 diff --git a/media-gfx/librecad/ChangeLog b/media-gfx/librecad/ChangeLog
17 new file mode 100644
18 index 0000000..72ff86a
19 --- /dev/null
20 +++ b/media-gfx/librecad/ChangeLog
21 @@ -0,0 +1,6 @@
22 +# ChangeLog for media-gfx/librecad
23 +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
24 +# $Header$
25 +
26 + 30 Apr 2011; Dongxu Li <dongxuli2011@×××××.com> +librecad-9999.ebuild:
27 + Initial port. #344791, ebuild by Egor Y. Egorov
28
29 diff --git a/media-gfx/librecad/librecad-9999.ebuild b/media-gfx/librecad/librecad-9999.ebuild
30 new file mode 100644
31 index 0000000..bd6a509
32 --- /dev/null
33 +++ b/media-gfx/librecad/librecad-9999.ebuild
34 @@ -0,0 +1,39 @@
35 +# Copyright 1999-2010 Gentoo Foundation
36 +# Distributed under the terms of the GNU General Public License v2
37 +# $Header: caduntu-9999.ebuild $
38 +
39 +EAPI="2"
40 +
41 +inherit qt4-r2 subversion
42 +
43 +DESCRIPTION="An generic 2D CAD program"
44 +HOMEPAGE="http://www.librecad.org/"
45 +LICENSE="GPL-2"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~x86"
48 +IUSE="debug doc"
49 +
50 +ESVN_REPO_URI=https://librecad.svn.sourceforge.net/svnroot/librecad/trunk/
51 +ESVN_RESTRICT=export
52 +
53 +RDEPEND="x11-libs/qt-gui[qt3support]"
54 +DEPEND="${RDEPEND}"
55 +
56 +src_unpack()
57 +{
58 + subversion_src_unpack || die
59 + cd "$(subversion__get_wc_path "${ESVN_REPO_URI}")"
60 + rsync -rlpgo . "${S}" || die "${ESVN}: can't export to ${S}."
61 +}
62 +
63 +src_install()
64 +{
65 + dobin unix/librecad || die
66 + insinto /usr/share/"${PN}"
67 + doins -r unix/resources/* || die
68 + if use doc ; then
69 + dohtml -r support/doc/* || die
70 + fi
71 + doicon res/main/"${PN}".png || die
72 + make_desktop_entry "${PN}" LibreCAD "${PN}.png" Graphics || die
73 +}
74
75 diff --git a/media-gfx/librecad/metadata.xml b/media-gfx/librecad/metadata.xml
76 new file mode 100644
77 index 0000000..684d041
78 --- /dev/null
79 +++ b/media-gfx/librecad/metadata.xml
80 @@ -0,0 +1,13 @@
81 +<?xml version="1.0" encoding="UTF-8"?>
82 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
83 +<pkgmetadata>
84 +<herd>sci</herd>
85 +<maintainer>
86 + <email>dongxuli2011@×××××.com</email>
87 +</maintainer>
88 +<longdescription lang="en">
89 + LibreCAD is a 2D CAD drawing tool based on the community edition of QCad
90 + (www.qcad.org). LibreCAD has been re-structured and ported to qt4 and works
91 + natively cross platform.
92 +</longdescription>
93 +</pkgmetadata>