[arch-commits] Commit in mysql++/repos/community-x86_64 (6 files)

Sven-Hendrik Haase svenstaro at archlinux.org
Wed Apr 28 20:07:11 UTC 2021


    Date: Wednesday, April 28, 2021 @ 20:07:11
  Author: svenstaro
Revision: 925012

archrelease: copy trunk to community-x86_64

Added:
  mysql++/repos/community-x86_64/PKGBUILD
    (from rev 925011, mysql++/trunk/PKGBUILD)
  mysql++/repos/community-x86_64/mysql++-fix-cstring.patch
    (from rev 925011, mysql++/trunk/mysql++-fix-cstring.patch)
  mysql++/repos/community-x86_64/mysql++-fix-size_t.patch
    (from rev 925011, mysql++/trunk/mysql++-fix-size_t.patch)
Deleted:
  mysql++/repos/community-x86_64/PKGBUILD
  mysql++/repos/community-x86_64/mysql++-fix-cstring.patch
  mysql++/repos/community-x86_64/mysql++-fix-size_t.patch

---------------------------+
 PKGBUILD                  |   81 ++++++++++++++++++++++----------------------
 mysql++-fix-cstring.patch |   22 +++++------
 mysql++-fix-size_t.patch  |   42 +++++++++++-----------
 3 files changed, 73 insertions(+), 72 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-04-28 20:07:03 UTC (rev 925011)
+++ PKGBUILD	2021-04-28 20:07:11 UTC (rev 925012)
@@ -1,40 +0,0 @@
-# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
-# Contributor: Markus Härer <markus.haerer at gmx.net>
-
-pkgname=mysql++
-pkgver=3.2.5
-pkgrel=1
-pkgdesc="A C++ wrapper for MySQLs C API"
-arch=("x86_64")
-url="http://tangentsoft.net/mysql++/"
-license=("LGPL" "custom")
-depends=("mariadb-libs")
-options=('docs')
-source=("https://tangentsoft.net/mysqlpp/releases/$pkgname-$pkgver.tar.gz"
-	"mysql++-fix-cstring.patch"
-	"mysql++-fix-size_t.patch")
-sha256sums=('b780beeb3a9cd9ce6a9043028527484df8e822c58c5274d4d67ec5ba2fc0a778'
-            'c005b6a8736578f935996e5249e8048e887d7cfb9c76ab0428543710b7622af0'
-            '22a1aed639923206b0b79ec1e3f2a1b3c1bd896b52519526fd0af08c54fd3762')
-
-build() {
-  unset LDFLAGS
-  cd "$srcdir/$pkgname-$pkgver/"
-  patch -p1 <"$srcdir"/mysql++-fix-cstring.patch
-  patch -p1 <"$srcdir"/mysql++-fix-size_t.patch
-  ./configure --prefix=/usr
-  make
-}
-
-package() {
-  cd "$srcdir/$pkgname-$pkgver/"
-  make DESTDIR="$pkgdir" install
-
-  #install docs
-  mkdir -p "$pkgdir"/usr/share/doc/mysql++
-  cp -r doc/html "$pkgdir"/usr/share/doc/mysql++
-  cp -r doc/pdf "$pkgdir"/usr/share/doc/mysql++
-
-  #install doc licence
-  install -Dm0644 doc/userman/LICENSE.txt "$pkgdir"/usr/share/licenses/mysql++/LICENSE
-}

Copied: mysql++/repos/community-x86_64/PKGBUILD (from rev 925011, mysql++/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-04-28 20:07:11 UTC (rev 925012)
@@ -0,0 +1,41 @@
+# Maintainer: Sven-Hendrik Haase <svenstaro at gmail.com>
+# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Markus Härer <markus.haerer at gmx.net>
+
+pkgname=mysql++
+pkgver=3.2.5
+pkgrel=2
+pkgdesc="A C++ wrapper for MySQLs C API"
+arch=("x86_64")
+url="http://tangentsoft.net/mysql++/"
+license=("LGPL" "custom")
+depends=("mariadb-libs")
+options=('docs')
+source=("https://tangentsoft.net/mysqlpp/releases/$pkgname-$pkgver.tar.gz"
+	"mysql++-fix-cstring.patch"
+	"mysql++-fix-size_t.patch")
+sha256sums=('839cfbf71d50a04057970b8c31f4609901f5d3936eaa86dab3ede4905c4db7a8'
+            'c005b6a8736578f935996e5249e8048e887d7cfb9c76ab0428543710b7622af0'
+            '22a1aed639923206b0b79ec1e3f2a1b3c1bd896b52519526fd0af08c54fd3762')
+
+build() {
+  unset LDFLAGS
+  cd "$srcdir/$pkgname-$pkgver/"
+  patch -p1 <"$srcdir"/mysql++-fix-cstring.patch
+  patch -p1 <"$srcdir"/mysql++-fix-size_t.patch
+  ./configure --prefix=/usr
+  make
+}
+
+package() {
+  cd "$srcdir/$pkgname-$pkgver/"
+  make DESTDIR="$pkgdir" install
+
+  #install docs
+  mkdir -p "$pkgdir"/usr/share/doc/mysql++
+  cp -r doc/html "$pkgdir"/usr/share/doc/mysql++
+  cp -r doc/pdf "$pkgdir"/usr/share/doc/mysql++
+
+  #install doc licence
+  install -Dm0644 doc/userman/LICENSE.txt "$pkgdir"/usr/share/licenses/mysql++/LICENSE
+}

Deleted: mysql++-fix-cstring.patch
===================================================================
--- mysql++-fix-cstring.patch	2021-04-28 20:07:03 UTC (rev 925011)
+++ mysql++-fix-cstring.patch	2021-04-28 20:07:11 UTC (rev 925012)
@@ -1,11 +0,0 @@
-diff -Naur mysql++-3.1.0.old/ssx/genv2.cpp mysql++-3.1.0/ssx/genv2.cpp
---- mysql++-3.1.0.old/ssx/genv2.cpp	2010-06-12 11:12:11.574891331 +0200
-+++ mysql++-3.1.0/ssx/genv2.cpp	2010-06-12 11:14:00.564881723 +0200
-@@ -35,6 +35,7 @@
- #include <iostream>
- #include <fstream>
- #include <typeinfo>
-+#include <cstring>
- 
- using namespace std;
- 

Copied: mysql++/repos/community-x86_64/mysql++-fix-cstring.patch (from rev 925011, mysql++/trunk/mysql++-fix-cstring.patch)
===================================================================
--- mysql++-fix-cstring.patch	                        (rev 0)
+++ mysql++-fix-cstring.patch	2021-04-28 20:07:11 UTC (rev 925012)
@@ -0,0 +1,11 @@
+diff -Naur mysql++-3.1.0.old/ssx/genv2.cpp mysql++-3.1.0/ssx/genv2.cpp
+--- mysql++-3.1.0.old/ssx/genv2.cpp	2010-06-12 11:12:11.574891331 +0200
++++ mysql++-3.1.0/ssx/genv2.cpp	2010-06-12 11:14:00.564881723 +0200
+@@ -35,6 +35,7 @@
+ #include <iostream>
+ #include <fstream>
+ #include <typeinfo>
++#include <cstring>
+ 
+ using namespace std;
+ 

Deleted: mysql++-fix-size_t.patch
===================================================================
--- mysql++-fix-size_t.patch	2021-04-28 20:07:03 UTC (rev 925011)
+++ mysql++-fix-size_t.patch	2021-04-28 20:07:11 UTC (rev 925012)
@@ -1,21 +0,0 @@
-diff -Naur mysql++-3.1.0.old//lib/refcounted.h mysql++-3.1.0/lib/refcounted.h
---- mysql++-3.1.0.old//lib/refcounted.h	2010-06-03 19:59:23.000000000 +0200
-+++ mysql++-3.1.0/lib/refcounted.h	2011-04-23 12:35:39.943366970 +0200
-@@ -101,7 +101,7 @@
- 	{
- 		std::auto_ptr<T> exception_guard(counted_);
- 		if (counted_) {
--			refs_ = new size_t(1);
-+			refs_ = new std::size_t(1);
- 		}
- 		exception_guard.release();	// previous new didn't throw
- 	}
-@@ -255,7 +255,7 @@
- 	/// We can't keep this as a plain integer because this object
- 	/// allows itself to be copied.  All copies need to share this
- 	/// reference count, not just the pointer to the counted object.
--	size_t* refs_;
-+	std::size_t* refs_;
- };
- 
- 

Copied: mysql++/repos/community-x86_64/mysql++-fix-size_t.patch (from rev 925011, mysql++/trunk/mysql++-fix-size_t.patch)
===================================================================
--- mysql++-fix-size_t.patch	                        (rev 0)
+++ mysql++-fix-size_t.patch	2021-04-28 20:07:11 UTC (rev 925012)
@@ -0,0 +1,21 @@
+diff -Naur mysql++-3.1.0.old//lib/refcounted.h mysql++-3.1.0/lib/refcounted.h
+--- mysql++-3.1.0.old//lib/refcounted.h	2010-06-03 19:59:23.000000000 +0200
++++ mysql++-3.1.0/lib/refcounted.h	2011-04-23 12:35:39.943366970 +0200
+@@ -101,7 +101,7 @@
+ 	{
+ 		std::auto_ptr<T> exception_guard(counted_);
+ 		if (counted_) {
+-			refs_ = new size_t(1);
++			refs_ = new std::size_t(1);
+ 		}
+ 		exception_guard.release();	// previous new didn't throw
+ 	}
+@@ -255,7 +255,7 @@
+ 	/// We can't keep this as a plain integer because this object
+ 	/// allows itself to be copied.  All copies need to share this
+ 	/// reference count, not just the pointer to the counted object.
+-	size_t* refs_;
++	std::size_t* refs_;
+ };
+ 
+ 



More information about the arch-commits mailing list