From 5fadb6b3668a38d63ce93dc0c24eb462f59f34be Mon Sep 17 00:00:00 2001 From: alex Date: Thu, 23 Mar 2023 21:28:41 -0700 Subject: [PATCH] guix: added support for guix package/development version bump fixed memcheck enabling when valgrind missing --- configure.ac | 9 ++++++++- events.scm | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 events.scm diff --git a/configure.ac b/configure.ac index ed5a483..3d6a3ef 100644 --- a/configure.ac +++ b/configure.ac @@ -1,5 +1,5 @@ AC_PREREQ([2.69]) -AC_INIT([ev], [1.0.0]) +AC_INIT([ev], [1.0.2]) # Store build files not in main directory AC_CONFIG_AUX_DIR([build-aux]) @@ -34,6 +34,13 @@ fi AM_CONDITIONAL([ENABLE_DEBUG],[test x$enable_debug != xno]) +dnl disable memcheck if valgrind not found +if test "x$enable_memcheck" != "xno"; then + if test -z "$VALGRIND"; then + enable_memcheck=no + fi +fi + AC_MSG_CHECKING([if memcheck should be enabled]) if test x$enable_memcheck != xno; then AC_MSG_RESULT(yes) diff --git a/events.scm b/events.scm new file mode 100644 index 0000000..9520ceb --- /dev/null +++ b/events.scm @@ -0,0 +1,39 @@ +(define-module (infiniteadaptability packages events) + #:use-module (gnu packages autotools) + #:use-module (gnu packages gcc) + #:use-module (gnu packages sqlite) + #:use-module (guix git-download) + #:use-module (guix build-system gnu) + #:use-module (guix licenses) + #:use-module (guix packages)) + +(define-public events + (let ((version "1.1.0") + (commit "1ac4b76c722fb3764a3a366663ae689030a1b49e") + (revision 0)) + (package + (name "events") + (version (if (zero? revision) version + (string-append version "-" + (number->string revision) "." + (string-take commit 7)))) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://git.infiniteadaptability.org/events.git") + (commit commit))) + (sha256 + (base32 + "01lvncpw3ajikn6mz3ni2himaa1056p3b7prfhx494kiqdizpikf")) + (file-name (string-append "events-" version "-checkout")))) + (build-system gnu-build-system) + (arguments + (list #:parallel-tests? #f)) + (native-inputs `(("autoconf" ,autoconf) + ("automake" ,automake))) + (home-page "https://git.infiniteadaptability.org/events") + (synopsis "utility for managing events") + (description "command-line utility for managing events.") + (license unlicense)))) + +events -- 2.39.5