Browse Source

xap/avogadro: Upgraded to avogadro-1.1.1.

slackware-14.2
Damien Goutte-Gattat 8 years ago
parent
commit
c0062de5f1
  1. 1
      xap/avogadro/avogadro-1.0.1.tar.bz2.sha1
  2. 58
      xap/avogadro/avogadro-1.1.1-fix-includes.diff
  3. 1
      xap/avogadro/avogadro-1.1.1.tar.bz2.sha1
  4. 15
      xap/avogadro/avogadro.SlackBuild

1
xap/avogadro/avogadro-1.0.1.tar.bz2.sha1

@ -1 +0,0 @@
ba45826d904f58161334b4182f092e07a021d4ff avogadro-1.0.1.tar.bz2

58
xap/avogadro/avogadro-1.1.1-fix-includes.diff

@ -0,0 +1,58 @@
diff -Naur avogadro-1.1.1.orig/libavogadro/src/extensions/crystallography/avospglib.h avogadro-1.1.1/libavogadro/src/extensions/crystallography/avospglib.h
--- avogadro-1.1.1.orig/libavogadro/src/extensions/crystallography/avospglib.h 2013-12-06 16:50:04.000000000 +0100
+++ avogadro-1.1.1/libavogadro/src/extensions/crystallography/avospglib.h 2013-12-25 18:32:51.088783303 +0100
@@ -18,6 +18,7 @@
#ifndef AVOSPGLIB_H
#define AVOSPGLIB_H
+#include <cstddef>
#include <Eigen/Core>
#include <QtCore/QList>
diff -Naur avogadro-1.1.1.orig/libavogadro/src/extensions/surfaces/openqube/cube.h avogadro-1.1.1/libavogadro/src/extensions/surfaces/openqube/cube.h
--- avogadro-1.1.1.orig/libavogadro/src/extensions/surfaces/openqube/cube.h 2013-12-06 16:50:04.000000000 +0100
+++ avogadro-1.1.1/libavogadro/src/extensions/surfaces/openqube/cube.h 2013-12-25 18:38:57.017870180 +0100
@@ -17,6 +17,8 @@
#ifndef OQ_CUBE_H
#define OQ_CUBE_H
+#include <cstddef>
+
#include "openqubeabi.h"
#include <vector>
diff -Naur avogadro-1.1.1.orig/libavogadro/src/extensions/surfaces/openqube/molden.h avogadro-1.1.1/libavogadro/src/extensions/surfaces/openqube/molden.h
--- avogadro-1.1.1.orig/libavogadro/src/extensions/surfaces/openqube/molden.h 2013-12-06 16:50:04.000000000 +0100
+++ avogadro-1.1.1/libavogadro/src/extensions/surfaces/openqube/molden.h 2013-12-25 18:39:59.305199884 +0100
@@ -17,6 +17,8 @@
#ifndef MOLDEN_H
#define MOLDEN_H
+#include <cstddef>
+
#include <Eigen/Core>
#include <vector>
diff -Naur avogadro-1.1.1.orig/libavogadro/src/extensions/surfaces/openqube/molecule.h avogadro-1.1.1/libavogadro/src/extensions/surfaces/openqube/molecule.h
--- avogadro-1.1.1.orig/libavogadro/src/extensions/surfaces/openqube/molecule.h 2013-12-06 16:50:04.000000000 +0100
+++ avogadro-1.1.1/libavogadro/src/extensions/surfaces/openqube/molecule.h 2013-12-25 18:37:40.058696777 +0100
@@ -17,6 +17,8 @@
#ifndef OQ_MOLECULE_H
#define OQ_MOLECULE_H
+#include <cstddef>
+
#include "openqubeabi.h"
#include "atom.h"
diff -Naur avogadro-1.1.1.orig/libavogadro/src/tools/eyecandy.h avogadro-1.1.1/libavogadro/src/tools/eyecandy.h
--- avogadro-1.1.1.orig/libavogadro/src/tools/eyecandy.h 2013-12-06 16:50:04.000000000 +0100
+++ avogadro-1.1.1/libavogadro/src/tools/eyecandy.h 2013-12-25 18:32:24.116069751 +0100
@@ -25,6 +25,7 @@
#ifndef EYECANDY_H
#define EYECANDY_H
+#include <cstddef>
#include <Eigen/Core>
namespace Avogadro {

1
xap/avogadro/avogadro-1.1.1.tar.bz2.sha1

@ -0,0 +1 @@
e89b5cb9456149ca1de38ff0204bc4a96a73e9db avogadro-1.1.1.tar.bz2

15
xap/avogadro/avogadro.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2010 Damien Goutte-Gattat
# Copyright (C) 2010,2013 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -29,7 +29,7 @@
# Source package infos
NAMESRC=${NAMESRC:-avogadro}
VERSION=${VERSION:-1.0.1}
VERSION=${VERSION:-1.1.1}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.bz2}
WGET=${WGET:-http://downloads.sourceforge.net/avogadro/$ARCHIVE}
@ -86,18 +86,21 @@ cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
patch -p 1 < $CWD/avogadro-1.1.1-fix-includes.diff
mkdir build && cd build
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DLIB_SUFFIX=$LIBDIRSUFFIX \
-DENABLE_UPDATE_CHECKER=no
-DENABLE_UPDATE_CHECKER=no \
..
make -j $JOBS
make install/strip DESTDIR=$PKG
(
cd doc
cd ../doc
./generate_handbook.sh
)
cd ..
rm -rf $PKG/usr/features
# Move and compress man pages
mv $PKG/usr/share/man $PKG/usr/

Loading…
Cancel
Save