From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58415) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1etNWx-0002ZG-4N for guix-patches@gnu.org; Tue, 06 Mar 2018 20:06:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1etNWs-0005qI-Io for guix-patches@gnu.org; Tue, 06 Mar 2018 20:06:07 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:40384) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1etNWs-0005q4-EY for guix-patches@gnu.org; Tue, 06 Mar 2018 20:06:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1etNWs-0003qH-6v for guix-patches@gnu.org; Tue, 06 Mar 2018 20:06:02 -0500 Subject: [bug#30739] [PATCH 2/3] gnu: Add python2-quex. Resent-Message-ID: From: Danny Milosavljevic Date: Wed, 7 Mar 2018 02:05:44 +0100 Message-Id: <20180307010545.31530-2-dannym@scratchpost.org> In-Reply-To: <20180307010545.31530-1-dannym@scratchpost.org> References: <20180307002657.31473-1-dannym@scratchpost.org> <20180307010545.31530-1-dannym@scratchpost.org> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 30739@debbugs.gnu.org * gnu/packages/adacore.scm (python2-quex): New variable. (python2-quex-0.67.3): New variable. --- gnu/packages/adacore.scm | 55 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/gnu/packages/adacore.scm b/gnu/packages/adacore.scm index 34415db8a..d1f5abd2c 100644 --- a/gnu/packages/adacore.scm +++ b/gnu/packages/adacore.scm @@ -41,3 +41,58 @@ specification in our Python DSL and Langkit will generate for you an Ada library with bindings for the C and Python programming languages.") (home-page "https://github.com/AdaCore/langkit/") (license license:gpl3+)))) ; and gcc runtime library exception + +;; Note: non-Ada +(define-public python2-quex-0.67.3 + (package + (name "python2-quex") + (version "0.67.3") + (source + (origin + (method url-fetch) + (uri (string-append "https://sourceforge.net/projects/quex/files/HISTORY/0.67/quex-" version ".zip/download")) + (sha256 + (base32 + "14gv8ll3ipqv4kyc2xiy891nrmjl4ic823zfyx8hassagyclyppw")) + (file-name (string-append name "-" version ".zip")))) + (build-system python-build-system) + (native-inputs + `(("unzip" ,unzip))) + (arguments + `(#:python ,python-2 + #:tests? #f + #:phases + (modify-phases %standard-phases + (delete 'configure) + (delete 'build) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (share/quex (string-append out "/share/quex")) + (bin (string-append out "/bin"))) + (copy-recursively "." share/quex) + (mkdir-p bin) + (symlink (string-append share/quex "/quex-exe.py") + (string-append bin "/quex")) + #t)))))) + (native-search-paths + (list (search-path-specification + (variable "QUEX_PATH") + (files '("share/quex"))))) + (home-page "http://quex.sourceforge.net/") + (synopsis "Lexical analyzer generator in Python") + (description "@code{quex} is a lexical analyzer generator in Python.") + (license license:lgpl2.1+))) ; Non-military + +(define-public python2-quex + (package (inherit python2-quex-0.67.3) + (name "python2-quex") + (version "0.68.1") + (source + (origin + (method url-fetch) + (uri (string-append "https://sourceforge.net/projects/quex/files/DOWNLOAD/quex-" version ".tar.gz/download")) + (sha256 + (base32 + "0svc9nla3b9145d6b7fb9dizx412l3difzqw0ilh9lz52nsixw8j")) + (file-name (string-append name "-" version ".zip"))))))