gnu: pciutils: Move 'pci.ids.gz' to 'share/hwdata'.

* gnu/packages/pciutils.scm (pciutils)[arguments] <configure>: Set
'IDSDIR' such that 'pci.ids.gz' goes to share/hwdata.
This commit is contained in:
Ludovic Courtès 2017-07-10 10:37:48 +02:00
parent 539a68f938
commit 841e06af71
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 9 additions and 3 deletions

View File

@ -1,5 +1,5 @@
;;; GNU Guix --- Functional package management for GNU ;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2014, 2015 Ludovic Courtès <ludo@gnu.org> ;;; Copyright © 2014, 2015, 2017 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il> ;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
;;; ;;;
;;; This file is part of GNU Guix. ;;; This file is part of GNU Guix.
@ -56,12 +56,18 @@
;; $prefix/share/man, and wrongly so. ;; $prefix/share/man, and wrongly so.
(string-append "MANDIR := " (assoc-ref outputs "out") (string-append "MANDIR := " (assoc-ref outputs "out")
"/share/man\n")) "/share/man\n"))
(("^SHARED=.*$") (("^SHARED=.*$")
;; Build libpciutils.so. ;; Build libpciutils.so.
"SHARED := yes\n") "SHARED := yes\n")
(("^ZLIB=.*$") (("^ZLIB=.*$")
;; Ask for zlib support. ;; Ask for zlib support, for 'pci.ids.gz' decompression.
"ZLIB := yes\n")))) "ZLIB := yes\n")
(("^IDSDIR=.*$")
;; Installation directory of 'pci.ids.gz'.
"IDSDIR = $(SHAREDIR)/hwdata\n"))
#t))
(replace 'install (replace 'install
(lambda* (#:key outputs #:allow-other-keys) (lambda* (#:key outputs #:allow-other-keys)
;; Install the commands, library, and .pc files. ;; Install the commands, library, and .pc files.