summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorGlenn Johnson <glenn-johnson@uiowa.edu>2021-04-13 19:31:25 -0500
committerGitHub <noreply@github.com>2021-04-13 17:31:25 -0700
commit13de22a198403e5979596c067fae5164f1199227 (patch)
tree63f65ca7f94fb84a8b1a9bcc9dcf5c9d1f386db9 /var
parentf76952572f42b1c6369f99c61834ce0b8f65e09e (diff)
downloadspack-13de22a198403e5979596c067fae5164f1199227.tar.gz
spack-13de22a198403e5979596c067fae5164f1199227.tar.bz2
spack-13de22a198403e5979596c067fae5164f1199227.tar.xz
spack-13de22a198403e5979596c067fae5164f1199227.zip
New package: mysqlpp (mysql++) (#22877)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/mysqlpp/package.py35
1 files changed, 35 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/mysqlpp/package.py b/var/spack/repos/builtin/packages/mysqlpp/package.py
new file mode 100644
index 0000000000..8547cc11de
--- /dev/null
+++ b/var/spack/repos/builtin/packages/mysqlpp/package.py
@@ -0,0 +1,35 @@
+# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+from spack import *
+
+
+class Mysqlpp(AutotoolsPackage):
+ """MySQL++ is a C++ wrapper for MySQL and MariaDB C APIs. It is built on
+ the same principles as the Standard C++ Library to make dealing with the
+ database as easy as dealing with std containers. MySQL++ also provides
+ facilities that let you avoid the most repetitive sorts of SQL within your
+ own code, providing native C++ interfaces for these common tasks."""
+
+ homepage = "https://tangentsoft.com/mysqlpp/home"
+ url = "https://tangentsoft.com/mysqlpp/releases/mysql++-3.2.5.tar.gz"
+
+ version('3.2.5', sha256='839cfbf71d50a04057970b8c31f4609901f5d3936eaa86dab3ede4905c4db7a8')
+
+ depends_on('mysql-client')
+
+ def configure_args(self):
+ if '^mariadb-c-client' in self.spec:
+ args = [
+ '--with-mysql-include={0}'.format(
+ self.spec['mysql-client'].prefix.include.mariadb),
+ '--with-mysql-lib={0}'.format(
+ self.spec['mysql-client'].prefix.lib.mariadb),
+ ]
+ else:
+ args = [
+ '--with-mysql={0}'.format(self.spec['mysql-client'].prefix),
+ ]
+ return args