pkgsrc-Changes archive

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

CVS commit: pkgsrc/databases/git-sqlite



Module Name:    pkgsrc
Committed By:   schmonz
Date:           Tue May 20 16:48:21 UTC 2025

Added Files:
        pkgsrc/databases/git-sqlite: DESCR Makefile PLIST distinfo
        pkgsrc/databases/git-sqlite/patches: patch-configure.ac

Log Message:
Add git-sqlite: Git diff and merge driver for SQLite

git-sqlite is a collection of shell scripts that allows a sqlite
database to be tracked using the git version control system.

It can be used on an existing database, however, UUIDs will make
multi-master distribution substantially easier.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/databases/git-sqlite/DESCR \
    pkgsrc/databases/git-sqlite/Makefile pkgsrc/databases/git-sqlite/PLIST \
    pkgsrc/databases/git-sqlite/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/databases/git-sqlite/patches/patch-configure.ac

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

Added files:

Index: pkgsrc/databases/git-sqlite/DESCR
diff -u /dev/null pkgsrc/databases/git-sqlite/DESCR:1.1
--- /dev/null   Tue May 20 16:48:21 2025
+++ pkgsrc/databases/git-sqlite/DESCR   Tue May 20 16:48:21 2025
@@ -0,0 +1,5 @@
+git-sqlite is a collection of shell scripts that allows a sqlite
+database to be tracked using the git version control system.
+
+It can be used on an existing database, however, UUIDs will make
+multi-master distribution substantially easier.
Index: pkgsrc/databases/git-sqlite/Makefile
diff -u /dev/null pkgsrc/databases/git-sqlite/Makefile:1.1
--- /dev/null   Tue May 20 16:48:21 2025
+++ pkgsrc/databases/git-sqlite/Makefile        Tue May 20 16:48:21 2025
@@ -0,0 +1,31 @@
+# $NetBSD: Makefile,v 1.1 2025/05/20 16:48:21 schmonz Exp $
+
+DISTNAME=              git-sqlite-0.1
+CATEGORIES=            databases
+MASTER_SITES=          ${MASTER_SITE_GITHUB:=cannadayr/}
+GITHUB_TAG=            v${PKGVERSION_NOREV}
+
+MAINTAINER=            schmonz%NetBSD.org@localhost
+HOMEPAGE=              https://github.com/cannadayr/git-sqlite/
+COMMENT=               Git diff and merge driver for SQLite
+LICENSE=               mit
+
+DEPENDS+=              git-base-[0-9]*:../../devel/git-base
+DEPENDS+=              sqlite3-[0-9]*:../../databases/sqlite3
+DEPENDS+=              sqlite3-diff-[0-9]*:../../databases/sqlite3-diff
+
+USE_LANGUAGES=         # none
+GNU_CONFIGURE=         yes
+USE_TOOLS+=            autoreconf autoconf automake bash:run
+
+REPLACE_BASH=          src/util.sh src/*.in
+
+INSTALLATION_DIRS=     share/doc/${PKGBASE}
+
+pre-configure:
+       cd ${WRKSRC} && ${CONFIG_SHELL} ./reconf
+
+post-install:
+       ${INSTALL_DATA} ${WRKSRC}/README.md ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/databases/git-sqlite/PLIST
diff -u /dev/null pkgsrc/databases/git-sqlite/PLIST:1.1
--- /dev/null   Tue May 20 16:48:21 2025
+++ pkgsrc/databases/git-sqlite/PLIST   Tue May 20 16:48:21 2025
@@ -0,0 +1,7 @@
+@comment $NetBSD: PLIST,v 1.1 2025/05/20 16:48:21 schmonz Exp $
+bin/git-sqlite
+bin/git-sqlite-diff
+bin/git-sqlite-merge
+share/doc/git-sqlite/README.md
+share/git-sqlite/schema.sql
+share/git-sqlite/util.sh
Index: pkgsrc/databases/git-sqlite/distinfo
diff -u /dev/null pkgsrc/databases/git-sqlite/distinfo:1.1
--- /dev/null   Tue May 20 16:48:21 2025
+++ pkgsrc/databases/git-sqlite/distinfo        Tue May 20 16:48:21 2025
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2025/05/20 16:48:21 schmonz Exp $
+
+BLAKE2s (git-sqlite-0.1.tar.gz) = 3b2be30d732d1c43fd17295e3547eb023f02dd4e4b5b7be03fc2944a197058ac
+SHA512 (git-sqlite-0.1.tar.gz) = 38dbe48691ba68e815a6ea6eaf54ca72218b6bc5e845430d8c89e25c84772a88703b4ce1ab10416474b15c65b1a06e49272ff7f3fc86473a59c32747f8b64aa0
+Size (git-sqlite-0.1.tar.gz) = 7161 bytes
+SHA1 (patch-configure.ac) = 82e3d559e8e6ed03655b2ddc9eda45825ca2842d

Index: pkgsrc/databases/git-sqlite/patches/patch-configure.ac
diff -u /dev/null pkgsrc/databases/git-sqlite/patches/patch-configure.ac:1.1
--- /dev/null   Tue May 20 16:48:21 2025
+++ pkgsrc/databases/git-sqlite/patches/patch-configure.ac      Tue May 20 16:48:21 2025
@@ -0,0 +1,30 @@
+$NetBSD: patch-configure.ac,v 1.1 2025/05/20 16:48:21 schmonz Exp $
+
+Avoid bashisms.
+
+--- configure.ac.orig  2025-05-20 14:46:28.191866921 +0000
++++ configure.ac
+@@ -3,19 +3,19 @@ AM_INIT_AUTOMAKE([foreign])
+ 
+ # check for bash
+ AC_CHECK_PROG(bash,[bash],[bash],[no])
+-test "$bash" == "no" && AC_MSG_ERROR([Required program 'bash' not found.])
++test "$bash" = "no" && AC_MSG_ERROR([Required program 'bash' not found.])
+ 
+ # check for sqlite3
+ AC_CHECK_PROG(sqlite3,[sqlite3],[sqlite3],[no])
+-test "$sqlite3" == "no" && AC_MSG_ERROR([Required program 'sqlite3' not found.])
++test "$sqlite3" = "no" && AC_MSG_ERROR([Required program 'sqlite3' not found.])
+ 
+ # check for sqldiff
+ AC_CHECK_PROG(sqldiff,[sqldiff],[sqldiff],[no])
+-test "$sqldiff" == "no" && AC_MSG_ERROR([Required program 'sqldiff' not found.])
++test "$sqldiff" = "no" && AC_MSG_ERROR([Required program 'sqldiff' not found.])
+ 
+ # check for git
+ AC_CHECK_PROG(git,[git],[git],[no])
+-test "$git" == "no" && AC_MSG_ERROR([Required program 'git' not found.])
++test "$git" = "no" && AC_MSG_ERROR([Required program 'git' not found.])
+ 
+ # summary
+ summary="a diff & merge driver for sqlite"



Home | Main Index | Thread Index | Old Index