Portage is a package management system used by Gentoo Linux
# ChangeLog for dev-util/cmake
# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/cmake/ChangeLog,v 1.72 2008/05/08 15:53:11 cryos Exp $
*cmake-2.6.0 (08 May 2008)
08 May 2008; Marcus D. Hanwell
+files/cmake-FindPythonLibs.patch, +cmake-2.6.0.ebuild:
Version bump, masked for now until it receives wider testing.
22 Feb 2008; Ingmar Vanhassel
-cmake-2.4.3.ebuild, -cmake-2.4.4.ebuild, -cmake-2.4.5.ebuild,
-cmake-2.4.6.ebuild, -cmake-2.4.7.ebuild, -cmake-2.4.7-r2.ebuild,
-cmake-2.4.8_rc12.ebuild:
Old.
11 Feb 2008; Diego Pettenò
cmake-2.4.8_rc12.ebuild, cmake-2.4.8.ebuild:
Remove --no-as-needed, xmlrpc-c caused the bug and is now fixed. If you want
to build cmake with --as-needed rebuild your xmlrpc-c.
*cmake-2.4.8 (09 Feb 2008)
09 Feb 2008; Bo Ørsted Andresen
Version bump (bug #208618).
*cmake-2.4.8_rc12 (14 Jan 2008)
14 Jan 2008; Ingmar Vanhassel
+cmake-2.4.8_rc12.ebuild:
Bump to latest RC.
13 Jan 2008; Wulf C. Krueger
cmake-2.4.7-r2.ebuild:
Dropped ~mips to get bug 194031 out of the way. Filed bug 205633 for
re-keywording.
17 Dec 2007; Wulf C. Krueger
cmake-2.4.7-r2.ebuild:
Added a check to make sure dev-libs/xmlrpc-c has been installed with
suitable USE flags. Fixes bug 194405.
10 Oct 2007; Christian Heim
cmake-2.4.7.ebuild, cmake-2.4.7-r1.ebuild, cmake-2.4.7-r2.ebuild:
Fixing #156800 by issuing -fno-stack-protector if we are having a GCC_MAJOR
equal to 3.
*cmake-2.4.7-r2 (27 Sep 2007)
27 Sep 2007; Wulf C. Krueger
+files/FindSWIG.cmake, +cmake-2.4.7-r2.ebuild:
cmake-2.4.7-r2 now uses the system libraries during the bootstrap process
instead of the bundled versions. Fixes bug 178999. Furthermore, it features
a new FindSWIG.cmake module as provided by Axel Roebel on upstream bug 4145.
Fixes our bug 192594.
*cmake-2.4.7-r1 (07 Sep 2007)
07 Sep 2007; Wulf C. Krueger
+files/cmake-2.4.7-findkde4.patch, +cmake-2.4.7-r1.ebuild:
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!
19 Jul 2007; Marcus D. Hanwell
Moved to testing, fixes bug 185832. Sorry.
*cmake-2.4.7 (18 Jul 2007)
18 Jul 2007; Marcus D. Hanwell
Version bump.
26 Jun 2007; Lars Weiler
Stable on ppc; bug #182724.
21 Jun 2007; Raúl Porcel
alpha/ia64/x86 stable wrt #182724
21 Jun 2007; Jeroen Roovers
Stable for HPPA (bug #182724).
21 Jun 2007; Gustavo Zacarias
Stable on sparc wrt #182724
21 Jun 2007; Joshua Kinard
Stable on mips, per #182724.
20 Jun 2007; Christoph Mende
Stable on amd64 wrt bug 182724
20 Jun 2007; Markus Rothe
Stable on ppc64; bug #182724
*cmake-2.4.6-r1 (07 Jun 2007)
07 Jun 2007; Wulf C. Krueger
+files/50cmake-gentoo.el, +files/cmake.vim, +cmake-2.4.6-r1.ebuild:
Added patches by Jack Kelly from bug 180667 to add vim and emacs syntax
files. Thanks, Jack!
*cmake-2.4.6 (29 Jan 2007)
29 Jan 2007; Diego Pettenò
Version bump, closes bug #163487.
04 Jan 2007; Diego Pettenò
Get rid of debug.eclass usage.
16 Dec 2006; Stefan Schweizer
inherit qt3 to avoid sandbox violations thanks to Johannes Hirte
158161
*cmake-2.4.5 (13 Dec 2006)
13 Dec 2006; Stefan Schweizer
-files/cmake-2.0.6-rpath-fix.patch, -files/cmake-2.2.0-rpath-fix.patch,
-files/cmake-2.2.1-rpath-fix.patch, -files/cmake-2.2.2-rpath-fix.patch,
-files/cmake-2.2.3-rpath-fix.patch, -files/cmake-2.4.2-kde.patch,
-files/cmake-2.4.2-rpath-fix.patch, -cmake-2.0.6-r1.ebuild,
-cmake-2.2.0-r1.ebuild, -cmake-2.2.1.ebuild, -cmake-2.2.2.ebuild,
-cmake-2.2.3.ebuild, -cmake-2.4.2.ebuild, -cmake-2.4.2-r1.ebuild,
+cmake-2.4.5.ebuild:
version bump
08 Dec 2006; Jeroen Roovers
Stable for HPPA (bug #155307).
06 Dec 2006; Bryan Østergaard
Stable on Alpha.
01 Dec 2006; Gustavo Zacarias
Stable on sparc wrt #155307
30 Nov 2006; Markus Rothe
Stable on ppc64; bug #155307
30 Nov 2006; Christian Faulhammer
stable x86, bug #155307
30 Nov 2006; Lars Weiler
Stable on ppc; bug #155307.
29 Nov 2006; Steve Dibb
amd64 stable, fixed some copyright headers too, bug 155307
*cmake-2.4.4 (29 Nov 2006)
29 Nov 2006; Stefan Schweizer
Version bump thanks to Didier Link
21 Oct 2006; Tobias Scherbaum
ppc stable
24 Sep 2006; Daniel Black
herd kde to take maintainence thanks Diego
*cmake-2.4.3 (16 Sep 2006)
16 Sep 2006; Daniel Black
version bump as per bug #143337 thanks to Nick Bowler et al
20 Jul 2006;
stable on mips
*cmake-2.4.2-r1 (30 Jun 2006)
30 Jun 2006; Daniel Black
+files/cmake-2.4.2-kde.patch, +cmake-2.4.2-r1.ebuild:
removed rpath patch - nolonger needed as per bug #137918 thanks Dan. KDE
plugin path added as per bug #137918 thanks to Michael. KDE plugin path patch
thanks to Andreas Beckermann kde bug #129737
25 May 2006; Diego Pettenò
Add ~x86-fbsd keyword.
*cmake-2.4.2 (24 May 2006)
24 May 2006; Daniel Black
+files/cmake-2.4.2-rpath-fix.patch, +cmake-2.4.2.ebuild:
verion bump as per bug #131080 thanks to Tobias Roeser, Diego, and others
29 Apr 2006; Jason Wever
Stable on SPARC.
06 Feb 2006; Aron Griffis
Mark 2.2.1 stable on alpha
04 Feb 2006; Aron Griffis
Mark 2.2.1 stable on ia64
*cmake-2.2.3 (16 Jan 2006)
16 Jan 2006; Lisa Seelye
+files/cmake-2.2.3-rpath-fix.patch, +cmake-2.2.3.ebuild:
Version bump to solve bug #118822
*cmake-2.2.2 (08 Nov 2005)
08 Nov 2005; Lisa Seelye
+files/cmake-2.2.2-rpath-fix.patch, +cmake-2.2.2.ebuild:
version bump to solve bug #111881
29 Oct 2005; Daniel Goller
Stable on amd64
02 Oct 2005; Daniel Black
-cmake-2.0.6.ebuild:
remove rpath vulnerable versions: bug 105721
02 Oct 2005; Bryan Østergaard
Stable on ia64, bug 105721.
29 Sep 2005; Fernando J. Pereda
stable on alpha wrt bug #105721
26 Sep 2005; Stefan Briesenick
fixing parallel build problem (emake -j1).
*cmake-2.2.1 (26 Sep 2005)
*cmake-2.2.0-r1 (26 Sep 2005)
*cmake-2.0.6-r1 (26 Sep 2005)
26 Sep 2005; Daniel Black
+files/cmake-2.0.6-rpath-fix.patch, +files/cmake-2.2.0-rpath-fix.patch,
+files/cmake-2.2.1-rpath-fix.patch, +cmake-2.0.6-r1.ebuild,
-cmake-2.2.0.ebuild, +cmake-2.2.0-r1.ebuild, +cmake-2.2.1.ebuild:
insecure runpaths as per security bug #105721 resulted in 2.2.0-r1 and
2.0.6-r1. Thanks Ashu Tiwary. version bump to 2.2.1 as per bug #106781 by
David Somers
02 Sep 2005; Michael Hanselmann
Stable on ppc.
23 Aug 2005; Aron Griffis
stable on ia64
*cmake-2.2.0 (20 Aug 2005)
20 Aug 2005; Daniel Black
cmake-2.0.6.ebuild, +cmake-2.2.0.ebuild:
version bump (bug #99045). thanks david somers. x86 stable on 2.0.6. old
version removal
05 Aug 2005; Aaron Walker
Added ~mips.
02 Jul 2005; Bryan Østergaard
Stable on alpha.
12 May 2005; Aron Griffis
add ~ia64
24 Apr 2005; Michael Hanselmann
Stable on ppc.
*cmake-2.0.6 (21 Apr 2005)
21 Apr 2005; Daniel Black
+cmake-2.0.6.ebuild:
Version bump as per bug #89394. Thanks to david somers
23 Mar 2005; Daniel Black
cmake-2.0.5.ebuild:
x86 stable as per bug #86292. Old version removal. Thanks to david somers
18 Jan 2005; Bryan Østergaard
Stable on alpha.
*cmake-2.0.5 (01 Jan 2005)
01 Jan 2005; Daniel Black
-cmake-1.8.3.ebuild, cmake-2.0.2.ebuild, cmake-2.0.3.ebuild,
+cmake-2.0.5.ebuild:
version bump as per bug #76291.x86 keywords to 2.0.2 and 2.0.3. Remove
old version 1.8.3. Thanks to david somers
the notification.
31 Dec 2004; Ciaran McCreesh
Change encoding to UTF-8 for GLEP 31 compliance
24 Nov 2004; Karol Wojtaszek
Added to ~amd64, bug #72299
*cmake-2.0.3 (10 Aug 2004)
10 Aug 2004; Mike Frysinger
Version bump.
*cmake-2.0.2 (02 Jul 2004)
02 Jul 2004; Lisa Seelye
version bump for bug #55558
03 Jun 2004; Bryan Østergaard
Stable on alpha.
*cmake-1.8.3 (24 Feb 2004)
24 Feb 2004; Lisa Seelye
cmake-1.8.2.ebuild, cmake-1.8.3.ebuild:
Remove old 1.8.1, bump 1.8.2 to stable on x86, add 1.8.3 to the tree to close
bug #42613
*cmake-1.8.2 (09 Jan 2004)
09 Jan 2004; Lisa Seelye
Version bump, closes bug #36619.
*cmake-1.8.1 (08 Dec 2003)
08 Dec 2003; Lisa Seelye
Initial checkin. Submitted by Sam Yates
25334.
AUX 50cmake-gentoo.el 244 RMD160 effb4416a5170ed7c99ea74084f2598e2482fdf0 SHA1 c34102f3343980275169144b40af6ec69a87d7fc SHA256 6010e6df84aa23050fcbc490ae2b22802ede0870ff2e96c43fe541e97e0d6c00
AUX FindSWIG.cmake 2263 RMD160 c56589a1b2401b3b55a5d3f5336d8ad7d797b4c6 SHA1 c3687448a47ba49d9d03fea5ed0ba93cb85b60ae SHA256 5be6bdbfaf93f7d69845544b697d120732341ed2d8af043cdd43f5a892d06de0
AUX cmake-2.0.6-rpath-fix.patch 526 RMD160 9039e42ce4def8ae7ce38946cb55b95b4502a1e9 SHA1 8e181634b1663a27139682309fb4180a0dbaa82d SHA256 18c58ecf9bdddce15764ab3481aba570e3378f8d8b1c5306a050b2c33323a1bc
AUX cmake-2.4.7-findkde4.patch 1884 RMD160 918d56910e18ffec856f1cc67d0b67117736ae09 SHA1 6314d9dea24bfbcd262517aceead4b273e116c54 SHA256 bd22024e222d7bd0d99fa932bf193803acb956887bb6b41ecf2eca96ba0a5e3b
AUX cmake-FindPythonLibs.patch 530 RMD160 3e012fbf78d649d6c8111d72d384da3b1b838268 SHA1 0576f44f61465b8403471f0648653226f843d3bd SHA256 1e7bff2a1e999ac877ffeac1414e54e1685c5ef303d698db50d81201029204ab
AUX cmake.vim 217 RMD160 3ac23077646d31e9c29ff32ae2eba20b63c07809 SHA1 527b989aec74eb260c16f93baf189c2e6794b3d8 SHA256 7366c1d45bdcc93efb1954216a5427a5f9df7e98a1f706c357576d7835aaebc5
DIST cmake-2.4.6.tar.gz 2604547 RMD160 61af13faecd10e85a0fee3252630b30b8781987a SHA1 5290aaf949413ee7f77275ba68e73cec1546364b SHA256 afb82bcf732d317f254b51ffdcd95e0a3b3c101c02f3751b12ce25fe46c0c304
DIST cmake-2.4.7.tar.gz 2600960 RMD160 7fed176c42f39c25e1d4c761436aa4d5a8a64e3a SHA1 72308fdd131d5a5ad1c617769c16a417ebec0004 SHA256 2fd5feb294b933ae3a0071b8c7a396797cf79dfe6b0ffeff8788e07ff4107d56
DIST cmake-2.4.8.tar.gz 2608800 RMD160 3f75f77a0eca4c1e1e4506b00c56ca441f78c853 SHA1 5d253b128274cc9517bce92fc25798d55baa253b SHA256 f20607d4f33376ea648307681630574662d0c3f59d88a7a02ad547b6320631f1
DIST cmake-2.6.0.tar.gz 3460096 RMD160 491aa0f7eedd3c43364bcfe675ba5526e5140361 SHA1 e99ee84f413bd1c728fe6def1eb5e27d0471bd27 SHA256 4999d3054a04e6cf4847a72316e32e9e98e6152b1fd72adc87d15e305f990f27
EBUILD cmake-2.4.6-r1.ebuild 1933 RMD160 db78c10337212e1509cfbde355f9a5df954e347d SHA1 82048b8a1f483bafb1cb7fb3817c1ac56d804c2d SHA256 2504feaecd4ceae8c757da875d8a5d191be5783c0b9498dcc9f94c29ddaa76fb
EBUILD cmake-2.4.7-r1.ebuild 2103 RMD160 c508a57af1782d997537316a155277d9dba8f54a SHA1 68d0d5aa0ef76b492df5795f2539a9f0973abcca SHA256 f09541251a3d019e9813eaaa9817f24e778905e9d4591d5f6bf7a0fb3763f805
EBUILD cmake-2.4.8.ebuild 2786 RMD160 3a3fe9e0c38d2ab111e6b33e406786a8036b947e SHA1 b77551366524b13e51776251bf5e0411f244f9cb SHA256 3e2dcfa3c8ec27729d86596743ef1da35a990975fda769b38f9f50d819bfcbe7
EBUILD cmake-2.6.0.ebuild 2637 RMD160 fba08e88510cdd3413c678f94ff599ca98e4a6e1 SHA1 f87852b977103959c371f4c0d2076102df851273 SHA256 f516b1ffadc9da4e5cc09add360ea782454d773611758798ee45f865619b5e47
MISC ChangeLog 11244 RMD160 0de2a0438b07220b4ed33c9f40683c6ff8d2e541 SHA1 8973cf8927ad7543f21c87047a2e7e206842cdb5 SHA256 ea6e904246b9c36163b06b81c5ab1dccaa3f8de6ef54794d8f0e9038251831e4
MISC metadata.xml 157 RMD160 09fb7b798f3f68127626e97c69e5215a0513ecbb SHA1 d5ffebb2f4248fc8f65ab21c3af6e4f5dbf8bf6e SHA256 01f6fa4357ce08e8b0f7900a51fa78c7f060fefc7c7da98acaec1e283dd59892
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/cmake/cmake-2.4.6-r1.ebuild,v 1.11 2008/02/22 18:00:15 ingmar Exp $
inherit elisp-common toolchain-funcs eutils versionator qt3 flag-o-matic
DESCRIPTION="Cross platform Make"
HOMEPAGE="http://www.cmake.org/"
SRC_URI="http://www.cmake.org/files/v$(get_version_component_range 1-2)/${P}.tar.gz"
LICENSE="CMake"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
IUSE="emacs vim-syntax"
DEPEND="emacs? ( virtual/emacs )
vim-syntax? ( || (
app-editors/vim
app-editors/gvim ) )"
RDEPEND="${DEPEND}"
SITEFILE="50${PN}-gentoo.el"
VIMFILE="${PN}.vim"
src_compile() {
if [ "$(gcc-major-version)" -eq "3" ] ; then
append-flags "-fno-stack-protector"
fi
tc-export CC CXX LD
./bootstrap \
--prefix=/usr \
--docdir=/share/doc/${PN} \
--datadir=/share/${PN} \
--mandir=/share/man || die "./bootstrap failed"
emake || die
if use emacs; then
elisp-compile Docs/cmake-mode.el || die "elisp compile failed"
fi
}
src_test() {
einfo "Self tests broken"
make test || \
einfo "note test failure on qtwrapping was expected - nature of portage rather than a true failure"
}
src_install() {
make install DESTDIR="${D}" || die "install failed"
mv "${D}"usr/share/doc/cmake "${D}"usr/share/doc/${PF}
if use emacs; then
elisp-install ${PN} Docs/cmake-mode.el Docs/cmake-mode.elc || die "elisp-install failed"
elisp-site-file-install "${FILESDIR}/${SITEFILE}"
fi
if use vim-syntax; then
insinto /usr/share/vim/vimfiles/syntax
doins "${S}"/Docs/cmake-syntax.vim
insinto /usr/share/vim/vimfiles/indent
doins "${S}"/Docs/cmake-indent.vim
insinto /usr/share/vim/vimfiles/ftdetect
doins "${FILESDIR}/${VIMFILE}"
fi
}
pkg_postinst() {
use emacs && elisp-site-regen
}
pkg_postrm() {
use emacs && elisp-site-regen
}
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/cmake/cmake-2.4.7-r1.ebuild,v 1.4 2008/02/22 18:00:15 ingmar Exp $
inherit elisp-common toolchain-funcs eutils versionator qt3 flag-o-matic
DESCRIPTION="Cross platform Make"
HOMEPAGE="http://www.cmake.org/"
SRC_URI="http://www.cmake.org/files/v$(get_version_component_range 1-2)/${P}.tar.gz"
LICENSE="CMake"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
IUSE="emacs vim-syntax"
DEPEND="emacs? ( virtual/emacs )
vim-syntax? ( || (
app-editors/vim
app-editors/gvim ) )"
RDEPEND="${DEPEND}"
SITEFILE="50${PN}-gentoo.el"
VIMFILE="${PN}.vim"
src_unpack() {
unpack ${A}
cd "${S}"
# Upstream patch to make sure KDE4 is found. cf. bug 191412.
epatch "${FILESDIR}/${P}-findkde4.patch"
}
src_compile() {
if [ "$(gcc-major-version)" -eq "3" ] ; then
append-flags "-fno-stack-protector"
fi
tc-export CC CXX LD
./bootstrap \
--prefix=/usr \
--docdir=/share/doc/${PN} \
--datadir=/share/${PN} \
--mandir=/share/man || die "./bootstrap failed"
emake || die
if use emacs; then
elisp-compile Docs/cmake-mode.el || die "elisp compile failed"
fi
}
src_test() {
einfo "Self tests broken"
make test || \
einfo "note test failure on qtwrapping was expected - nature of portage rather than a true failure"
}
src_install() {
make install DESTDIR="${D}" || die "install failed"
mv "${D}"usr/share/doc/cmake "${D}"usr/share/doc/${PF}
if use emacs; then
elisp-install ${PN} Docs/cmake-mode.el Docs/cmake-mode.elc || die "elisp-install failed"
elisp-site-file-install "${FILESDIR}/${SITEFILE}"
fi
if use vim-syntax; then
insinto /usr/share/vim/vimfiles/syntax
doins "${S}"/Docs/cmake-syntax.vim
insinto /usr/share/vim/vimfiles/indent
doins "${S}"/Docs/cmake-indent.vim
insinto /usr/share/vim/vimfiles/ftdetect
doins "${FILESDIR}/${VIMFILE}"
fi
}
pkg_postinst() {
use emacs && elisp-site-regen
}
pkg_postrm() {
use emacs && elisp-site-regen
}
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/cmake/cmake-2.4.8.ebuild,v 1.2 2008/02/11 19:41:38 flameeyes Exp $
inherit elisp-common toolchain-funcs eutils versionator qt3 flag-o-matic
MY_PV="${PV/rc/RC-}"
MY_P="${PN}-$(replace_version_separator 3 - ${MY_PV})"
DESCRIPTION="Cross platform Make"
HOMEPAGE="http://www.cmake.org/"
SRC_URI="http://www.cmake.org/files/v$(get_version_component_range 1-2)/${MY_P}.tar.gz"
LICENSE="CMake"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
IUSE="emacs vim-syntax"
DEPEND=">=net-misc/curl-7.16.4
>=dev-libs/expat-2.0.1
>=dev-libs/libxml2-2.6.28
>=dev-libs/xmlrpc-c-1.06.09
emacs? ( virtual/emacs )
vim-syntax? ( || (
app-editors/vim
app-editors/gvim ) )"
RDEPEND="${DEPEND}"
SITEFILE="50${PN}-gentoo.el"
VIMFILE="${PN}.vim"
S="${WORKDIR}/${MY_P}"
pkg_setup() {
if ! built_with_use -o dev-libs/xmlrpc-c curl libwww; then
echo
eerror "${PN} requires dev-libs/xmlrpc-c to be built with either the 'libwww' or"
eerror "the 'curl' USE flag or both enabled."
eerror "Please re-emerge dev-libs/xmlrpc-c with USE=\"libwww\" or USE=\"curl\"."
echo
die "Please re-emerge dev-libs/xmlrpc-c with USE=\"libwww\" or USE=\"curl\"."
fi
}
src_unpack() {
unpack ${A}
cd "${S}"
# Upstream's version is broken. Reported in upstream bugs 3498, 3637, 4145.
# Fixed version kindly provided on 4145 by Axel Roebel.
cp "${FILESDIR}/FindSWIG.cmake" "${S}/Modules/"
}
src_compile() {
if [[ "$(gcc-major-version)" -eq "3" ]] ; then
append-flags "-fno-stack-protector"
fi
tc-export CC CXX LD
./bootstrap \
--system-libs \
--prefix=/usr \
--docdir=/share/doc/${PN} \
--datadir=/share/${PN} \
--mandir=/share/man || die "./bootstrap failed"
emake || die "emake failed."
if use emacs; then
elisp-compile Docs/cmake-mode.el || die "elisp compile failed"
fi
}
src_test() {
emake test || \
einfo "note test failure on qtwrapping was expected - nature of portage rather than a true failure"
}
src_install() {
emake install DESTDIR="${D}" || die "install failed"
mv "${D}usr/share/doc/cmake" "${D}usr/share/doc/${PF}"
if use emacs; then
elisp-install ${PN} Docs/cmake-mode.el Docs/cmake-mode.elc || die "elisp-install failed"
elisp-site-file-install "${FILESDIR}/${SITEFILE}"
fi
if use vim-syntax; then
insinto /usr/share/vim/vimfiles/syntax
doins "${S}"/Docs/cmake-syntax.vim
insinto /usr/share/vim/vimfiles/indent
doins "${S}"/Docs/cmake-indent.vim
insinto /usr/share/vim/vimfiles/ftdetect
doins "${FILESDIR}/${VIMFILE}"
fi
}
pkg_postinst() {
use emacs && elisp-site-regen
}
pkg_postrm() {
use emacs && elisp-site-regen
}
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/cmake/cmake-2.6.0.ebuild,v 1.1 2008/05/08 15:53:11 cryos Exp $
inherit elisp-common toolchain-funcs eutils versionator qt3 flag-o-matic
MY_PV="${PV/rc/RC-}"
MY_P="${PN}-$(replace_version_separator 3 - ${MY_PV})"
DESCRIPTION="Cross platform Make"
HOMEPAGE="http://www.cmake.org/"
SRC_URI="http://www.cmake.org/files/v$(get_version_component_range 1-2)/${MY_P}.tar.gz"
LICENSE="CMake"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
IUSE="emacs vim-syntax"
DEPEND=">=net-misc/curl-7.16.4
>=dev-libs/expat-2.0.1
>=dev-libs/libxml2-2.6.28
>=dev-libs/xmlrpc-c-1.06.09
emacs? ( virtual/emacs )
vim-syntax? ( || (
app-editors/vim
app-editors/gvim ) )"
RDEPEND="${DEPEND}"
SITEFILE="50${PN}-gentoo.el"
VIMFILE="${PN}.vim"
pkg_setup() {
if ! built_with_use -o dev-libs/xmlrpc-c curl libwww; then
echo
eerror "${PN} requires dev-libs/xmlrpc-c to be built with either the 'libwww' or"
eerror "the 'curl' USE flag or both enabled."
eerror "Please re-emerge dev-libs/xmlrpc-c with USE=\"libwww\" or USE=\"curl\"."
echo
die "Please re-emerge dev-libs/xmlrpc-c with USE=\"libwww\" or USE=\"curl\"."
fi
}
src_unpack() {
unpack ${A}
cd "${S}"
# Link against the shared Python library rather than the static one
epatch "${FILESDIR}/${PN}-FindPythonLibs.patch"
}
src_compile() {
if [[ "$(gcc-major-version)" -eq "3" ]] ; then
append-flags "-fno-stack-protector"
fi
tc-export CC CXX LD
./bootstrap \
--system-libs \
--prefix=/usr \
--docdir=/share/doc/${PF} \
--datadir=/share/${PN} \
--mandir=/share/man || die "./bootstrap failed"
emake || die "emake failed."
if use emacs; then
elisp-compile Docs/cmake-mode.el || die "elisp compile failed"
fi
}
src_test() {
emake test || \
einfo "note test failure on qtwrapping was expected - nature of portage rather than a true failure"
}
src_install() {
emake install DESTDIR="${D}" || die "install failed"
if use emacs; then
elisp-install ${PN} Docs/cmake-mode.el Docs/cmake-mode.elc || die "elisp-install failed"
elisp-site-file-install "${FILESDIR}/${SITEFILE}"
fi
if use vim-syntax; then
insinto /usr/share/vim/vimfiles/syntax
doins "${S}"/Docs/cmake-syntax.vim
insinto /usr/share/vim/vimfiles/indent
doins "${S}"/Docs/cmake-indent.vim
insinto /usr/share/vim/vimfiles/ftdetect
doins "${FILESDIR}/${VIMFILE}"
fi
}
pkg_postinst() {
use emacs && elisp-site-regen
}
pkg_postrm() {
use emacs && elisp-site-regen
}