From 25b2d83d007e83d980c39cd09c38c641120e4366 Mon Sep 17 00:00:00 2001
From: Simon South <simon@simonsouth.net>
Date: Mon, 14 Dec 2020 13:00:20 -0500
Subject: [PATCH] =?UTF-8?q?gnu:=20sdcc:=20Remove=20bundled=20=CE=BCCsim.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

* gnu/packages/sdcc.scm (sdcc)[source]: Extend snippet to remove bundled μCsim
source.
[arguments]<#:configure-flags>: Replace "--enable-ucsim" with
"--disable-ucsim".

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
 gnu/packages/sdcc.scm | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/sdcc.scm b/gnu/packages/sdcc.scm
index aad2cf9e62..0ce71ed955 100644
--- a/gnu/packages/sdcc.scm
+++ b/gnu/packages/sdcc.scm
@@ -46,6 +46,8 @@
                '(begin
                   ;; Remove non-free source files
                   (delete-file-recursively "device/non-free")
+                  ;; Remove bundled μCsim source
+                  (delete-file-recursively "sim")
                   #t))
               (patches (search-patches "sdcc-disable-non-free-code.patch"))))
     (build-system gnu-build-system)
@@ -58,7 +60,7 @@
     (arguments
      `(;; gputils is required for PIC ports
        #:configure-flags
-       '("--disable-pic14-port" "--disable-pic16-port" "--enable-ucsim")
+       '("--disable-pic14-port" "--disable-pic16-port" "--disable-ucsim")
        #:phases
        (modify-phases %standard-phases
          (add-after 'unpack 'patch-makefile