[arch-commits] Commit in avogadro/trunk (PKGBUILD sip-4.11.patch)
Andrea Scarpino
andrea at archlinux.org
Tue Nov 2 14:35:43 UTC 2010
Date: Tuesday, November 2, 2010 @ 10:35:42
Author: andrea
Revision: 97995
rebuild for sip 4.11 (FS#21569)
Added:
avogadro/trunk/sip-4.11.patch
Modified:
avogadro/trunk/PKGBUILD
----------------+
PKGBUILD | 11 ++++++++---
sip-4.11.patch | 34 ++++++++++++++++++++++++++++++++++
2 files changed, 42 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2010-11-02 13:40:28 UTC (rev 97994)
+++ PKGBUILD 2010-11-02 14:35:42 UTC (rev 97995)
@@ -4,17 +4,22 @@
pkgname=avogadro
pkgver=1.0.1
-pkgrel=1
+pkgrel=2
pkgdesc="An advanced molecular editor based on Qt"
arch=('i686' 'x86_64')
url="http://avogadro.openmolecules.net/wiki/Main_Page"
license=('GPL2')
depends=('eigen' 'openbabel' 'pyqt' 'boost-libs' 'glew' 'python-numpy')
makedepends=('cmake' 'boost')
-source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.bz2")
-md5sums=('0d5c391197101f0aab7be6b59f81e6fd')
+source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.bz2"
+ 'sip-4.11.patch')
+md5sums=('0d5c391197101f0aab7be6b59f81e6fd'
+ 'e78c3f96d0dc702947f75de1c094f580')
build() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+ patch -Np1 -i ${srcdir}/sip-4.11.patch
+
cd ${srcdir}
mkdir build
cd build
Added: sip-4.11.patch
===================================================================
--- sip-4.11.patch (rev 0)
+++ sip-4.11.patch 2010-11-02 14:35:42 UTC (rev 97995)
@@ -0,0 +1,34 @@
+diff -ur avogadro-1.0.1/cmake/modules/PythonDeps.cmake avogadro-1.0.1-sip411/cmake/modules/PythonDeps.cmake
+--- avogadro-1.0.1/cmake/modules/PythonDeps.cmake 2010-05-02 18:31:22.000000000 +0200
++++ avogadro-1.0.1-sip411/cmake/modules/PythonDeps.cmake 2010-09-14 19:11:50.000000000 +0200
+@@ -59,10 +59,13 @@
+ if (EXISTS ${PYTHON_INCLUDE_PATH}/sip.h)
+ message(STATUS "Found sip.h header...")
+ execute_process(COMMAND sip -V OUTPUT_VARIABLE SIP_VERSION)
+- if (${SIP_VERSION} VERSION_GREATER "4.8")
++ if (NOT ${SIP_VERSION} VERSION_LESS "4.11")
++ message(STATUS "using sip version 4.11 or above...")
++ add_definitions( -DSIP_4_11 -DSIP_4_8 )
++ elseif (NOT ${SIP_VERSION} VERSION_LESS "4.8")
+ message(STATUS "using sip version 4.8 or above...")
+ add_definitions( -DSIP_4_8 )
+- endif (${SIP_VERSION} VERSION_GREATER "4.8")
++ endif (NOT ${SIP_VERSION} VERSION_LESS "4.11")
+ else (EXISTS ${PYTHON_INCLUDE_PATH}/sip.h)
+ message(STATUS "sip.h header NOT found - Python support disabled")
+ # message(STATUS "debian/ubuntu: install the python-sip4-dev package.")
+diff -ur avogadro-1.0.1/libavogadro/src/python/sip.cpp avogadro-1.0.1-sip411/libavogadro/src/python/sip.cpp
+--- avogadro-1.0.1/libavogadro/src/python/sip.cpp 2010-05-02 18:31:22.000000000 +0200
++++ avogadro-1.0.1-sip411/libavogadro/src/python/sip.cpp 2010-09-14 19:13:31.000000000 +0200
+@@ -204,7 +204,11 @@
+ sipWrapper *wrapper = reinterpret_cast<sipWrapper*>(obj_ptr);
+ #endif
+ // return the C++ pointer
++#ifdef SIP_4_11
++ return sip_API->api_get_address(wrapper);
++#else
+ return wrapper->u.cppPtr;
++#endif
+ }
+
+ QClass_converters()
More information about the arch-commits
mailing list