]> infiniteadaptability.org Git - events/commitdiff
guix: added support for guix package/development v1.0.2
authoralex <[email protected]>
Fri, 24 Mar 2023 04:28:41 +0000 (21:28 -0700)
committeralex <[email protected]>
Fri, 24 Mar 2023 04:28:41 +0000 (21:28 -0700)
version bump
fixed memcheck enabling when valgrind missing

configure.ac
events.scm [new file with mode: 0644]

index ed5a483a6efad166e14a4c920d97cbd9a1b0f999..3d6a3efb4823d2973f6b24ece54ca0df2b425a4d 100644 (file)
@@ -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 (file)
index 0000000..9520ceb
--- /dev/null
@@ -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