From 614576c9a227dbda3c8405672db28fe0fe00beac Mon Sep 17 00:00:00 2001 From: David Spencer Date: Wed, 18 Nov 2015 22:50:30 +0000 Subject: [PATCH] libraries/openbabel: Updated for version 2.3.2. Patched to build with gcc-5.2.0. Signed-off-by: David Spencer Signed-off-by: Willy Sudiarto Raharjo --- libraries/openbabel/gcc-5.patch | 12 ++++++++++++ libraries/openbabel/openbabel.SlackBuild | 7 +++++-- libraries/openbabel/openbabel.info | 6 +++--- 3 files changed, 20 insertions(+), 5 deletions(-) create mode 100644 libraries/openbabel/gcc-5.patch diff --git a/libraries/openbabel/gcc-5.patch b/libraries/openbabel/gcc-5.patch new file mode 100644 index 0000000000..bd25e0df0b --- /dev/null +++ b/libraries/openbabel/gcc-5.patch @@ -0,0 +1,12 @@ +--- include/openbabel/shared_ptr.h.gcc5 2015-02-04 20:04:57.000000000 +0100 ++++ include/openbabel/shared_ptr.h 2015-02-07 22:10:37.433163644 +0100 +@@ -21,7 +21,7 @@ GNU General Public License for more deta + #define sharedptr boost::shared_ptr + #else + #include +- #if __GNUC__ == 4 //&& __GNUC_MINOR__ < 3 removed at the suggestion of Konstantin Tokarev ++ #if __GNUC__ >= 4 //&& __GNUC_MINOR__ < 3 removed at the suggestion of Konstantin Tokarev + #include + #endif + using std::tr1::shared_ptr; + diff --git a/libraries/openbabel/openbabel.SlackBuild b/libraries/openbabel/openbabel.SlackBuild index 66325ec6fa..7bd54ad595 100644 --- a/libraries/openbabel/openbabel.SlackBuild +++ b/libraries/openbabel/openbabel.SlackBuild @@ -25,7 +25,7 @@ # Thanks to Daniil Bratashov (dn2010@gmail.com) for the cmake conversion PRGNAM=openbabel -VERSION=2.3.1 +VERSION=${VERSION:-2.3.2} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -69,7 +69,10 @@ find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ -o -perm 511 \) -exec chmod 755 {} \; -o \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +# Patch for gcc-5 thanks to Arch +patch -p0 < $CWD/gcc-5.patch mkdir -p build cd build diff --git a/libraries/openbabel/openbabel.info b/libraries/openbabel/openbabel.info index a456bc2832..ff15c8591e 100644 --- a/libraries/openbabel/openbabel.info +++ b/libraries/openbabel/openbabel.info @@ -1,8 +1,8 @@ PRGNAM="openbabel" -VERSION="2.3.1" +VERSION="2.3.2" HOMEPAGE="http://openbabel.sourceforge.net" -DOWNLOAD="http://downloads.sourceforge.net/openbabel/openbabel-2.3.1.tar.gz" -MD5SUM="1f029b0add12a3b55582dc2c832b04f8" +DOWNLOAD="http://downloads.sourceforge.net/openbabel/openbabel-2.3.2.tar.gz" +MD5SUM="9b0007560d9d838b40ab4ad06daf5610" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="jdk"