summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Langille <dvl@FreeBSD.org>2021-12-28 23:07:35 +0000
committerDan Langille <dvl@FreeBSD.org>2021-12-29 01:23:01 +0000
commit1404b2c1e25e21b433b421790163c32344d03bdd (patch)
treeb2ac243301803f20459bc4db82d7d6ebe4c0d83b
parentdevel/yder: Add new port: Logging library in C (diff)
devel/hoel: New port: Database abstraction library
Added because it is a dependency of www/glewlwyd - see upcoming commit
Diffstat (limited to '')
-rw-r--r--devel/Makefile1
-rw-r--r--devel/hoel/Makefile46
-rw-r--r--devel/hoel/distinfo3
-rw-r--r--devel/hoel/pkg-descr7
-rw-r--r--devel/hoel/pkg-plist6
5 files changed, 63 insertions, 0 deletions
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 <bsd.port.mk>
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