[arch-commits] Commit in cmake/trunk (PKGBUILD python2.7.patch)
Andrea Scarpino
andrea at archlinux.org
Fri Sep 10 19:52:48 UTC 2010
Date: Friday, September 10, 2010 @ 15:52:47
Author: andrea
Revision: 90346
add a patch which add python 2.7 compatibility
Added:
cmake/trunk/python2.7.patch
Modified:
cmake/trunk/PKGBUILD
-----------------+
PKGBUILD | 40 ++++++++++++++++++++++------------------
python2.7.patch | 12 ++++++++++++
2 files changed, 34 insertions(+), 18 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2010-09-10 18:39:15 UTC (rev 90345)
+++ PKGBUILD 2010-09-10 19:52:47 UTC (rev 90346)
@@ -6,7 +6,7 @@
pkgname=cmake
pkgver=2.8.2
-pkgrel=2
+pkgrel=3
pkgdesc="A cross-platform open-source make system"
arch=('i686' 'x86_64')
license=('custom')
@@ -15,27 +15,31 @@
makedepends=('qt')
optdepends=('qt: cmake-gui')
install=${pkgname}.install
-source=("http://www.cmake.org/files/v2.8/${pkgname}-${pkgver}.tar.gz")
-md5sums=('8c967d5264657a798f22ee23976ff0d9')
+source=("http://www.cmake.org/files/v2.8/${pkgname}-${pkgver}.tar.gz"
+ 'python2.7.patch')
+md5sums=('8c967d5264657a798f22ee23976ff0d9'
+ '26a39133ec6fe1abe215cd74236f18d3')
build() {
- cd $srcdir/$pkgname-$pkgver
- ./bootstrap --prefix=/usr \
- --mandir=/share/man \
- --docdir=/share/doc/cmake \
- --system-libs \
- --qt-gui \
- --parallel=2
- make
+ cd ${srcdir}/${pkgname}-${pkgver}
+ patch -Np1 -i ${srcdir}/python2.7.patch
+
+ ./bootstrap --prefix=/usr \
+ --mandir=/share/man \
+ --docdir=/share/doc/cmake \
+ --system-libs \
+ --qt-gui \
+ --parallel=2
+ make
}
package() {
- cd ${srcdir}/${pkgname}-${pkgver}
- make DESTDIR=${pkgdir} install
+ cd ${srcdir}/${pkgname}-${pkgver}
+ make DESTDIR=${pkgdir} install
- vimpath="$pkgdir/usr/share/vim/vimfiles"
- install -Dm644 Docs/cmake-indent.vim $vimpath/indent/cmake-indent.vim
- install -Dm644 Docs/cmake-syntax.vim $vimpath/syntax/cmake-syntax.vim
- install -Dm644 Docs/cmake-mode.el $pkgdir/usr/share/emacs/site-lisp/cmake-mode.el
- install -Dm644 Copyright.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE
+ vimpath="$pkgdir/usr/share/vim/vimfiles"
+ install -Dm644 Docs/cmake-indent.vim ${vimpath}/indent/cmake-indent.vim
+ install -Dm644 Docs/cmake-syntax.vim ${vimpath}/syntax/cmake-syntax.vim
+ install -Dm644 Docs/cmake-mode.el ${pkgdir}/usr/share/emacs/site-lisp/cmake-mode.el
+ install -Dm644 Copyright.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}
Added: python2.7.patch
===================================================================
--- python2.7.patch (rev 0)
+++ python2.7.patch 2010-09-10 19:52:47 UTC (rev 90346)
@@ -0,0 +1,12 @@
+diff -ur cmake-2.8.2/Modules/FindPythonLibs.cmake cmake-2.8.2-python27/Modules/FindPythonLibs.cmake
+--- cmake-2.8.2/Modules/FindPythonLibs.cmake 2010-06-28 17:15:57.000000000 +0200
++++ cmake-2.8.2-python27/Modules/FindPythonLibs.cmake 2010-07-23 20:42:29.000000000 +0200
+@@ -27,7 +27,7 @@
+ # Search for the python framework on Apple.
+ CMAKE_FIND_FRAMEWORKS(Python)
+
+-FOREACH(_CURRENT_VERSION 2.6 2.5 2.4 2.3 2.2 2.1 2.0 1.6 1.5)
++FOREACH(_CURRENT_VERSION 2.7 2.6 2.5 2.4 2.3 2.2 2.1 2.0 1.6 1.5)
+ STRING(REPLACE "." "" _CURRENT_VERSION_NO_DOTS ${_CURRENT_VERSION})
+ IF(WIN32)
+ FIND_LIBRARY(PYTHON_DEBUG_LIBRARY
More information about the arch-commits
mailing list