From 4f0a540cedeaf5a384463f3bdbc26e8f07e2ab37 Mon Sep 17 00:00:00 2001 From: Stephane Carrez Date: Sat, 14 Dec 2019 22:18:14 +0100 Subject: [PATCH] Add Ada Database Objects 2.0.0 crates - the 'ado' crate is the core library and does not contain any database driver - the 'ado_postgresql' crate depends on 'ado' and is the PostgreSQL driver - the 'ado_sqlite' crate depends on 'ado' and is the SQLite driver There is missing the 'ado_mysql' crate because the library dependency is tricky: we may need one of libmysqlclient or libmariadb libaries. --- index/ad/ado.toml | 29 +++++++++++++++++++++++++++++ index/ad/ado_postgresql.toml | 29 +++++++++++++++++++++++++++++ index/ad/ado_sqlite.toml | 29 +++++++++++++++++++++++++++++ 3 files changed, 87 insertions(+) create mode 100644 index/ad/ado.toml create mode 100644 index/ad/ado_postgresql.toml create mode 100644 index/ad/ado_sqlite.toml diff --git a/index/ad/ado.toml b/index/ad/ado.toml new file mode 100644 index 00000000..eed6914d --- /dev/null +++ b/index/ad/ado.toml @@ -0,0 +1,29 @@ +[general] +description = "Ada Database Objects (Core library)" +licenses = ["Apache 2.0"] +maintainers = ["Stephane.Carrez@gmail.com"] +maintainers-logins = ["stcarrez"] + + project-files = [ + "ado.gpr" + ] + + [general.gpr-externals] + ADO_LIBRARY_TYPE = ["relocatable", "static", "static-pic"] + BUILD = ["distrib", "debug", "optimize", "profile", "coverage"] + + [general.depends-on] + utilada = "^2.0.0" + utilada_xml = "^2.0.0" + + [[general.actions]] + type = "post-fetch" + command = ["rm", "-f", "config.gpr"] + + [[general.actions]] + type = "post-fetch" + command = ["cp", ".alire/ado.gpr", "ado.gpr"] + +['2.0.0'] +origin = "git+https://github.com/stcarrez/ada-ado.git@3de2eb8ba3dd1cfd765c6118bef50248f457afa1" + diff --git a/index/ad/ado_postgresql.toml b/index/ad/ado_postgresql.toml new file mode 100644 index 00000000..0241a15c --- /dev/null +++ b/index/ad/ado_postgresql.toml @@ -0,0 +1,29 @@ +[general] +description = "Ada Database Objects (PostgreSQL)" +licenses = ["Apache 2.0"] +maintainers = ["Stephane.Carrez@gmail.com"] +maintainers-logins = ["stcarrez"] + + project-files = [ + "ado_postgresql.gpr" + ] + + [general.gpr-externals] + ADO_LIBRARY_TYPE = ["relocatable", "static", "static-pic"] + BUILD = ["distrib", "debug", "optimize", "profile", "coverage"] + + [general.depends-on] + ado = "^2.0.0" + + [[general.actions]] + type = "post-fetch" + command = ["rm", "-f", "config.gpr"] + + [[general.actions]] + type = "post-fetch" + command = ["cp", ".alire/ado_postgresql.gpr", "ado_postgresql.gpr"] + +['2.0.0'] +origin = "git+https://github.com/stcarrez/ada-ado.git@3de2eb8ba3dd1cfd765c6118bef50248f457afa1" + + diff --git a/index/ad/ado_sqlite.toml b/index/ad/ado_sqlite.toml new file mode 100644 index 00000000..d3bda4f6 --- /dev/null +++ b/index/ad/ado_sqlite.toml @@ -0,0 +1,29 @@ +[general] +description = "Ada Database Objects (SQLite)" +licenses = ["Apache 2.0"] +maintainers = ["Stephane.Carrez@gmail.com"] +maintainers-logins = ["stcarrez"] + + project-files = [ + "ado_sqlite.gpr" + ] + + [general.gpr-externals] + ADO_LIBRARY_TYPE = ["relocatable", "static", "static-pic"] + BUILD = ["distrib", "debug", "optimize", "profile", "coverage"] + + [general.depends-on] + ado = "^2.0.0" + + [[general.actions]] + type = "post-fetch" + command = ["rm", "-f", "config.gpr"] + + [[general.actions]] + type = "post-fetch" + command = ["cp", ".alire/ado_sqlite.gpr", "ado_sqlite.gpr"] + +['2.0.0'] +origin = "git+https://github.com/stcarrez/ada-ado.git@3de2eb8ba3dd1cfd765c6118bef50248f457afa1" + +