2 کامیت‌ها 10a889851c ... b6ad091727

نویسنده SHA1 پیام تاریخ
  Eric Bavier b6ad091727 sollya: Install to versioned doc directory. 3 سال پیش
  Eric Bavier 4a4c65b2ec Add ltunify. 3 سال پیش
3فایلهای تغییر یافته به همراه52 افزوده شده و 4 حذف شده
  1. 1 0
      README.md
  2. 46 0
      bavier/packages/admin.scm
  3. 5 4
      bavier/packages/algebra.scm

+ 1 - 0
README.md

@@ -41,6 +41,7 @@ section in [Guix's manual](http://guix.gnu.org/manual/).
 - [gpsim@0.31.0](http://gpsim.sourceforge.net/) - Software emulator for PIC microcontrollers
 - [gputils@1.5.0](https://gputils.sourceforge.io/) - Utilities for PIC microcontrollers
 - [joy-in-the-morning@1.0.0](https://notabug.org/bavier/joy-in-the-morning) - Joy programming language
+- [ltunify@0.3-0.b68dc9a](https://lekensteyn.nl/logitech-unifying.html) - Pair and unpair Logitech Unifying devices
 - [openspades@0.1.3-0.cb89824](http://openspades.yvt.jp/) - Voxel first-person shooter game
 - [properties-cpp@0.0.1](https://launchpad.net/properties-cpp) - Properties and signals library for C++
 - [sdcc@3.9.0](http://sdcc.sourceforge.net/) - Small Device C Compiler

+ 46 - 0
bavier/packages/admin.scm

@@ -0,0 +1,46 @@
+;;; This file is part of guix-bavier.git
+;;; Copyright © 2020 Eric Bavier <bavier@posteo.net>
+;;; License: GPLv3+
+
+(define-module (bavier packages admin)
+  #:use-module (guix build-system gnu)
+  #:use-module (guix git-download)
+  #:use-module (guix packages)
+  #:use-module (gnu packages)
+  #:use-module ((guix licenses) #:prefix license:))
+
+(define-public ltunify
+  (let ((commit "b68dc9af6db53de231d5ac71f9b6ba2ff3057a68")
+        (revision "0"))
+    (package
+      (name "ltunify")
+      (version (git-version "0.3" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://git.lekensteyn.nl/ltunify")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32
+           "1i6ya846jxi1y29h59qc2hkjvdlhsdw6kgm4clchpxx1mjrqjv3b"))))
+      (build-system gnu-build-system)
+      (arguments
+       `(#:make-flags
+         (list "CC=gcc"
+               (string-append "bindir=" %output "/bin")
+               (string-append "udevrulesdir=" %output "/etc/udev/rules.d"))
+         #:phases
+         (modify-phases %standard-phases
+           (delete 'configure)
+           (replace 'build
+             (lambda* (#:key make-flags #:allow-other-keys)
+               (apply invoke "make" "ltunify" make-flags)))
+           (delete 'check))))
+      (home-page "https://lekensteyn.nl/logitech-unifying.html")
+      (synopsis "Pair and unpair Logitech Unifying devices")
+      (description "@code{ltunify} allows you to pair additional devices like
+keyboards and mice to your Logitech Unifying receiver, unpair existing
+devices, and list information about connected devices.")
+      (license license:gpl3+))))

+ 5 - 4
bavier/packages/algebra.scm

@@ -19,8 +19,8 @@
    (version "7.0")
    (source (origin
             (method url-fetch)
-            (uri (string-append "https://gforge.inria.fr/frs/download.php/file/"
-                                "37748/sollya-" version ".tar.bz2"))
+            (uri (string-append "https://www.sollya.org/releases/"
+                                "sollya-" version "/sollya-" version ".tar.bz2"))
             (sha256
              (base32
               "11290ivi9h665cxi8f1shlavhy10vzb8s28m57hrcgnxyxqmhx0m"))))
@@ -33,7 +33,8 @@
       ("mpfi" ,mpfi)
       ("mpfr" ,mpfr)))
    (arguments
-    `(#:phases
+    `(#:configure-flags (list (string-append "--docdir=${datadir}/doc/sollya-" ,version))
+      #:phases
       (modify-phases %standard-phases
         (add-after 'unpack 'patch-test-shebang
           (lambda _
@@ -46,7 +47,7 @@
             (substitute* "general.c"
              (("\"gnuplot\"") (string-append "\"" (which "gnuplot") "\"")))
             #t)))))
-   (home-page "http://sollya.gforge.inria.fr/")
+   (home-page "https://www.sollya.org")
    (synopsis "Development environment for safe floating-point code")
    (description "Sollya is a computer program whose purpose is to
 provide an environment for safe floating-point code development.  It