From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:59970) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iMtsN-0006aj-BU for guix-patches@gnu.org; Tue, 22 Oct 2019 09:07:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iMtsL-0001BL-WB for guix-patches@gnu.org; Tue, 22 Oct 2019 09:07:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49553) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iMtsL-0001B7-T2 for guix-patches@gnu.org; Tue, 22 Oct 2019 09:07:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iMtsL-0006sc-Ld for guix-patches@gnu.org; Tue, 22 Oct 2019 09:07:01 -0400 Subject: [bug#37853] [PATCH] gnu: Add ddcci-driver-linux. Resent-Message-ID: Date: Tue, 22 Oct 2019 15:06:39 +0200 From: Danny Milosavljevic Message-ID: <20191022150639.74574b89@scratchpost.org> In-Reply-To: <875zkh6rq5.fsf@gmail.com> References: <20191021151628.28632-1-brice@waegenei.re> <875zkh6rq5.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_//W8I/qhJETUTq=OVBCActHT"; protocol="application/pgp-signature"; micalg=pgp-sha256 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 37853@debbugs.gnu.org, Brice Waegeneire Cc: Mathieu Othacehe --Sig_//W8I/qhJETUTq=OVBCActHT Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, On Tue, 22 Oct 2019 11:42:58 +0200 Mathieu Othacehe wrote: > It is a bit sad that we have to replicate 'build and 'install phases > because of those two subfolders. However, I can't see an easy way to > overcome this. Anyone? You could get the existing phase via (assoc-ref %standard-phases 'build) an= d call it twice (and I would). Also, you could create two packages and chdir in an extra phase before "bui= ld" (I wouldn't do that). The former: (define-public ddcci-driver-linux (package (name "ddcci-driver-linux") (version "0.3.3") (source (origin (method git-fetch) (uri (git-reference (url "https://gitlab.com/ddcci-driver-linux/ddcci-driver-linux= .git") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "0vkkja3ykjil783zjpwp0vz7jy2fp9ccazzi3afd4fjk8gldin7f")))) (build-system linux-module-build-system) (arguments `(#:tests? #f ; no tests #:phases (modify-phases %standard-phases (replace 'build (lambda args (for-each (lambda (module) (with-directory-excursion module (apply (assoc-ref %standard-phases 'build) args)= )) '("ddcci" "ddcci-backlight")) #t)) (replace 'install (lambda args (for-each (lambda (module) (with-directory-excursion module (apply (assoc-ref %standard-phases 'install) arg= s))) '("ddcci" "ddcci-backlight")) #t))))) (home-page "https://gitlab.com/ddcci-driver-linux/ddcci-driver-linux") (synopsis "Linux kernel drivers for DDC/CI monitors") (description "Two Linux kernel drivers, ddcci and ddcci-backlight, that allow the control of DDC/CI monitors through the sysfs interface. ddcci cre= ate a character device for each DDC/CI monitors in @file{/dev/bus/ddcci/[I=C2= =B2C bus number]}. ddcci-backlight allow the control of the backlight level or luminance prope= rty when supported under @file{/sys/class/backlight/}.") (license license:gpl2+))) @Brice: Could you send an updated patch along those lines? --Sig_//W8I/qhJETUTq=OVBCActHT Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAl2u/t8ACgkQ5xo1VCww uqW/gQf/UQBTJNfQVWUz8Mt4HclliFRMrakJA70/OGEZOl3h0R+A0TlX0AhpamES QODZ/kGa/Fg2679yxteLSKTeKkgZDjrXbUEAh7xljQWgLTRoIfvKzccMfrFWoioW o8QLr8b6rbhNNubcivKW9nNIWhzCMpS6iri7lWbyzdXpSQG3TiF/coUFzCKOvA7X lvxHSb2WN9YmhLgbPJumLPVXvebkCP6fowicKQvML3mOl4junGaKsqwL54L6jLfk IceEhulr+sqhY8mK+zqd7+dGW02ivs6VuE40VrTBlCQHZenqfkX2oCEZT6qJdBaJ CLHBFNhPeVIYYI8sMCn6ghK4+gXmfw== =0TCL -----END PGP SIGNATURE----- --Sig_//W8I/qhJETUTq=OVBCActHT--