Gentoo Archives: gentoo-commits

From: "Andreas HAttel (dilfridge)" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-util/cmake: ChangeLog cmake-2.8.6-r2.ebuild cmake-2.8.6-r1.ebuild
Date: Sat, 29 Oct 2011 21:49:39
Message-Id: 20111029214929.D613F2004B@flycatcher.gentoo.org
1 dilfridge 11/10/29 21:49:29
2
3 Modified: ChangeLog
4 Added: cmake-2.8.6-r2.ebuild
5 Removed: cmake-2.8.6-r1.ebuild
6 Log:
7 Fix FindLAPACK, bug 388757
8
9 (Portage version: 2.1.10.31/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.173 dev-util/cmake/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/cmake/ChangeLog?rev=1.173&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/cmake/ChangeLog?rev=1.173&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/cmake/ChangeLog?r1=1.172&r2=1.173
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/dev-util/cmake/ChangeLog,v
21 retrieving revision 1.172
22 retrieving revision 1.173
23 diff -u -r1.172 -r1.173
24 --- ChangeLog 19 Oct 2011 21:10:58 -0000 1.172
25 +++ ChangeLog 29 Oct 2011 21:49:29 -0000 1.173
26 @@ -1,6 +1,13 @@
27 # ChangeLog for dev-util/cmake
28 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/dev-util/cmake/ChangeLog,v 1.172 2011/10/19 21:10:58 dilfridge Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/dev-util/cmake/ChangeLog,v 1.173 2011/10/29 21:49:29 dilfridge Exp $
31 +
32 +*cmake-2.8.6-r2 (29 Oct 2011)
33 +
34 + 29 Oct 2011; Andreas K. Huettel <dilfridge@g.o>
35 + -cmake-2.8.6-r1.ebuild, +cmake-2.8.6-r2.ebuild,
36 + +files/cmake-2.8.6-FindLAPACK-2.patch:
37 + Fix FindLAPACK, bug 388757
38
39 19 Oct 2011; Andreas K. Huettel <dilfridge@g.o> cmake-2.8.6-r1.ebuild:
40 Fix java 7 sandbox violation, bug 387227
41
42
43
44 1.1 dev-util/cmake/cmake-2.8.6-r2.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/cmake/cmake-2.8.6-r2.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/cmake/cmake-2.8.6-r2.ebuild?rev=1.1&content-type=text/plain
48
49 Index: cmake-2.8.6-r2.ebuild
50 ===================================================================
51 # Copyright 1999-2011 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.8.6-r2.ebuild,v 1.1 2011/10/29 21:49:29 dilfridge Exp $
54
55 EAPI=4
56
57 CMAKE_REMOVE_MODULES="no"
58 inherit elisp-common toolchain-funcs eutils versionator flag-o-matic base cmake-utils virtualx
59
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 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~sparc-fbsd ~x86-fbsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
68 SLOT="0"
69 IUSE="emacs ncurses qt4 vim-syntax"
70
71 DEPEND="
72 >=app-arch/libarchive-2.8.0
73 >=net-misc/curl-7.20.0-r1[ssl]
74 >=dev-libs/expat-2.0.1
75 dev-util/pkgconfig
76 sys-libs/zlib
77 ncurses? ( sys-libs/ncurses )
78 qt4? ( x11-libs/qt-gui:4 )
79 "
80 RDEPEND="${DEPEND}
81 emacs? ( virtual/emacs )
82 vim-syntax? (
83 || (
84 app-editors/vim
85 app-editors/gvim
86 )
87 )
88 "
89
90 SITEFILE="50${PN}-gentoo.el"
91 VIMFILE="${PN}.vim"
92
93 S="${WORKDIR}/${MY_P}"
94
95 CMAKE_BINARY="${S}/Bootstrap.cmk/cmake"
96
97 # Fixme:
98 # Boost patchset is foobared and should respect eselect / slotting
99 PATCHES=(
100 "${FILESDIR}"/${PN}-2.6.3-darwin-bundle.patch
101 "${FILESDIR}"/${PN}-2.6.3-no-duplicates-in-rpath.patch
102 "${FILESDIR}"/${PN}-2.6.3-fix_broken_lfs_on_aix.patch
103 "${FILESDIR}"/${PN}-2.8.0-darwin-default-install_name.patch
104 "${FILESDIR}"/${PN}-2.8.1-libform.patch
105 "${FILESDIR}"/${PN}-2.8.4-FindPythonLibs.patch
106 "${FILESDIR}"/${PN}-2.8.3-more-no_host_paths.patch
107 "${FILESDIR}"/${PN}-2.8.3-ruby_libname.patch
108 "${FILESDIR}"/${PN}-2.8.4-FindBoost.patch
109 "${FILESDIR}"/${PN}-2.8.6-FindBLAS.patch
110 "${FILESDIR}"/${PN}-2.8.6-FindLAPACK-2.patch
111 )
112 cmake_src_bootstrap() {
113 # Cleanup args to extract only JOBS.
114 # Because bootstrap does not know anything else.
115 echo ${MAKEOPTS} | egrep -o '(\-j|\-\-jobs)(=?|[[:space:]]*)[[:digit:]]+' > /dev/null
116 if [ $? -eq 0 ]; then
117 par_arg=$(echo ${MAKEOPTS} | egrep -o '(\-j|\-\-jobs)(=?|[[:space:]]*)[[:digit:]]+' | egrep -o '[[:digit:]]+')
118 par_arg="--parallel=${par_arg}"
119 else
120 par_arg="--parallel=1"
121 fi
122
123 tc-export CC CXX LD
124
125 ./bootstrap \
126 --prefix="${T}/cmakestrap/" \
127 ${par_arg} \
128 || die "Bootstrap failed"
129 }
130
131 cmake_src_test() {
132 # fix OutDir test
133 # this is altered thanks to our eclass
134 sed -i -e 's:#IGNORE ::g' "${S}"/Tests/OutDir/CMakeLists.txt || die
135 pushd "${CMAKE_BUILD_DIR}" > /dev/null
136 # Excluded tests:
137 # BootstrapTest: we actualy bootstrap it every time so why test it.
138 # SimpleCOnly_sdcc: sdcc choke on global cflags so just skip the test
139 # as it was never intended to be used this way.
140 "${CMAKE_BUILD_DIR}"/bin/ctest \
141 -E BootstrapTest SimpleCOnly_sdcc \
142 || die "Tests failed"
143 popd > /dev/null
144 }
145
146 pkg_setup() {
147 einfo "Fixing java access violations ..."
148 # bug 387227
149 addpredict /proc/self/coredump_filter
150 }
151
152 src_prepare() {
153 base_src_prepare
154
155 # disable running of cmake in boostrap command
156 sed -i \
157 -e '/"${cmake_bootstrap_dir}\/cmake"/s/^/#DONOTRUN /' \
158 bootstrap || die "sed failed"
159
160 # Add gcc libs to the default link paths
161 sed -i \
162 -e "s|@GENTOO_PORTAGE_GCCLIBDIR@|${EPREFIX}/usr/${CHOST}/lib/|g" \
163 -e "s|@GENTOO_PORTAGE_EPREFIX@|${EPREFIX}/|g" \
164 Modules/Platform/{UnixPaths,Darwin}.cmake || die "sed failed"
165
166 cmake_src_bootstrap
167 }
168
169 src_configure() {
170 # make things work with gentoo java setup
171 # in case java-config cannot be run, the variable just becomes unset
172 # per bug #315229
173 export JAVA_HOME=$(java-config -g JAVA_HOME 2> /dev/null)
174
175 local mycmakeargs=(
176 -DCMAKE_USE_SYSTEM_LIBRARIES=ON
177 -DCMAKE_INSTALL_PREFIX="${EPREFIX}"/usr
178 -DCMAKE_DOC_DIR=/share/doc/${PF}
179 -DCMAKE_MAN_DIR=/share/man
180 -DCMAKE_DATA_DIR=/share/${PN}
181 $(cmake-utils_use_build ncurses CursesDialog)
182 $(cmake-utils_use_build qt4 QtDialog)
183 )
184 cmake-utils_src_configure
185 }
186
187 src_compile() {
188 cmake-utils_src_compile
189 use emacs && elisp-compile Docs/cmake-mode.el
190 }
191
192 src_test() {
193 VIRTUALX_COMMAND="cmake_src_test" virtualmake
194 }
195
196 src_install() {
197 cmake-utils_src_install
198 if use emacs; then
199 elisp-install ${PN} Docs/cmake-mode.el Docs/cmake-mode.elc
200 elisp-site-file-install "${FILESDIR}/${SITEFILE}"
201 fi
202 if use vim-syntax; then
203 insinto /usr/share/vim/vimfiles/syntax
204 doins Docs/cmake-syntax.vim
205
206 insinto /usr/share/vim/vimfiles/indent
207 doins Docs/cmake-indent.vim
208
209 insinto /usr/share/vim/vimfiles/ftdetect
210 doins "${FILESDIR}/${VIMFILE}"
211 fi
212 }
213
214 pkg_postinst() {
215 use emacs && elisp-site-regen
216 }
217
218 pkg_postrm() {
219 use emacs && elisp-site-regen
220 }