1 |
tgurr 08/08/27 21:19:10 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: cmake-2.6.1.ebuild |
5 |
Log: |
6 |
Version bump. Big thanks to Brad King from kitware, thewtex and Arfrever Frehtes Taifersar Arahesis and everyone else involved. Fixes bug #224901, #232111, #233772 and #235731. |
7 |
(Portage version: 2.2_rc8/cvs/Linux 2.6.26-gentoo x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.73 dev-util/cmake/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/cmake/ChangeLog?rev=1.73&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/cmake/ChangeLog?rev=1.73&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/cmake/ChangeLog?r1=1.72&r2=1.73 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/dev-util/cmake/ChangeLog,v |
19 |
retrieving revision 1.72 |
20 |
retrieving revision 1.73 |
21 |
diff -u -r1.72 -r1.73 |
22 |
--- ChangeLog 8 May 2008 15:53:11 -0000 1.72 |
23 |
+++ ChangeLog 27 Aug 2008 21:19:10 -0000 1.73 |
24 |
@@ -1,6 +1,15 @@ |
25 |
# ChangeLog for dev-util/cmake |
26 |
# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/dev-util/cmake/ChangeLog,v 1.72 2008/05/08 15:53:11 cryos Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/dev-util/cmake/ChangeLog,v 1.73 2008/08/27 21:19:10 tgurr Exp $ |
29 |
+ |
30 |
+*cmake-2.6.1 (27 Aug 2008) |
31 |
+ |
32 |
+ 27 Aug 2008; Timo Gurr <tgurr@g.o> |
33 |
+ +files/cmake-2.6.1-gc-sections.patch, +files/cmake-2.6.1-rpath.patch, |
34 |
+ +cmake-2.6.1.ebuild: |
35 |
+ Version bump. Big thanks to Brad King from kitware, thewtex and Arfrever |
36 |
+ Frehtes Taifersar Arahesis and everyone else involved. Fixes bug #224901, |
37 |
+ #232111, #233772 and #235731. |
38 |
|
39 |
*cmake-2.6.0 (08 May 2008) |
40 |
|
41 |
|
42 |
|
43 |
|
44 |
1.1 dev-util/cmake/cmake-2.6.1.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/cmake/cmake-2.6.1.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/cmake/cmake-2.6.1.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: cmake-2.6.1.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2008 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.6.1.ebuild,v 1.1 2008/08/27 21:19:10 tgurr Exp $ |
54 |
|
55 |
EAPI="1" |
56 |
|
57 |
inherit elisp-common toolchain-funcs eutils versionator flag-o-matic |
58 |
|
59 |
MY_PV="${PV/rc/RC-}" |
60 |
MY_P="${PN}-$(replace_version_separator 3 - ${MY_PV})" |
61 |
|
62 |
DESCRIPTION="Cross platform Make" |
63 |
HOMEPAGE="http://www.cmake.org/" |
64 |
SRC_URI="http://www.cmake.org/files/v$(get_version_component_range 1-2)/${MY_P}.tar.gz" |
65 |
|
66 |
LICENSE="CMake" |
67 |
SLOT="0" |
68 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" |
69 |
IUSE="emacs qt4 vim-syntax" |
70 |
|
71 |
DEPEND=">=net-misc/curl-7.16.4 |
72 |
>=dev-libs/expat-2.0.1 |
73 |
>=dev-libs/libxml2-2.6.28 |
74 |
>=dev-libs/xmlrpc-c-1.06.09 |
75 |
emacs? ( virtual/emacs ) |
76 |
qt4? ( || ( ( x11-libs/qt-core:4 |
77 |
x11-libs/qt-gui:4 ) |
78 |
>=x11-libs/qt-4.3:4 ) ) |
79 |
vim-syntax? ( || ( |
80 |
app-editors/vim |
81 |
app-editors/gvim ) )" |
82 |
RDEPEND="${DEPEND}" |
83 |
|
84 |
SITEFILE="50${PN}-gentoo.el" |
85 |
VIMFILE="${PN}.vim" |
86 |
|
87 |
S="${WORKDIR}/${MY_P}" |
88 |
|
89 |
pkg_setup() { |
90 |
if ! built_with_use -o dev-libs/xmlrpc-c curl libwww; then |
91 |
echo |
92 |
eerror "${PN} requires dev-libs/xmlrpc-c to be built with either the 'libwww' or" |
93 |
eerror "the 'curl' USE flag or both enabled." |
94 |
eerror "Please re-emerge dev-libs/xmlrpc-c with USE=\"libwww\" or USE=\"curl\"." |
95 |
echo |
96 |
die "Please re-emerge dev-libs/xmlrpc-c with USE=\"libwww\" or USE=\"curl\"." |
97 |
fi |
98 |
} |
99 |
|
100 |
src_unpack() { |
101 |
unpack ${A} |
102 |
cd "${S}" |
103 |
|
104 |
# Upstream fix, compatibility with -Wl,--gc-sections, bug #235731 |
105 |
epatch "${FILESDIR}/${PN}-2.6.1-gc-sections.patch" |
106 |
|
107 |
# Upstream fix, rpath handling security, bug #224901 |
108 |
epatch "${FILESDIR}/${PN}-2.6.1-rpath.patch" |
109 |
|
110 |
# Link against the shared Python library rather than the static one |
111 |
epatch "${FILESDIR}/${PN}-FindPythonLibs.patch" |
112 |
} |
113 |
|
114 |
src_compile() { |
115 |
if [[ "$(gcc-major-version)" -eq "3" ]] ; then |
116 |
append-flags "-fno-stack-protector" |
117 |
fi |
118 |
|
119 |
tc-export CC CXX LD |
120 |
|
121 |
local qt_arg |
122 |
if use qt4; then |
123 |
qt_arg="--qt-gui" |
124 |
else |
125 |
qt_arg="--no-qt-gui" |
126 |
fi |
127 |
|
128 |
local par_arg |
129 |
echo $MAKEOPTS | egrep -o '(\-j|\-\-jobs)(=?|[[:space:]]*)[[:digit:]]+' > /dev/null |
130 |
if [ $? -eq 0 ]; then |
131 |
par_arg=$(echo $MAKEOPTS | egrep -o '(\-j|\-\-jobs)(=?|[[:space:]]*)[[:digit:]]+' | egrep -o '[[:digit:]]+') |
132 |
par_arg="--parallel=${par_arg}" |
133 |
else |
134 |
par_arg="--parallel=1" |
135 |
fi |
136 |
|
137 |
./bootstrap \ |
138 |
--system-libs \ |
139 |
--prefix=/usr \ |
140 |
--docdir=/share/doc/${PF} \ |
141 |
--datadir=/share/${PN} \ |
142 |
--mandir=/share/man \ |
143 |
"$qt_arg" \ |
144 |
"$par_arg" || die "./bootstrap failed" |
145 |
|
146 |
emake || die "emake failed." |
147 |
if use emacs; then |
148 |
elisp-compile Docs/cmake-mode.el || die "elisp compile failed" |
149 |
fi |
150 |
} |
151 |
|
152 |
src_test() { |
153 |
emake test || \ |
154 |
einfo "note test failure on qtwrapping was expected - nature of portage rather than a true failure" |
155 |
} |
156 |
|
157 |
src_install() { |
158 |
emake install DESTDIR="${D}" || die "install failed" |
159 |
if use emacs; then |
160 |
elisp-install ${PN} Docs/cmake-mode.el Docs/cmake-mode.elc || die "elisp-install failed" |
161 |
elisp-site-file-install "${FILESDIR}/${SITEFILE}" |
162 |
fi |
163 |
if use vim-syntax; then |
164 |
insinto /usr/share/vim/vimfiles/syntax |
165 |
doins "${S}"/Docs/cmake-syntax.vim |
166 |
|
167 |
insinto /usr/share/vim/vimfiles/indent |
168 |
doins "${S}"/Docs/cmake-indent.vim |
169 |
|
170 |
insinto /usr/share/vim/vimfiles/ftdetect |
171 |
doins "${FILESDIR}/${VIMFILE}" |
172 |
fi |
173 |
} |
174 |
|
175 |
pkg_postinst() { |
176 |
use emacs && elisp-site-regen |
177 |
} |
178 |
|
179 |
pkg_postrm() { |
180 |
use emacs && elisp-site-regen |
181 |
} |