pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

trifecta: add new package and its dependencies



Module Name:	pkgsrc-wip
Committed By:	Thomas Klausner <wiz%NetBSD.org@localhost>
Pushed By:	wiz
Date:		Sun May 19 09:30:31 2024 +0200
Changeset:	518c7913f91fd7d34c24928587c2e4e4c4126105

Modified Files:
	Makefile
	TODO
Added Files:
	argparse/DESCR
	argparse/Makefile
	argparse/PLIST
	argparse/buildlink3.mk
	argparse/distinfo
	bcryptcpp/DESCR
	bcryptcpp/Makefile
	bcryptcpp/PLIST
	bcryptcpp/buildlink3.mk
	bcryptcpp/distinfo
	bcryptcpp/files/bcryptcpp.pc
	simplesocket/DESCR
	simplesocket/Makefile
	simplesocket/PLIST
	simplesocket/buildlink3.mk
	simplesocket/distinfo
	simplesocket/files/simplesockets.pc
	sqlitewrite/DESCR
	sqlitewrite/Makefile
	sqlitewrite/PLIST
	sqlitewrite/TODO
	sqlitewrite/buildlink3.mk
	sqlitewrite/distinfo
	sqlitewrite/files/sqlitewrite.pc
	sqlitewrite/patches/patch-CMakeLists.txt
	trifecta/DESCR
	trifecta/Makefile
	trifecta/PLIST
	trifecta/distinfo

Log Message:
trifecta: add new package and its dependencies

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=518c7913f91fd7d34c24928587c2e4e4c4126105

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile                                 |  6 +++++
 TODO                                     |  3 +++
 argparse/DESCR                           |  5 ++++
 argparse/Makefile                        | 20 ++++++++++++++++
 argparse/PLIST                           |  5 ++++
 argparse/buildlink3.mk                   | 14 +++++++++++
 argparse/distinfo                        |  5 ++++
 bcryptcpp/DESCR                          |  8 +++++++
 bcryptcpp/Makefile                       | 34 ++++++++++++++++++++++++++
 bcryptcpp/PLIST                          |  4 ++++
 bcryptcpp/buildlink3.mk                  | 14 +++++++++++
 bcryptcpp/distinfo                       |  5 ++++
 bcryptcpp/files/bcryptcpp.pc             | 11 +++++++++
 simplesocket/DESCR                       | 21 ++++++++++++++++
 simplesocket/Makefile                    | 38 +++++++++++++++++++++++++++++
 simplesocket/PLIST                       |  6 +++++
 simplesocket/buildlink3.mk               | 14 +++++++++++
 simplesocket/distinfo                    |  5 ++++
 simplesocket/files/simplesockets.pc      | 11 +++++++++
 sqlitewrite/DESCR                        |  2 ++
 sqlitewrite/Makefile                     | 41 ++++++++++++++++++++++++++++++++
 sqlitewrite/PLIST                        |  5 ++++
 sqlitewrite/TODO                         |  4 ++++
 sqlitewrite/buildlink3.mk                | 14 +++++++++++
 sqlitewrite/distinfo                     |  6 +++++
 sqlitewrite/files/sqlitewrite.pc         | 11 +++++++++
 sqlitewrite/patches/patch-CMakeLists.txt | 25 +++++++++++++++++++
 trifecta/DESCR                           | 16 +++++++++++++
 trifecta/Makefile                        | 32 +++++++++++++++++++++++++
 trifecta/PLIST                           |  4 ++++
 trifecta/distinfo                        |  5 ++++
 31 files changed, 394 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index b23a127f7e..11a51a9a0a 100644
--- a/Makefile
+++ b/Makefile
@@ -203,6 +203,7 @@ SUBDIR+=	arduino-mdns-discovery
 SUBDIR+=	arduino-serial-discovery
 SUBDIR+=	arduino-serial-monitor
 SUBDIR+=	argouml
+SUBDIR+=	argparse
 SUBDIR+=	argtable2
 SUBDIR+=	aribas
 SUBDIR+=	arla-3.99.14
@@ -276,6 +277,7 @@ SUBDIR+=	basic-stats
 SUBDIR+=	bastard
 SUBDIR+=	bats-core
 SUBDIR+=	bazel
+SUBDIR+=	bcryptcpp
 SUBDIR+=	be
 SUBDIR+=	beast
 SUBDIR+=	bedtools
@@ -1697,6 +1699,7 @@ SUBDIR+=	ised
 SUBDIR+=	islamic-menus
 SUBDIR+=	ispell-dictionaries
 SUBDIR+=	itools
+SUBDIR+=	iverilog
 SUBDIR+=	ivtools
 SUBDIR+=	ja-freewnn-cvs
 SUBDIR+=	ja-ptex
@@ -5158,6 +5161,7 @@ SUBDIR+=	simple-mtpfs
 SUBDIR+=	simple-scan
 SUBDIR+=	simplec
 SUBDIR+=	simplehttpserver
+SUBDIR+=	simplesocket
 SUBDIR+=	simulavr-git
 SUBDIR+=	singular
 SUBDIR+=	sioyek
@@ -5236,6 +5240,7 @@ SUBDIR+=	spot
 SUBDIR+=	spread4
 SUBDIR+=	spyder
 SUBDIR+=	sqlc
+SUBDIR+=	sqlitewrite
 SUBDIR+=	sqlux
 SUBDIR+=	squeak3
 SUBDIR+=	squeak5
@@ -5526,6 +5531,7 @@ SUBDIR+=	trayion
 SUBDIR+=	treetool
 SUBDIR+=	trf
 SUBDIR+=	triangle
+SUBDIR+=	trifecta
 SUBDIR+=	triforceafl
 SUBDIR+=	triforcenetbsdsyscallfuzzer
 SUBDIR+=	trigger-rally
diff --git a/TODO b/TODO
index 7b898cc2ab..990054ac55 100644
--- a/TODO
+++ b/TODO
@@ -113,10 +113,13 @@ Suggested package updates
 	o pike-7.8.700
 	o py-PyPE-2.9
 	o py-etmtk-3.2.31
+	o py-pyramid-2.0.2
 	o py-rpyc-3.2.1
 	o py-sentry-23.7.1
 	o py-smop-0.29
+	o py-translationstring-1.4
 	o py-vanguards-0.3.1
+	o py-venusian-3.1.0
 	o py-xpra-2.2.1
 	o py-zeitgeist-0.9.16
 	o qmc2-0.59
diff --git a/argparse/DESCR b/argparse/DESCR
new file mode 100644
index 0000000000..db9acdf000
--- /dev/null
+++ b/argparse/DESCR
@@ -0,0 +1,5 @@
+Argument Parser for Modern C++
+
+* Single header file
+* Requires C++17
+* MIT License
diff --git a/argparse/Makefile b/argparse/Makefile
new file mode 100644
index 0000000000..2d980e7f51
--- /dev/null
+++ b/argparse/Makefile
@@ -0,0 +1,20 @@
+# $NetBSD$
+
+DISTNAME=	argparse-3.0
+CATEGORIES=	devel
+MASTER_SITES=	${MASTER_SITE_GITHUB:=p-ranav/}
+GITHUB_TAG=	v${PKGVERSION_NOREV}
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/p-ranav/argparse/
+COMMENT=	Argument Parser for Modern C++
+LICENSE=	mit
+
+USE_LANGUAGES=	c c++
+
+USE_CXX_FEATURES+=	c++17
+
+PKGCONFIG_OVERRIDE+=	packaging/pkgconfig.pc.in
+
+.include "../../devel/cmake/build.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/argparse/PLIST b/argparse/PLIST
new file mode 100644
index 0000000000..a9a9f9221e
--- /dev/null
+++ b/argparse/PLIST
@@ -0,0 +1,5 @@
+@comment $NetBSD$
+include/argparse/argparse.hpp
+lib/cmake/argparse/argparseConfig-version.cmake
+lib/cmake/argparse/argparseConfig.cmake
+lib/pkgconfig/argparse.pc
diff --git a/argparse/buildlink3.mk b/argparse/buildlink3.mk
new file mode 100644
index 0000000000..d6d106d29c
--- /dev/null
+++ b/argparse/buildlink3.mk
@@ -0,0 +1,14 @@
+# $NetBSD$
+
+BUILDLINK_TREE+=	argparse
+
+.if !defined(ARGPARSE_BUILDLINK3_MK)
+ARGPARSE_BUILDLINK3_MK:=
+
+BUILDLINK_DEPMETHOD.argparse?=	build
+
+BUILDLINK_API_DEPENDS.argparse+=	argparse>=3.0
+BUILDLINK_PKGSRCDIR.argparse?=		../../wip/argparse
+.endif	# ARGPARSE_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-argparse
diff --git a/argparse/distinfo b/argparse/distinfo
new file mode 100644
index 0000000000..4abd1575a9
--- /dev/null
+++ b/argparse/distinfo
@@ -0,0 +1,5 @@
+$NetBSD$
+
+BLAKE2s (argparse-3.0.tar.gz) = 18d78407339c14302c57eeac2ab31c20c7cd29beffc6c125828ee8abb6de8a25
+SHA512 (argparse-3.0.tar.gz) = a7ed879eb3f71868cd84e513c0db63c4fecff1c9f0b34d6cfbe85d2439e83b80e97f713b497259c9775c9c7c1f639a08b73080045c51756de15e3d8c18b97116
+Size (argparse-3.0.tar.gz) = 116171 bytes
diff --git a/bcryptcpp/DESCR b/bcryptcpp/DESCR
new file mode 100644
index 0000000000..3abe89317d
--- /dev/null
+++ b/bcryptcpp/DESCR
@@ -0,0 +1,8 @@
+A C++ wrapper around bcrypt (origin: Open BSD) password hashing.
+
+Former version used OpenBSD as origin. Since the hash output was
+not fully compatible to common web services we now use source from
+node.bcrypt.
+
+But also the web services might differ each other, so just use the
+hashes generated by this library internally in your application.
diff --git a/bcryptcpp/Makefile b/bcryptcpp/Makefile
new file mode 100644
index 0000000000..ade3825ff2
--- /dev/null
+++ b/bcryptcpp/Makefile
@@ -0,0 +1,34 @@
+# $NetBSD$
+
+DISTNAME=	bcryptcpp-2.0.0.20231211
+CATEGORIES=	devel security
+#MASTER_SITES=	${MASTER_SITE_GITHUB:=hilch/}
+MASTER_SITES=	${MASTER_SITE_GITHUB:=berthubert/}
+GITHUB_TAG=	07f89a6cadb827512f9ab907174bec1a1c7c0f18
+GITHUB_PROJECT=	Bcrypt.cpp
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/berthubert/Bcrypt.cpp/
+COMMENT=	C++ wrapper around bcrypt password hashing
+LICENSE=	original-bsd
+
+USE_LANGUAGES=	c c++
+
+SUBST_CLASSES+=		prefix
+SUBST_VARS.prefix+=	PREFIX
+SUBST_FILES.prefix=	bcryptcpp.pc
+SUBST_STAGE.prefix=	post-configure
+SUBST_MESSAGE.prefix=	Fix installation prefix in pkg-config file.
+
+INSTALLATION_DIRS=	include lib lib/pkgconfig
+
+post-extract:
+	${CP} ${FILESDIR}/bcryptcpp.pc ${WRKSRC}
+
+do-install:
+	${INSTALL_DATA} ${WRKSRC}/include/bcrypt.h ${DESTDIR}${PREFIX}/include
+	${INSTALL_LIB} ${WRKSRC}/${CMAKE_BUILD_DIR}/libbcrypt.a ${DESTDIR}${PREFIX}/lib
+	${INSTALL_DATA} ${WRKSRC}/bcryptcpp.pc ${DESTDIR}${PREFIX}/lib/pkgconfig
+
+.include "../../devel/cmake/build.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/bcryptcpp/PLIST b/bcryptcpp/PLIST
new file mode 100644
index 0000000000..8fc76b87c6
--- /dev/null
+++ b/bcryptcpp/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD$
+include/bcrypt.h
+lib/libbcrypt.a
+lib/pkgconfig/bcryptcpp.pc
diff --git a/bcryptcpp/buildlink3.mk b/bcryptcpp/buildlink3.mk
new file mode 100644
index 0000000000..8096da1775
--- /dev/null
+++ b/bcryptcpp/buildlink3.mk
@@ -0,0 +1,14 @@
+# $NetBSD$
+
+BUILDLINK_TREE+=	bcryptcpp
+
+.if !defined(BCRYPTCPP_BUILDLINK3_MK)
+BCRYPTCPP_BUILDLINK3_MK:=
+
+BUILDLINK_DEPMETHOD.bcryptcpp?=	build
+
+BUILDLINK_API_DEPENDS.bcryptcpp+=	bcryptcpp>=2.0
+BUILDLINK_PKGSRCDIR.bcryptcpp?=		../../wip/bcryptcpp
+.endif	# BCRYPTCPP_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-bcryptcpp
diff --git a/bcryptcpp/distinfo b/bcryptcpp/distinfo
new file mode 100644
index 0000000000..714e3cdefd
--- /dev/null
+++ b/bcryptcpp/distinfo
@@ -0,0 +1,5 @@
+$NetBSD$
+
+BLAKE2s (bcryptcpp-2.0.0.20231211-07f89a6cadb827512f9ab907174bec1a1c7c0f18.tar.gz) = 1f8601448fe05671d7c032f1afb29888508a10b1d200b924a002f2d3b78920ca
+SHA512 (bcryptcpp-2.0.0.20231211-07f89a6cadb827512f9ab907174bec1a1c7c0f18.tar.gz) = 1e11c849164d91fccabea3f7999816ac19b0600b55ba284ee40489044140db224f5337fdc3ee52d25830e9b19d233071f927fd31ed38dac87ebfdc66f61f12d1
+Size (bcryptcpp-2.0.0.20231211-07f89a6cadb827512f9ab907174bec1a1c7c0f18.tar.gz) = 15764 bytes
diff --git a/bcryptcpp/files/bcryptcpp.pc b/bcryptcpp/files/bcryptcpp.pc
new file mode 100644
index 0000000000..b46eb5076d
--- /dev/null
+++ b/bcryptcpp/files/bcryptcpp.pc
@@ -0,0 +1,11 @@
+prefix=@PREFIX@
+exec_prefix=${prefix}
+includedir=${prefix}/include
+libdir=${exec_prefix}/lib
+
+Name: bcryptcpp
+Description: C++ wrapper around bcrypt password hashing 
+URL: https://github.com/hilch/Bcrypt.cpp
+Version: 2.0
+Libs: -Wl,-R${libdir} -L${libdir} -lbcrypt
+Cflags: -I${includedir}
diff --git a/simplesocket/DESCR b/simplesocket/DESCR
new file mode 100644
index 0000000000..4e4831db30
--- /dev/null
+++ b/simplesocket/DESCR
@@ -0,0 +1,21 @@
+simple socket helpers for C++ 2011 (or perhaps C++ 2014).
+
+From C++ the full POSIX and OS socket functions are available.
+These are very powerful, offer well known semantics, but are somewhat
+of a pain to use.
+
+Various libraries have attempted to offer "C++ native" socket
+environments, but most of these offer different semantics that are
+less well known. Many of them are also painful to use but in
+different ways.
+
+This small set of files attempts to offer:
+
+* A native datastructure that is understood by all socket calls,
+  but easily manipulated and created form C++ (ComboAddress)
+
+* Easier to use wrappers of the main BSD socket calls
+
+* A few classes that build on the above to aid you achieve common
+  tasks like reading a line from a socket to C++ friendly data
+  structures
diff --git a/simplesocket/Makefile b/simplesocket/Makefile
new file mode 100644
index 0000000000..76f8273bc8
--- /dev/null
+++ b/simplesocket/Makefile
@@ -0,0 +1,38 @@
+# $NetBSD$
+
+DISTNAME=		simplesocket-0.0.0.20240102
+CATEGORIES=		net devel
+MASTER_SITES+=		${MASTER_SITE_GITHUB:=ahupowerdns/}
+GITHUB_TAG=		3af5e1d449128d0f3cc80774d8ab72dfc95c35c8
+
+MAINTAINER=		pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=		https://github.com/ahupowerdns/simplesocket/commits/master/
+COMMENT=		Simple socket helpers for C++ 2014
+LICENSE=		mit
+
+USE_LANGUAGES=		c++
+USE_TOOLS+=		pkg-config
+
+INSTALLATION_DIRS+=	include lib lib/pkgconfig
+
+SUBST_CLASSES+=		prefix
+SUBST_VARS.prefix+=	PREFIX
+SUBST_FILES.prefix=	simplesockets.pc
+SUBST_STAGE.prefix=	post-configure
+SUBST_MESSAGE.prefix=	Fix installation prefix in pkg-config file.
+
+do-install:
+	${INSTALL_DATA} ${WRKSRC}/*.hh ${DESTDIR}${PREFIX}/include
+	${INSTALL_DATA} ${WRKSRC}/simplesockets.pc ${DESTDIR}${PREFIX}/lib/pkgconfig
+	${INSTALL_LIB} ${WRKSRC}/output/libsimplesockets.so ${DESTDIR}${PREFIX}/lib
+
+post-extract:
+	${CP} ${FILESDIR}/simplesockets.pc ${WRKSRC}
+
+# segfaults because address ::1:10000 already in use?
+do-test:
+	cd ${WRKSRC}/output && ${SETENV} ${MAKE_ENV} ./testrunner
+
+.include "../../devel/meson/build.mk"
+.include "../../textproc/fmtlib/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/simplesocket/PLIST b/simplesocket/PLIST
new file mode 100644
index 0000000000..fc38640988
--- /dev/null
+++ b/simplesocket/PLIST
@@ -0,0 +1,6 @@
+@comment $NetBSD$
+include/comboaddress.hh
+include/sclasses.hh
+include/swrappers.hh
+lib/libsimplesockets.so
+lib/pkgconfig/simplesockets.pc
diff --git a/simplesocket/buildlink3.mk b/simplesocket/buildlink3.mk
new file mode 100644
index 0000000000..c93f5cc499
--- /dev/null
+++ b/simplesocket/buildlink3.mk
@@ -0,0 +1,14 @@
+# $NetBSD$
+
+BUILDLINK_TREE+=	simplesocket
+
+.if !defined(SIMPLESOCKET_BUILDLINK3_MK)
+SIMPLESOCKET_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.simplesocket+=	simplesocket>=0.0.0.20240102
+BUILDLINK_PKGSRCDIR.simplesocket?=	../../wip/simplesocket
+
+.include "../../textproc/fmtlib/buildlink3.mk"
+.endif	# SIMPLESOCKET_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-simplesocket
diff --git a/simplesocket/distinfo b/simplesocket/distinfo
new file mode 100644
index 0000000000..dde31da77a
--- /dev/null
+++ b/simplesocket/distinfo
@@ -0,0 +1,5 @@
+$NetBSD$
+
+BLAKE2s (simplesocket-0.0.0.20240102-3af5e1d449128d0f3cc80774d8ab72dfc95c35c8.tar.gz) = fceed8e2b4e3fb6f66959a37b44a6aac5b100e6b06b095adb5b7bd331b4234b2
+SHA512 (simplesocket-0.0.0.20240102-3af5e1d449128d0f3cc80774d8ab72dfc95c35c8.tar.gz) = e345dcbb7a055443d649cb10c9aa24d26211668a85759ac2648aca80f8eba971e5851c829cea14b82f21f765b7e607358158f8d85814a49cd56741881478d98a
+Size (simplesocket-0.0.0.20240102-3af5e1d449128d0f3cc80774d8ab72dfc95c35c8.tar.gz) = 84334 bytes
diff --git a/simplesocket/files/simplesockets.pc b/simplesocket/files/simplesockets.pc
new file mode 100644
index 0000000000..a0bdad4f41
--- /dev/null
+++ b/simplesocket/files/simplesockets.pc
@@ -0,0 +1,11 @@
+prefix=@PREFIX@
+exec_prefix=${prefix}
+includedir=${prefix}/include
+libdir=${exec_prefix}/lib
+
+Name: simplesockets
+Description: Simple socket helpers for C++ 2014
+URL: https://github.com/ahupowerdns/simplesocket
+Version: 0.0.0
+Libs: -Wl,-R${libdir} -L${libdir} -lsimplesockets
+Cflags: -I${includedir}
diff --git a/sqlitewrite/DESCR b/sqlitewrite/DESCR
new file mode 100644
index 0000000000..508316c62f
--- /dev/null
+++ b/sqlitewrite/DESCR
@@ -0,0 +1,2 @@
+Sqlitewrite provides csv-like storage to sqlite and PostgreSQL.
+Easy to use and type safe.
diff --git a/sqlitewrite/Makefile b/sqlitewrite/Makefile
new file mode 100644
index 0000000000..3d8536ab02
--- /dev/null
+++ b/sqlitewrite/Makefile
@@ -0,0 +1,41 @@
+# $NetBSD$
+
+DISTNAME=		sqlitewrite-0.0.0.20240122
+CATEGORIES=		databases devel
+MASTER_SITES+=		${MASTER_SITE_GITHUB:=berthubert/}
+GITHUB_TAG=		05b95d9540047078cc591367792d4a78f03b930c
+
+MAINTAINER=		pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=		https://github.com/berthubert/sqlitewrite/
+COMMENT=		CSV-like storage to sqlite
+LICENSE=		mit
+
+USE_LANGUAGES=		c++
+USE_TOOLS+=		pkg-config
+
+INSTALLATION_DIRS+=	include lib lib/pkgconfig
+
+SUBST_CLASSES+=		prefix
+SUBST_VARS.prefix+=	PREFIX
+SUBST_FILES.prefix=	sqlitewrite.pc
+SUBST_STAGE.prefix=	post-configure
+SUBST_MESSAGE.prefix=	Fix installation prefix in pkg-config file.
+
+do-install:
+	${INSTALL_DATA} ${WRKSRC}/jsonhelper.hh ${DESTDIR}${PREFIX}/include
+	${INSTALL_DATA} ${WRKSRC}/sqlwriter.hh ${DESTDIR}${PREFIX}/include
+	${INSTALL_DATA} ${WRKSRC}/sqlitewrite.pc ${DESTDIR}${PREFIX}/lib/pkgconfig/sqlitewriter.pc
+	${INSTALL_LIB} ${WRKSRC}/output/libsqlitewriter.so ${DESTDIR}${PREFIX}/lib
+
+post-extract:
+	${CP} ${FILESDIR}/sqlitewrite.pc ${WRKSRC}
+
+do-test:
+	cd ${WRKSRC}/output && ${SETENV} ${MAKE_ENV} ./testrunner
+
+#.include "../../devel/cmake/build.mk"
+.include "../../devel/meson/build.mk"
+.include "../../databases/sqlite3/buildlink3.mk"
+# for tests only
+.include "../../textproc/nlohmann-json/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/sqlitewrite/PLIST b/sqlitewrite/PLIST
new file mode 100644
index 0000000000..a5b011309c
--- /dev/null
+++ b/sqlitewrite/PLIST
@@ -0,0 +1,5 @@
+@comment $NetBSD$
+include/jsonhelper.hh
+include/sqlwriter.hh
+lib/libsqlitewriter.so
+lib/pkgconfig/sqlitewriter.pc
diff --git a/sqlitewrite/TODO b/sqlitewrite/TODO
new file mode 100644
index 0000000000..6685728c07
--- /dev/null
+++ b/sqlitewrite/TODO
@@ -0,0 +1,4 @@
+This should provide a pkg-config file, otherwise it will not be
+found by trifecta.
+
+https://github.com/berthubert/sqlitewrite/issues/4
diff --git a/sqlitewrite/buildlink3.mk b/sqlitewrite/buildlink3.mk
new file mode 100644
index 0000000000..357e21b90f
--- /dev/null
+++ b/sqlitewrite/buildlink3.mk
@@ -0,0 +1,14 @@
+# $NetBSD$
+
+BUILDLINK_TREE+=	sqlitewrite
+
+.if !defined(SQLITEWRITE_BUILDLINK3_MK)
+SQLITEWRITE_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.sqlitewrite+=	sqlitewrite>=0.0.0.20240122
+BUILDLINK_PKGSRCDIR.sqlitewrite?=	../../wip/sqlitewrite
+
+.include "../../databases/sqlite3/buildlink3.mk"
+.endif	# SQLITEWRITE_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-sqlitewrite
diff --git a/sqlitewrite/distinfo b/sqlitewrite/distinfo
new file mode 100644
index 0000000000..4e7d0fe3af
--- /dev/null
+++ b/sqlitewrite/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+BLAKE2s (sqlitewrite-0.0.0.20240122-05b95d9540047078cc591367792d4a78f03b930c.tar.gz) = 8387d77418da61302d18a2ac761ab812da27417da04d0e5f6e7d2317dfaf9f76
+SHA512 (sqlitewrite-0.0.0.20240122-05b95d9540047078cc591367792d4a78f03b930c.tar.gz) = e46114e9b73638f444ee40d1f12d173ff8c0cab07d923df001430263c7f3e993078ca01805f50503f10acfbadda49aeff2255f61a9ddb93d874d279acd00e84e
+Size (sqlitewrite-0.0.0.20240122-05b95d9540047078cc591367792d4a78f03b930c.tar.gz) = 75893 bytes
+SHA1 (patch-CMakeLists.txt) = 0d6cce8780ed0ae760f4632ee5afa94be9b59263
diff --git a/sqlitewrite/files/sqlitewrite.pc b/sqlitewrite/files/sqlitewrite.pc
new file mode 100644
index 0000000000..5d647e402f
--- /dev/null
+++ b/sqlitewrite/files/sqlitewrite.pc
@@ -0,0 +1,11 @@
+prefix=@PREFIX@
+exec_prefix=${prefix}
+includedir=${prefix}/include
+libdir=${exec_prefix}/lib
+
+Name: sqlitewrite
+Description: CSV-like storage for sqlite
+URL: https://github.com/berthubert/sqlitewrite/
+Version: 0.0.0
+Libs: -Wl,-R${libdir} -L${libdir} -lsqlitewriter
+Cflags: -I${includedir}
diff --git a/sqlitewrite/patches/patch-CMakeLists.txt b/sqlitewrite/patches/patch-CMakeLists.txt
new file mode 100644
index 0000000000..e0d80f80f6
--- /dev/null
+++ b/sqlitewrite/patches/patch-CMakeLists.txt
@@ -0,0 +1,25 @@
+$NetBSD$
+
+https://github.com/berthubert/sqlitewrite/issues/4
+
+--- CMakeLists.txt.orig	2024-05-18 20:37:40.580561805 +0000
++++ CMakeLists.txt
+@@ -14,14 +14,14 @@ set(THREADS_PREFER_PTHREAD_FLAG TRUE)
+ find_package(Threads REQUIRED)
+ 
+ add_executable(demo demo.cc sqlwriter.cc)
+-target_link_libraries(demo  sqlite3  pthread  dl  )
++target_link_libraries(demo  sqlite3  pthread  ${CMAKE_DL_LIBS}  )
+ 
+-add_executable(pqdemo pqdemo.cc psqlwriter.cc minipsql.cc)
+-target_link_libraries(pqdemo pthread  dl pq )
++#add_executable(pqdemo pqdemo.cc psqlwriter.cc minipsql.cc)
++#target_link_libraries(pqdemo pthread  ${CMAKE_DL_LIBS} pq )
+ 
+ 
+ add_executable(testrunner testrunner.cc sqlwriter.cc jsontests.cc jsonhelper.cc)
+-target_link_libraries(testrunner sqlite3 pthread dl)
++target_link_libraries(testrunner sqlite3 pthread ${CMAKE_DL_LIBS})
+ 
+ enable_testing()
+ add_test(testname testrunner)
diff --git a/trifecta/DESCR b/trifecta/DESCR
new file mode 100644
index 0000000000..5e647db6a5
--- /dev/null
+++ b/trifecta/DESCR
@@ -0,0 +1,16 @@
+Trifecta is a computer program that delivers you a website/web
+service. Your personal imgur. You can paste or drag images to
+Trifecta. If you upload an image, a post will be created for it
+automatically.
+
+A post can contain multiple images. Each image can have a caption,
+and each post a title.
+
+Posts can be public or not, or have a time limit on their public
+visibility. As owner of a post you can extend or change this limit.
+
+Users can sign in using an temporary email link, and also reset
+their password this way. Users need not have an actual password.
+
+Posts in Trifecta get opengraph tags so you get nice previews on
+social media and in messengers.
diff --git a/trifecta/Makefile b/trifecta/Makefile
new file mode 100644
index 0000000000..677de5d370
--- /dev/null
+++ b/trifecta/Makefile
@@ -0,0 +1,32 @@
+# $NetBSD$
+
+DISTNAME=		trifecta-0.0.0.20240204
+CATEGORIES=		www graphics
+MASTER_SITES+=		${MASTER_SITE_GITHUB:=berthubert/}
+GITHUB_TAG=		40491d40f1c7946bc6f8e3148d0431e222f67fa8
+
+MAINTAINER=		pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=		https://berthub.eu/articles/trifecta
+COMMENT=		Educational image sharing website
+LICENSE=		mit
+
+USE_LANGUAGES=		c++
+# cmake for doctest detection, which doesn't provide a pkg-config file
+USE_TOOLS+=		cmake pkg-config
+
+CXXFLAGS+=		-I${BUILDLINK_PREFIX.doctest}/include/doctest
+
+do-test:
+	cd ${WRKSRC}/output && ${SETENV} ${MAKE_ENV} ./testrunner
+
+.include "../../devel/meson/build.mk"
+.include "../../databases/sqlite3/buildlink3.mk"
+.include "../../textproc/fmtlib/buildlink3.mk"
+.include "../../textproc/nlohmann-json/buildlink3.mk"
+.include "../../wip/argparse/buildlink3.mk"
+.include "../../wip/bcryptcpp/buildlink3.mk"
+.include "../../wip/doctest/buildlink3.mk"
+.include "../../wip/simplesocket/buildlink3.mk"
+.include "../../wip/sqlitewrite/buildlink3.mk"
+.include "../../www/cpp-httplib/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/trifecta/PLIST b/trifecta/PLIST
new file mode 100644
index 0000000000..92ba51a2d7
--- /dev/null
+++ b/trifecta/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD$
+@comment TODO: to fill this file with the file listing:
+@comment TODO: 1. run "/usr/bin/make package"
+@comment TODO: 2. run "/usr/bin/make print-PLIST"
diff --git a/trifecta/distinfo b/trifecta/distinfo
new file mode 100644
index 0000000000..e00af7dd53
--- /dev/null
+++ b/trifecta/distinfo
@@ -0,0 +1,5 @@
+$NetBSD$
+
+BLAKE2s (trifecta-0.0.0.20240204-40491d40f1c7946bc6f8e3148d0431e222f67fa8.tar.gz) = 61d2a2ff284779aa5fbe5ce0fcf7e2c383a71e9c1b41358149c10e16e6520f62
+SHA512 (trifecta-0.0.0.20240204-40491d40f1c7946bc6f8e3148d0431e222f67fa8.tar.gz) = e286e45ddcd7351cd9fdfc0676f03b86201b15fb8b2ef022317a085b0fc325fb2e2b15afc179056b8a1113f9132b38d3fb30d3b14dc7cbb59ff76e93c1da6216
+Size (trifecta-0.0.0.20240204-40491d40f1c7946bc6f8e3148d0431e222f67fa8.tar.gz) = 49338 bytes


Home | Main Index | Thread Index | Old Index