From patchwork Mon Dec 27 20:11:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hartmut Goebel X-Patchwork-Id: 35714 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id BC4B127BBEA; Mon, 27 Dec 2021 20:14:39 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 4EAAD27BBE9 for ; Mon, 27 Dec 2021 20:14:39 +0000 (GMT) Received: from localhost ([::1]:43708 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n1wOE-0001e5-Ed for patchwork@mira.cbaines.net; Mon, 27 Dec 2021 15:14:38 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42528) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n1wLj-00086u-9M for guix-patches@gnu.org; Mon, 27 Dec 2021 15:12:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:32822) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n1wLi-0001y6-W7 for guix-patches@gnu.org; Mon, 27 Dec 2021 15:12:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n1wLi-0001I6-JS for guix-patches@gnu.org; Mon, 27 Dec 2021 15:12:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#52832] [PATCH 1/3] gnu: Add android-platform-frameworks-native-headers. Resent-From: Hartmut Goebel Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 27 Dec 2021 20:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 52832 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 52832@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16406359124940 (code B ref -1); Mon, 27 Dec 2021 20:12:02 +0000 Received: (at submit) by debbugs.gnu.org; 27 Dec 2021 20:11:52 +0000 Received: from localhost ([127.0.0.1]:44368 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n1wLY-0001Hc-5e for submit@debbugs.gnu.org; Mon, 27 Dec 2021 15:11:52 -0500 Received: from lists.gnu.org ([209.51.188.17]:42214) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n1wLV-0001HU-Ku for submit@debbugs.gnu.org; Mon, 27 Dec 2021 15:11:51 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42486) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n1wLV-0007sz-Fx for guix-patches@gnu.org; Mon, 27 Dec 2021 15:11:49 -0500 Received: from mout.kundenserver.de ([212.227.126.134]:46631) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n1wLR-0001qd-MS for guix-patches@gnu.org; Mon, 27 Dec 2021 15:11:47 -0500 Received: from hermia.goebel-consult.de ([87.176.128.206]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MPp0l-1moWBp0J07-00Mr9Z for ; Mon, 27 Dec 2021 21:11:42 +0100 Received: from lenashee.fritz.box (lenashee.goebel-consult.de [192.168.110.2]) by hermia.goebel-consult.de (Postfix) with ESMTP id 96CBE5F53C; Mon, 27 Dec 2021 21:11:50 +0100 (CET) From: Hartmut Goebel Date: Mon, 27 Dec 2021 21:11:39 +0100 Message-Id: <793e925b111667693a137f3c95b63a7736868db7.1640635864.git.h.goebel@crazy-compilers.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-Provags-ID: V03:K1:Rthsavwvcma+fmifwDMqT8k5ut3SxDbEs/GxV4FugAJ/ESC4CE+ p6BHgfkUEIOlQbEFFkFs37zis4J7XMkGq+JXlj3RiHXDw0i4MfZhsYunejhSn/tuzZ3olMr Puuzs4oYAEpJNlU/i7UJOJLPxEF8BEk7LtrrJPyLT4makdyHta/xu4CnhJTrf+KisPWuoE4 7Hf4apCOqJcB5BifrdMbg== X-UI-Out-Filterresults: notjunk:1;V03:K0:dIYtAp5mOo0=:YBZ4CeP7wVxQermArt03kQ xcLXo2oHFmjwgiDV4HxtTkgaNaRrW48MQHyxBIUJXA70zRDFO2XZSGOjYOKMDJjyvjhyTDyOc 4fVbJlOPQ7PYA/crTqhbY3Rm92OpOQ9slnqfiR33iV7el3OdvTjscdJhus35/5Xb5vTRhRCeu Ru2MQed/RV7odYYqt2tjaf74XHKDNo8EPimct9JTiM0BYj2OjmV0bXMoDN0l8lRafCU9e9l+X 0TCUN72wi2Dm2IjyQJfO4YFHKpoVXzNypfyUaft6HnDTMt1bZLnI3N703e2ra0oLTyEuQVYKh Kv+ewRZ81ozSH8kykpurHSH3Hbr1FKtVGeoWI34oDm/vr5IaY/QVGJ2z7SlkOtVnkqMxQ/tiO B2AWcoMx4Til69CZn/YQNmM3jcwVD8fNi9K3DjPjLVqpnq9fyC1wlW119BNNkphCjBDL7D11p 25CjFBGkSrGskbBkt3TO/IqhbRfgT7B5srhVuMqYOHkT6KKr4EtUPgFsC4n5yMFJwnepWSXn9 QgpPu8QzcbiOD2I/iXcR7gvYefYzb/m2617kteblLUB4+P7UBYlFidxCz33mldwEClDlBrgCA fp/rgBIfUv7UHPZVzwRN4yNJijegWcN5sWKavZENPquUihu30/SnRPRUMwkvW1xcY5h5Z8Qpu jO28s+1TvE0b6lUAsnof5M5J822twkH0X+ZVCYdByqnL294lBEUMePrRYoyVoM2qV6/oqrL1D KEhvUQA2WMCzJLha Received-SPF: none client-ip=212.227.126.134; envelope-from=h.goebel@crazy-compilers.com; helo=mout.kundenserver.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/package/android.scm (android-platform-frameworks-native): New function. (android-platform-frameworks-native-headers): New variables. --- gnu/packages/android.scm | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/gnu/packages/android.scm b/gnu/packages/android.scm index 5fa4e6c8e9..226d8259ff 100644 --- a/gnu/packages/android.scm +++ b/gnu/packages/android.scm @@ -190,6 +190,17 @@ use their packages mostly unmodified in our Android NDK build system.") (base32 checksum)))) +(define (android-platform-frameworks-native version) + (origin + (method git-fetch) + (uri (git-reference + (url "https://android.googlesource.com/platform/frameworks/native") + (commit (string-append "android-" version)))) + (file-name (string-append "android-platform-frameworks-native-" + version "-checkout")) + (sha256 + (base32 "00dgx27wma7wzivniy8zyw2443fi2xx8gyxii081m0fwamqd3jrm")))) + (define-public android-liblog (package (name "android-liblog") @@ -728,6 +739,31 @@ it. to be passed to the @code{udev} service.") (license license:gpl3+))) +(define-public android-platform-frameworks-native-headers + (package + (name "android-platform-frameworks-native-headers") + (version (android-platform-version)) + (source (android-platform-frameworks-native version)) + (build-system trivial-build-system) + (arguments + `(#:modules ((guix build utils)) + #:builder + (begin + (use-modules (guix build utils)) + (let ((source (assoc-ref %build-inputs "source")) + (include (string-append %output "/include/android"))) + (mkdir-p include) + (copy-recursively (string-append source "/include/android") + (string-append include)) ; "/android")) + )))) + (home-page "https://android.googlesource.com/platform/frameworks/native/") + (synopsis "Headers for Android development from +android-platform-frameworks-native") + (description "This package contains headers used for developing software +for Android. More precicely the headers from include/android in +platform/frameworks/native.") + (license license:asl2.0))) + (define-public git-repo (package (name "git-repo")