[arch-commits] Commit in kalzium/repos/kde-unstable-x86_64 (4 files)

Antonio Rojas arojas at archlinux.org
Fri Apr 3 20:35:54 UTC 2020


    Date: Friday, April 3, 2020 @ 20:35:54
  Author: arojas
Revision: 379344

archrelease: copy kde-unstable to kde-unstable-x86_64

Added:
  kalzium/repos/kde-unstable-x86_64/PKGBUILD
    (from rev 379343, kalzium/kde-unstable/PKGBUILD)
  kalzium/repos/kde-unstable-x86_64/kalzium-openbabel3.patch
    (from rev 379343, kalzium/kde-unstable/kalzium-openbabel3.patch)
Deleted:
  kalzium/repos/kde-unstable-x86_64/PKGBUILD
  kalzium/repos/kde-unstable-x86_64/kalzium-openbabel3.patch

--------------------------+
 PKGBUILD                 |   84 ++++++++++++++++++++++-----------------------
 kalzium-openbabel3.patch |   50 +++++++++++++-------------
 2 files changed, 67 insertions(+), 67 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-04-03 20:35:16 UTC (rev 379343)
+++ PKGBUILD	2020-04-03 20:35:54 UTC (rev 379344)
@@ -1,42 +0,0 @@
-# Maintainer: Antonio Rojas <arojas at archlinux.org>
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=kalzium
-pkgver=20.03.80
-pkgrel=1
-pkgdesc="Periodic Table of Elements"
-url="https://kde.org/applications/education/kalzium/"
-arch=(x86_64)
-license=(GPL LGPL FDL)
-depends=(kparts knewstuff kplotting kunitconversion qt5-script avogadrolibs openbabel vtk hicolor-icon-theme)
-makedepends=(extra-cmake-modules kdoctools eigen ocaml facile python)
-groups=(kde-applications kdeedu)
-source=("https://download.kde.org/unstable/release-service/$pkgver/src/$pkgname-$pkgver.tar.xz"{,.sig}
-        kalzium-openbabel3.patch)
-sha256sums=('4febf877143fc892701811dbeeadedf3ac39c7f4edb87bc3f1235c15a5664785'
-            'SKIP'
-            '820550c6443cec572b28338899d2be871acc42fc02654a0df48a306b7cce09d5')
-validpgpkeys=(CA262C6C83DE4D2FB28A332A3A6A4DB839EAA6D7  # Albert Astals Cid <aacid at kde.org>
-              F23275E4BF10AFC1DF6914A6DBD2CE893E2D1C87) # Christoph Feck <cfeck at kde.org>
-
-prepare() {
-  mkdir -p build
-
-  cd $pkgname-$pkgver
-  patch -p1 -i ../kalzium-openbabel3.patch
-}
-
-build() {
-  cd build
-  cmake ../$pkgname-$pkgver \
-    -DBUILD_TESTING=OFF \
-    -DOPENBABEL2_INCLUDE_DIR=/usr/include/openbabel3 \
-    -DOPENBABEL2_LIBRARIES=/usr/lib/libopenbabel.so \
-    -DOPENBABEL2_VERSION_MET=TRUE
-  make
-}
-
-package() {
-  cd build
-  make DESTDIR="$pkgdir" install
-}

Copied: kalzium/repos/kde-unstable-x86_64/PKGBUILD (from rev 379343, kalzium/kde-unstable/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-04-03 20:35:54 UTC (rev 379344)
@@ -0,0 +1,42 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=kalzium
+pkgver=20.03.90
+pkgrel=1
+pkgdesc="Periodic Table of Elements"
+url="https://kde.org/applications/education/kalzium/"
+arch=(x86_64)
+license=(GPL LGPL FDL)
+depends=(kparts knewstuff kplotting kunitconversion qt5-script avogadrolibs openbabel vtk hicolor-icon-theme)
+makedepends=(extra-cmake-modules kdoctools eigen ocaml facile python)
+groups=(kde-applications kdeedu)
+source=("https://download.kde.org/unstable/release-service/$pkgver/src/$pkgname-$pkgver.tar.xz"{,.sig}
+        kalzium-openbabel3.patch)
+sha256sums=('8f2bffcf3d73ae87c5ff368af411b4b9becc34ee708ca4cba0c3968cdd2bda79'
+            'SKIP'
+            '820550c6443cec572b28338899d2be871acc42fc02654a0df48a306b7cce09d5')
+validpgpkeys=(CA262C6C83DE4D2FB28A332A3A6A4DB839EAA6D7  # Albert Astals Cid <aacid at kde.org>
+              F23275E4BF10AFC1DF6914A6DBD2CE893E2D1C87) # Christoph Feck <cfeck at kde.org>
+
+prepare() {
+  mkdir -p build
+
+  cd $pkgname-$pkgver
+  patch -p1 -i ../kalzium-openbabel3.patch
+}
+
+build() {
+  cd build
+  cmake ../$pkgname-$pkgver \
+    -DBUILD_TESTING=OFF \
+    -DOPENBABEL2_INCLUDE_DIR=/usr/include/openbabel3 \
+    -DOPENBABEL2_LIBRARIES=/usr/lib/libopenbabel.so \
+    -DOPENBABEL2_VERSION_MET=TRUE
+  make
+}
+
+package() {
+  cd build
+  make DESTDIR="$pkgdir" install
+}

Deleted: kalzium-openbabel3.patch
===================================================================
--- kalzium-openbabel3.patch	2020-04-03 20:35:16 UTC (rev 379343)
+++ kalzium-openbabel3.patch	2020-04-03 20:35:54 UTC (rev 379344)
@@ -1,25 +0,0 @@
-diff --git a/src/kalziumschemetype.cpp b/src/kalziumschemetype.cpp
-index 91a5cbf0..e2935916 100644
---- a/src/kalziumschemetype.cpp
-+++ b/src/kalziumschemetype.cpp
-@@ -23,7 +23,7 @@
- #include "prefs.h"
- 
- #ifdef HAVE_OPENBABEL2
--#include <openbabel/mol.h>
-+#include <openbabel/elements.h>
- #endif
- 
- #include <QBrush>
-@@ -406,8 +407,9 @@ QBrush KalziumColorSchemeType::elementBrush(int el) const
- {
-     QColor c;
- 
--    std::vector<double> color = OpenBabel::etab.GetRGB(el);
--    c.setRgbF(color[0], color[1], color[2]);
-+    double red, green, blue;
-+    OpenBabel::OBElements::GetRGB(el, &red, &green, &blue);
-+    c.setRgbF(red, green, blue);
- 
-     return QBrush(c);
- }

Copied: kalzium/repos/kde-unstable-x86_64/kalzium-openbabel3.patch (from rev 379343, kalzium/kde-unstable/kalzium-openbabel3.patch)
===================================================================
--- kalzium-openbabel3.patch	                        (rev 0)
+++ kalzium-openbabel3.patch	2020-04-03 20:35:54 UTC (rev 379344)
@@ -0,0 +1,25 @@
+diff --git a/src/kalziumschemetype.cpp b/src/kalziumschemetype.cpp
+index 91a5cbf0..e2935916 100644
+--- a/src/kalziumschemetype.cpp
++++ b/src/kalziumschemetype.cpp
+@@ -23,7 +23,7 @@
+ #include "prefs.h"
+ 
+ #ifdef HAVE_OPENBABEL2
+-#include <openbabel/mol.h>
++#include <openbabel/elements.h>
+ #endif
+ 
+ #include <QBrush>
+@@ -406,8 +407,9 @@ QBrush KalziumColorSchemeType::elementBrush(int el) const
+ {
+     QColor c;
+ 
+-    std::vector<double> color = OpenBabel::etab.GetRGB(el);
+-    c.setRgbF(color[0], color[1], color[2]);
++    double red, green, blue;
++    OpenBabel::OBElements::GetRGB(el, &red, &green, &blue);
++    c.setRgbF(red, green, blue);
+ 
+     return QBrush(c);
+ }



More information about the arch-commits mailing list