Gentoo Archives: gentoo-commits

From: "Bernard Cafarelli (voyageur)" <voyageur@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-devel/dragonegg: ChangeLog dragonegg-9999.ebuild
Date: Fri, 02 Dec 2011 23:54:36
Message-Id: 20111202235426.EFD7D2004B@flycatcher.gentoo.org
1 voyageur 11/12/02 23:54:26
2
3 Modified: ChangeLog
4 Added: dragonegg-9999.ebuild
5 Log:
6 Add live ebuild for dragonegg
7
8 (Portage version: 2.2.0_alpha79/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.5 sys-devel/dragonegg/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/dragonegg/ChangeLog?rev=1.5&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/dragonegg/ChangeLog?rev=1.5&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/dragonegg/ChangeLog?r1=1.4&r2=1.5
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-devel/dragonegg/ChangeLog,v
20 retrieving revision 1.4
21 retrieving revision 1.5
22 diff -u -r1.4 -r1.5
23 --- ChangeLog 2 Dec 2011 13:21:27 -0000 1.4
24 +++ ChangeLog 2 Dec 2011 23:54:26 -0000 1.5
25 @@ -1,6 +1,11 @@
26 # ChangeLog for sys-devel/dragonegg
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/dragonegg/ChangeLog,v 1.4 2011/12/02 13:21:27 voyageur Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-devel/dragonegg/ChangeLog,v 1.5 2011/12/02 23:54:26 voyageur Exp $
30 +
31 +*dragonegg-9999 (02 Dec 2011)
32 +
33 + 02 Dec 2011; Bernard Cafarelli <voyageur@g.o> +dragonegg-9999.ebuild:
34 + Add live ebuild for dragonegg
35
36 *dragonegg-3.0 (02 Dec 2011)
37
38
39
40
41 1.1 sys-devel/dragonegg/dragonegg-9999.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/dragonegg/dragonegg-9999.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/dragonegg/dragonegg-9999.ebuild?rev=1.1&content-type=text/plain
45
46 Index: dragonegg-9999.ebuild
47 ===================================================================
48 # Copyright 1999-2011 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/sys-devel/dragonegg/dragonegg-9999.ebuild,v 1.1 2011/12/02 23:54:26 voyageur Exp $
51
52 EAPI=4
53 inherit subversion multilib
54
55 DESCRIPTION="GCC plugin that uses LLVM for optimization and code generation"
56 HOMEPAGE="http://dragonegg.llvm.org/"
57 SRC_URI=""
58 ESVN_REPO_URI="http://llvm.org/svn/llvm-project/dragonegg/trunk"
59
60 LICENSE="GPL-2"
61 SLOT="0"
62 KEYWORDS=""
63 IUSE=""
64
65 DEPEND="|| ( sys-devel/gcc:4.5[lto]
66 >=sys-devel/gcc-4.6 )
67 ~sys-devel/llvm-${PV}"
68 RDEPEND="${DEPEND}"
69
70 src_prepare() {
71 # Replace svnversion call
72 subversion_wc_info
73 sed -e "s/\(^REVISION:=\).*/\1${ESVN_WC_REVISION}/" \
74 -i Makefile || die "Setting revision failed"
75 }
76
77 src_compile() {
78 # GCC: compiler to use plugin with
79 emake CC="$(tc-getCC)" GCC="$(tc-getCC)" CXX="$(tc-getCXX)" VERBOSE=1
80 }
81
82 src_install() {
83 # Install plugin in llvm lib directory
84 exeinto /usr/$(get_libdir)/llvm
85 doexe dragonegg.so
86
87 dodoc README
88 }
89
90 pkg_postinst() {
91 elog "To use dragonegg, run gcc as usual, with an extra command line argument:"
92 elog " -fplugin=/usr/$(get_libdir)/llvm/dragonegg.so"
93 elog "If you change the active gcc profile, or update gcc to a new version,"
94 elog "you will have to remerge this package to update the plugin"
95 }