diff options
| author | Anderson Torres <anderson.torres.8519@gmail.com> | 2026-06-24 18:06:17 -0300 |
|---|---|---|
| committer | Nguyễn Gia Phong <cnx@loang.net> | 2026-06-25 11:15:15 +0900 |
| commit | 73ce9199dce5a5f3e1ef9f2cc76a37708f067dbb (patch) | |
| tree | 845902c20bdd30d86928ab7a0e59926e894afb53 /gnu/packages | |
| parent | a43b121a3cc39e00ceab25b3029719a182afb030 (diff) | |
gnu: packcc: Update to 3.1.0.
* gnu/packages/compiler-tools.scm (packcc): Update to 3.1.0.
[build-system]: Use cmake-build-system.
[arguments]<#:modules>: Add (guix build gnu-build-system).
<#:phases>{check}: Use check from gnu-build-system.
[native-inputs]: Add python.
[description]: Add link for packrat paper.
Merges: https://codeberg.org/guix/guix/pulls/9511
Signed-off-by: Nguyễn Gia Phong <cnx@loang.net>
Diffstat (limited to 'gnu/packages')
| -rw-r--r-- | gnu/packages/compiler-tools.scm | 41 |
1 files changed, 14 insertions, 27 deletions
diff --git a/gnu/packages/compiler-tools.scm b/gnu/packages/compiler-tools.scm index 12a04c623f2..5867c69b5be 100644 --- a/gnu/packages/compiler-tools.scm +++ b/gnu/packages/compiler-tools.scm | |||
| @@ -33,6 +33,7 @@ | |||
| 33 | #:use-module (gnu packages man) | 33 | #:use-module (gnu packages man) |
| 34 | #:use-module (gnu packages python) | 34 | #:use-module (gnu packages python) |
| 35 | #:use-module (gnu packages) | 35 | #:use-module (gnu packages) |
| 36 | #:use-module (guix build-system cmake) | ||
| 36 | #:use-module (guix build-system gnu) | 37 | #:use-module (guix build-system gnu) |
| 37 | #:use-module (guix build-system trivial) | 38 | #:use-module (guix build-system trivial) |
| 38 | #:use-module (guix download) | 39 | #:use-module (guix download) |
| @@ -218,7 +219,7 @@ symbolic link to the @command{oyacc} command from the same-named package."))) | |||
| 218 | (define-public packcc | 219 | (define-public packcc |
| 219 | (package | 220 | (package |
| 220 | (name "packcc") | 221 | (name "packcc") |
| 221 | (version "1.8.0") | 222 | (version "3.1.0") |
| 222 | (source | 223 | (source |
| 223 | (origin | 224 | (origin |
| 224 | (method git-fetch) | 225 | (method git-fetch) |
| @@ -228,40 +229,26 @@ symbolic link to the @command{oyacc} command from the same-named package."))) | |||
| 228 | (file-name (git-file-name name version)) | 229 | (file-name (git-file-name name version)) |
| 229 | (sha256 | 230 | (sha256 |
| 230 | (base32 | 231 | (base32 |
| 231 | "0b25p7ri1l2l20awyknljfnj7r4rg7cf2x3bljijx5q6j8rxdcsg")))) | 232 | "00aad9hx9kks2wyba8m2gb1pgsc1sxfpgndnfqhs7jswzks6455w")))) |
| 232 | (build-system gnu-build-system) | 233 | (build-system cmake-build-system) |
| 233 | (arguments | 234 | (arguments |
| 234 | (list | 235 | (list |
| 236 | #:modules | ||
| 237 | '((guix build cmake-build-system) | ||
| 238 | ((guix build gnu-build-system) #:prefix gnu:) | ||
| 239 | (guix build utils)) | ||
| 235 | #:phases | 240 | #:phases |
| 236 | #~(modify-phases %standard-phases | 241 | #~(modify-phases %standard-phases |
| 237 | (delete 'configure) | 242 | ;; INFO: This project does not use ctest. |
| 238 | (add-before 'build 'chdir | 243 | (replace 'check |
| 239 | (lambda _ | 244 | (assoc-ref gnu:%standard-phases 'check))))) |
| 240 | (chdir "build/gcc"))) | ||
| 241 | (add-before 'check 'pre-check | ||
| 242 | (lambda _ | ||
| 243 | (setenv "CC" #$(cc-for-target)) | ||
| 244 | ;; The style tests are supposed to be skipped when | ||
| 245 | ;; uncrustify is unavailable, but a stray version | ||
| 246 | ;; check prevents it from working. This can be | ||
| 247 | ;; removed for future versions of PackCC. | ||
| 248 | (substitute* "../../tests/style.d/style.bats" | ||
| 249 | (("^[[:blank:]]+check_uncrustify_version") | ||
| 250 | "")))) | ||
| 251 | (replace 'install | ||
| 252 | (lambda _ | ||
| 253 | (let* ((out #$output:out) | ||
| 254 | (bindir (string-append out "/bin")) | ||
| 255 | (docdir (string-append out "/share/doc/packcc"))) | ||
| 256 | (install-file "release/bin/packcc" bindir) | ||
| 257 | (install-file "../../README.md" docdir))))))) | ||
| 258 | (native-inputs | 245 | (native-inputs |
| 259 | (list bats)) | 246 | (list bats python)) |
| 260 | (home-page "https://github.com/arithy/packcc") | 247 | (home-page "https://github.com/arithy/packcc") |
| 261 | (synopsis "Packrat parser generator for C") | 248 | (synopsis "Packrat parser generator for C") |
| 262 | (description | 249 | (description |
| 263 | "PackCC is a packrat parser generator for the C programming language. | 250 | "PackCC is a @url{https://arxiv.org/abs/cs/0603077, packrat} |
| 264 | Its main features are: | 251 | parser generator for the C programming language. Its main features are: |
| 265 | @itemize | 252 | @itemize |
| 266 | @item Generates a parser in C from a grammar described in a PEG. | 253 | @item Generates a parser in C from a grammar described in a PEG. |
| 267 | @item Gives your parser great efficiency by packrat parsing. | 254 | @item Gives your parser great efficiency by packrat parsing. |
