From 1404b2c1e25e21b433b421790163c32344d03bdd Mon Sep 17 00:00:00 2001 From: Dan Langille Date: Tue, 28 Dec 2021 23:07:35 +0000 Subject: [PATCH] devel/hoel: New port: Database abstraction library Added because it is a dependency of www/glewlwyd - see upcoming commit --- devel/Makefile | 1 + devel/hoel/Makefile | 46 ++++++++++++++++++++++++++++++++++++++++++++ devel/hoel/distinfo | 3 +++ devel/hoel/pkg-descr | 7 +++++++ devel/hoel/pkg-plist | 6 ++++++ 5 files changed, 63 insertions(+) create mode 100644 devel/hoel/Makefile create mode 100644 devel/hoel/distinfo create mode 100644 devel/hoel/pkg-descr create mode 100644 devel/hoel/pkg-plist diff --git a/devel/Makefile b/devel/Makefile index 8e5d9d708b61..5d929ccff89a 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -961,6 +961,7 @@ SUBDIR += hgsvn SUBDIR += hhdate SUBDIR += highlighterkit + SUBDIR += hoel SUBDIR += horde-content SUBDIR += horde-timeobjects SUBDIR += horde-whups diff --git a/devel/hoel/Makefile b/devel/hoel/Makefile new file mode 100644 index 000000000000..14b871c60b03 --- /dev/null +++ b/devel/hoel/Makefile @@ -0,0 +1,46 @@ +PORTNAME= hoel +DISTVERSIONPREFIX= v +DISTVERSION= 1.4.14 +CATEGORIES= devel + +MAINTAINER= dvl@FreeBSD.org +COMMENT= Database abstraction library written in C + +LICENSE= LGPL21 +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= cmake + +USE_GITHUB= yes +GH_ACCOUNT= babelouest + +LIB_DEPENDS+= libjansson.so:devel/jansson +LIB_DEPENDS+= liborcania.so:devel/orcania + +BUILD_DEPENDS+= orcania>0:devel/orcania +BUILD_DEPENDS+= yder>0:devel/yder + +RUN_DEPENDS+= jansson>0:devel/jansson +RUN_DEPENDS+= yder>0:devel/yder + +OPTIONS_DEFINE= MARIADB PGSQL SQLITE3 +OPTIONS_DEFAULT= PGSQL + +PGSQL_DESC= Use PostgreSQL as backend +SQLITE3_DESC= Use SQLite 3 as backend +MARIADB_DESC= Use MariaDB as backend + +MARIADB_USES= mariadb +PGSQL_USES= pgsql +SQLITE3_USES= sqlite3 + +MARIADB_CMAKE_BOOL= WITH_MARIADB +PGSQL_CMAKE_BOOL= WITH_PGSQL +SQLITE3_CMAKE_BOOL= WITH_SQLITE3 + +CMAKE_ARGS= -DWITH_JOURNALD=off +# -DWITH_PGSQL=on +# -DWITH_SQLITE3=off +# -DWITH_MARIADB=off + +.include diff --git a/devel/hoel/distinfo b/devel/hoel/distinfo new file mode 100644 index 000000000000..66f3f80048e5 --- /dev/null +++ b/devel/hoel/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1640726967 +SHA256 (babelouest-hoel-v1.4.14_GH0.tar.gz) = 613920cb9ab7cebb1435117f8f750b19b93b7eae2ce7204bef0564b882a2333d +SIZE (babelouest-hoel-v1.4.14_GH0.tar.gz) = 203595 diff --git a/devel/hoel/pkg-descr b/devel/hoel/pkg-descr new file mode 100644 index 000000000000..1078e43d59c3 --- /dev/null +++ b/devel/hoel/pkg-descr @@ -0,0 +1,7 @@ +Database abstraction library written in C. + +Simple and easy to use database access library. Works with SQLite 3, +MariaDB and PostgreSQL databases. Uses a JSON-based language with +jansson to execute simple queries based on one table. + +WWW: https://github.com/babelouest/hoel diff --git a/devel/hoel/pkg-plist b/devel/hoel/pkg-plist new file mode 100644 index 000000000000..75646e234adb --- /dev/null +++ b/devel/hoel/pkg-plist @@ -0,0 +1,6 @@ +include/hoel-cfg.h +include/hoel.h +lib/libhoel.so +lib/libhoel.so.1.4 +lib/libhoel.so.1.4.14 +libdata/pkgconfig/libhoel.pc