Gentoo Archives: gentoo-commits

From: "Wulf Krueger (philantrop)" <philantrop@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-util/cmake: ChangeLog cmake-2.4.7-r1.ebuild
Date: Fri, 07 Sep 2007 21:37:38
Message-Id: E1ITlPh-0008Ga-MF@stork.gentoo.org
1 philantrop 07/09/07 21:30:53
2
3 Modified: ChangeLog
4 Added: cmake-2.4.7-r1.ebuild
5 Log:
6 Added an upstream patch to fix cmake failing to detect an existing KDE4 installation if the program being built is not going to be installed in the same directory as KDE4. Fixes bug 191412. Thanks, Zephyrus, for reporting this and providing the patch!
7 (Portage version: 2.1.3.7)
8
9 Revision Changes Path
10 1.63 dev-util/cmake/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/cmake/ChangeLog?rev=1.63&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/cmake/ChangeLog?rev=1.63&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/cmake/ChangeLog?r1=1.62&r2=1.63
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-util/cmake/ChangeLog,v
19 retrieving revision 1.62
20 retrieving revision 1.63
21 diff -u -r1.62 -r1.63
22 --- ChangeLog 19 Jul 2007 08:02:26 -0000 1.62
23 +++ ChangeLog 7 Sep 2007 21:30:53 -0000 1.63
24 @@ -1,6 +1,15 @@
25 # ChangeLog for dev-util/cmake
26 # Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-util/cmake/ChangeLog,v 1.62 2007/07/19 08:02:26 cryos Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-util/cmake/ChangeLog,v 1.63 2007/09/07 21:30:53 philantrop Exp $
29 +
30 +*cmake-2.4.7-r1 (07 Sep 2007)
31 +
32 + 07 Sep 2007; Wulf C. Krueger <philantrop@g.o>
33 + +files/cmake-2.4.7-findkde4.patch, +cmake-2.4.7-r1.ebuild:
34 + Added an upstream patch to fix cmake failing to detect an existing KDE4
35 + installation if the program being built is not going to be installed in the
36 + same directory as KDE4. Fixes bug 191412. Thanks, Zephyrus, for reporting
37 + this and providing the patch!
38
39 19 Jul 2007; Marcus D. Hanwell <cryos@g.o> cmake-2.4.7.ebuild:
40 Moved to testing, fixes bug 185832. Sorry.
41
42
43
44 1.1 dev-util/cmake/cmake-2.4.7-r1.ebuild
45
46 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/cmake/cmake-2.4.7-r1.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/cmake/cmake-2.4.7-r1.ebuild?rev=1.1&content-type=text/plain
48
49 Index: cmake-2.4.7-r1.ebuild
50 ===================================================================
51 # Copyright 1999-2007 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/dev-util/cmake/cmake-2.4.7-r1.ebuild,v 1.1 2007/09/07 21:30:53 philantrop Exp $
54
55 inherit elisp-common toolchain-funcs eutils versionator qt3
56
57 DESCRIPTION="Cross platform Make"
58 HOMEPAGE="http://www.cmake.org/"
59 SRC_URI="http://www.cmake.org/files/v$(get_version_component_range 1-2)/${P}.tar.gz"
60
61 LICENSE="CMake"
62 SLOT="0"
63 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
64 IUSE="emacs vim-syntax"
65
66 DEPEND="emacs? ( virtual/emacs )
67 vim-syntax? ( || (
68 app-editors/vim
69 app-editors/gvim ) )"
70 RDEPEND="${DEPEND}"
71
72 SITEFILE="50${PN}-gentoo.el"
73 VIMFILE="${PN}.vim"
74
75 src_unpack() {
76 unpack ${A}
77 cd "${S}"
78
79 # Upstream patch to make sure KDE4 is found. cf. bug 191412.
80 epatch "${FILESDIR}/${P}-findkde4.patch"
81 }
82
83 src_compile() {
84 cd ${S}
85 tc-export CC CXX LD
86 ./bootstrap \
87 --prefix=/usr \
88 --docdir=/share/doc/${PN} \
89 --datadir=/share/${PN} \
90 --mandir=/share/man || die "./bootstrap failed"
91 emake || die
92 if use emacs; then
93 elisp-compile Docs/cmake-mode.el || die "elisp compile failed"
94 fi
95 }
96
97 src_test() {
98 einfo "Self tests broken"
99 make test || \
100 einfo "note test failure on qtwrapping was expected - nature of portage rather than a true failure"
101 }
102
103 src_install() {
104 make install DESTDIR=${D} || die "install failed"
105 mv ${D}usr/share/doc/cmake ${D}usr/share/doc/${PF}
106 if use emacs; then
107 elisp-install ${PN} Docs/cmake-mode.el Docs/cmake-mode.elc || die "elisp-install failed"
108 elisp-site-file-install "${FILESDIR}/${SITEFILE}"
109 fi
110 if use vim-syntax; then
111 insinto /usr/share/vim/vimfiles/syntax
112 doins "${S}"/Docs/cmake-syntax.vim
113
114 insinto /usr/share/vim/vimfiles/indent
115 doins "${S}"/Docs/cmake-indent.vim
116
117 insinto /usr/share/vim/vimfiles/ftdetect
118 doins "${FILESDIR}/${VIMFILE}"
119 fi
120 }
121
122 pkg_postinst() {
123 use emacs && elisp-site-regen
124 }
125
126 pkg_postrm() {
127 use emacs && elisp-site-regen
128 }
129
130
131
132 --
133 gentoo-commits@g.o mailing list