mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-12 14:16:55 -05:00
gnu: Add astyle.
* gnu/packages/pretty-print.scm (astyle): New variable.
This commit is contained in:
parent
5a4753a699
commit
47833c90d5
1 changed files with 41 additions and 0 deletions
|
@ -196,3 +196,44 @@ (define-public source-highlight
|
||||||
output to ANSI color escape sequences, so that highlighted source code can be
|
output to ANSI color escape sequences, so that highlighted source code can be
|
||||||
seen in a terminal.")
|
seen in a terminal.")
|
||||||
(license gpl3+)))
|
(license gpl3+)))
|
||||||
|
|
||||||
|
(define-public astyle
|
||||||
|
(package
|
||||||
|
(name "astyle")
|
||||||
|
(version "2.05")
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method url-fetch)
|
||||||
|
(uri (string-append "mirror://sourceforge/astyle/astyle/astyle%20"
|
||||||
|
version "/astyle_" version "_linux.tar.gz"))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"0f9sh9kq5ajp1yz133h00fr9235p1m698x7n3h7zbrhjiwgynd6s"))))
|
||||||
|
(build-system gnu-build-system)
|
||||||
|
(arguments
|
||||||
|
`(#:tests? #f ;no tests
|
||||||
|
#:make-flags (list (string-append "prefix=" %output)
|
||||||
|
"INSTALL=install"
|
||||||
|
"all")
|
||||||
|
#:phases (alist-replace
|
||||||
|
'configure
|
||||||
|
(lambda _ (chdir "build/gcc"))
|
||||||
|
(alist-cons-after
|
||||||
|
'install 'install-libs
|
||||||
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
|
;; Libraries are not installed by default
|
||||||
|
(let* ((output (assoc-ref outputs "out"))
|
||||||
|
(libdir (string-append output "/lib")))
|
||||||
|
(begin
|
||||||
|
(mkdir-p libdir)
|
||||||
|
(for-each (lambda (l)
|
||||||
|
(copy-file
|
||||||
|
l (string-append libdir "/" (basename l))))
|
||||||
|
(find-files "bin" "lib*")))))
|
||||||
|
%standard-phases))))
|
||||||
|
(home-page "http://astyle.sourceforge.net/")
|
||||||
|
(synopsis "Source code indenter, formatter, and beautifier")
|
||||||
|
(description
|
||||||
|
"Artistic Style is a source code indenter, formatter, and beautifier for
|
||||||
|
the C, C++, C++/CLI, Objective‑C, C#, and Java programming languages.")
|
||||||
|
(license lgpl3+)))
|
||||||
|
|
Loading…
Reference in a new issue