From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Bavier Subject: =?UTF-8?q?=5BPATCH=2001/14=5D=20gnu=3A=20Add=20astyle=2E?= Date: Sun, 7 Dec 2014 15:51:41 -0600 Message-ID: <1417989115-32107-2-git-send-email-bavier@member.fsf.org> References: <1417989115-32107-1-git-send-email-bavier@member.fsf.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43022) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xxjiq-0002GQ-Ni for guix-devel@gnu.org; Sun, 07 Dec 2014 16:50:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xxjih-0008Jn-AQ for guix-devel@gnu.org; Sun, 07 Dec 2014 16:50:32 -0500 Received: from mail-ie0-x229.google.com ([2607:f8b0:4001:c03::229]:52697) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xxjih-0008Jh-3Z for guix-devel@gnu.org; Sun, 07 Dec 2014 16:50:23 -0500 Received: by mail-ie0-f169.google.com with SMTP id y20so3584890ier.0 for ; Sun, 07 Dec 2014 13:50:22 -0800 (PST) In-Reply-To: <1417989115-32107-1-git-send-email-bavier@member.fsf.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org Cc: Eric Bavier * gnu/packages/pretty-print.scm (astyle): New variable. --- gnu/packages/pretty-print.scm | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/pretty-print.scm b/gnu/packages/pretty-print.scm index bd38a4b..1576c3d 100644 --- a/gnu/packages/pretty-print.scm +++ b/gnu/packages/pretty-print.scm @@ -196,3 +196,44 @@ output to 8 different formats, including HTML, LaTeX and ODF. It can also output to ANSI color escape sequences, so that highlighted source code can be seen in a terminal.") (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+))) -- 1.7.9.5