From: Ricardo Wurmus <rekado@elephly.net>
To: guix-devel@gnu.org
Subject: [PATCH] gnu: Add pcc.
Date: Mon, 9 Jan 2017 22:19:44 +0100 [thread overview]
Message-ID: <20170109211944.21755-1-rekado@elephly.net> (raw)
* gnu/packages/c.scm (pcc): New variable.
---
gnu/packages/c.scm | 34 +++++++++++++++++++++++++++++++++-
1 file changed, 33 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/c.scm b/gnu/packages/c.scm
index 4b9791348..d5b663150 100644
--- a/gnu/packages/c.scm
+++ b/gnu/packages/c.scm
@@ -1,6 +1,6 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2016 Ludovic Courtès <ludo@gnu.org>
-;;; Copyright © 2016 Ricardo Wurmus <rekado@elephly.net>
+;;; Copyright © 2016, 2017 Ricardo Wurmus <rekado@elephly.net>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -24,6 +24,8 @@
#:use-module (guix build-system gnu)
#:use-module (guix build-system trivial)
#:use-module (gnu packages bootstrap)
+ #:use-module (gnu packages bison)
+ #:use-module (gnu packages flex)
#:use-module (gnu packages perl)
#:use-module (gnu packages texinfo)
#:use-module (gnu packages guile))
@@ -128,3 +130,33 @@ standard.")
(chmod port #o777)))
#t)))
(synopsis "Wrapper providing the 'cc' command for TCC")))
+
+(define-public pcc
+ (package
+ (name "pcc")
+ (version "20170109")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "http://pcc.ludd.ltu.se/ftp/pub/pcc/pcc-"
+ version ".tgz"))
+ (sha256
+ (base32
+ "1p34w496095mi0473f815w6wbi57zxil106mg7pj6sg6gzpjcgww"))))
+ (build-system gnu-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda _
+ (zero? (system* "make" "-C" "cc/cpp" "test")))))))
+ (native-inputs
+ `(("bison" ,bison)
+ ("flex" ,flex)))
+ (synopsis "Portable C compiler")
+ (description
+ "PCC is a portable C compiler. The project goal is to write a C99
+compiler while still keeping it small, simple, fast and understandable.")
+ (home-page "http://pcc.ludd.ltu.se")
+ ;; PCC incorporates code under various BSD licenses; for new code bsd-2 is
+ ;; preferred. See http://pcc.ludd.ltu.se/licenses/ for more details.
+ (license (list license:bsd-2 license:bsd-3))))
--
2.11.0
next reply other threads:[~2017-01-09 21:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-09 21:19 Ricardo Wurmus [this message]
2017-01-09 23:04 ` [PATCH] gnu: Add pcc Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170109211944.21755-1-rekado@elephly.net \
--to=rekado@elephly.net \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.