Gentoo Archives: gentoo-commits

From: "Tomas Chvatal (scarabeus)" <scarabeus@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-util/cmake: ChangeLog cmake-2.6.3.ebuild
Date: Sun, 01 Mar 2009 13:13:43
Message-Id: E1LdlUC-0006AP-FI@stork.gentoo.org
1 scarabeus 09/03/01 13:13:40
2
3 Modified: ChangeLog
4 Added: cmake-2.6.3.ebuild
5 Log:
6 Version bump.
7 (Portage version: 2.2_rc23/cvs/Linux i686)
8
9 Revision Changes Path
10 1.82 dev-util/cmake/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/cmake/ChangeLog?rev=1.82&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/cmake/ChangeLog?rev=1.82&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/cmake/ChangeLog?r1=1.81&r2=1.82
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-util/cmake/ChangeLog,v
19 retrieving revision 1.81
20 retrieving revision 1.82
21 diff -u -r1.81 -r1.82
22 --- ChangeLog 22 Feb 2009 15:05:02 -0000 1.81
23 +++ ChangeLog 1 Mar 2009 13:13:40 -0000 1.82
24 @@ -1,6 +1,11 @@
25 # ChangeLog for dev-util/cmake
26 # Copyright 2000-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-util/cmake/ChangeLog,v 1.81 2009/02/22 15:05:02 klausman Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-util/cmake/ChangeLog,v 1.82 2009/03/01 13:13:40 scarabeus Exp $
29 +
30 +*cmake-2.6.3 (01 Mar 2009)
31 +
32 + 01 Mar 2009; Tomas Chvatal <scarabeus@g.o> +cmake-2.6.3.ebuild:
33 + Version bump.
34
35 22 Feb 2009; Tobias Klausmann <klausman@g.o> cmake-2.6.2-r1.ebuild:
36 Stable on alpha, bug #259741
37
38
39
40 1.1 dev-util/cmake/cmake-2.6.3.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/cmake/cmake-2.6.3.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/cmake/cmake-2.6.3.ebuild?rev=1.1&content-type=text/plain
44
45 Index: cmake-2.6.3.ebuild
46 ===================================================================
47 # Copyright 1999-2009 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/dev-util/cmake/cmake-2.6.3.ebuild,v 1.1 2009/03/01 13:13:40 scarabeus Exp $
50
51 EAPI="2"
52
53 inherit elisp-common toolchain-funcs eutils versionator flag-o-matic
54
55 MY_PV="${PV/rc/RC-}"
56 MY_P="${PN}-$(replace_version_separator 3 - ${MY_PV})"
57
58 DESCRIPTION="Cross platform Make"
59 HOMEPAGE="http://www.cmake.org/"
60 SRC_URI="http://www.cmake.org/files/v$(get_version_component_range 1-2)/${MY_P}.tar.gz"
61
62 LICENSE="CMake"
63 SLOT="0"
64 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
65 IUSE="emacs qt4 vim-syntax"
66
67 DEPEND=">=net-misc/curl-7.16.4
68 >=dev-libs/expat-2.0.1
69 >=dev-libs/libxml2-2.6.28
70 >=dev-libs/xmlrpc-c-1.06.09[curl]
71 emacs? ( virtual/emacs )
72 qt4? ( || ( ( x11-libs/qt-core:4
73 x11-libs/qt-gui:4 )
74 >=x11-libs/qt-4.3:4 ) )
75 vim-syntax? ( || (
76 app-editors/vim
77 app-editors/gvim ) )"
78 RDEPEND="${DEPEND}"
79
80 SITEFILE="50${PN}-gentoo.el"
81 VIMFILE="${PN}.vim"
82
83 S="${WORKDIR}/${MY_P}"
84
85 src_prepare() {
86 epatch "${FILESDIR}/${PN}-FindPythonLibs.patch"
87 epatch "${FILESDIR}/${PN}-FindPythonInterp.patch"
88 }
89
90 src_configure() {
91 # due to bootstrap, everything is done in src_compile
92 true
93 }
94
95 src_compile() {
96 local qt_arg par_arg
97 if [[ "$(gcc-major-version)" -eq "3" ]] ; then
98 append-flags "-fno-stack-protector"
99 fi
100
101 tc-export CC CXX LD
102
103 if use qt4; then
104 qt_arg="--qt-gui"
105 else
106 qt_arg="--no-qt-gui"
107 fi
108
109 echo $MAKEOPTS | egrep -o '(\-j|\-\-jobs)(=?|[[:space:]]*)[[:digit:]]+' > /dev/null
110 if [ $? -eq 0 ]; then
111 par_arg=$(echo $MAKEOPTS | egrep -o '(\-j|\-\-jobs)(=?|[[:space:]]*)[[:digit:]]+' | egrep -o '[[:digit:]]+')
112 par_arg="--parallel=${par_arg}"
113 else
114 par_arg="--parallel=1"
115 fi
116
117 ./bootstrap \
118 --system-libs \
119 --prefix=/usr \
120 --docdir=/share/doc/${PF} \
121 --datadir=/share/${PN} \
122 --mandir=/share/man \
123 "$qt_arg" \
124 "$par_arg" || die "./bootstrap failed"
125
126 emake || die "emake failed."
127 if use emacs; then
128 elisp-compile Docs/cmake-mode.el || die "elisp compile failed"
129 fi
130 }
131
132 src_test() {
133 emake test || \
134 einfo "note test failure on qtwrapping was expected - nature of portage rather than a true failure"
135 }
136
137 src_install() {
138 emake install DESTDIR="${D}" || die "install failed"
139 if use emacs; then
140 elisp-install ${PN} Docs/cmake-mode.el Docs/cmake-mode.elc || die "elisp-install failed"
141 elisp-site-file-install "${FILESDIR}/${SITEFILE}"
142 fi
143 if use vim-syntax; then
144 insinto /usr/share/vim/vimfiles/syntax
145 doins "${S}"/Docs/cmake-syntax.vim
146
147 insinto /usr/share/vim/vimfiles/indent
148 doins "${S}"/Docs/cmake-indent.vim
149
150 insinto /usr/share/vim/vimfiles/ftdetect
151 doins "${FILESDIR}/${VIMFILE}"
152 fi
153 }
154
155 pkg_postinst() {
156 use emacs && elisp-site-regen
157 }
158
159 pkg_postrm() {
160 use emacs && elisp-site-regen
161 }