From: Danny Milosavljevic <dannym@scratchpost.org>
To: 30739@debbugs.gnu.org
Subject: [bug#30739] [PATCH 2/3] gnu: Add python2-quex.
Date: Wed, 7 Mar 2018 02:05:44 +0100 [thread overview]
Message-ID: <20180307010545.31530-2-dannym@scratchpost.org> (raw)
In-Reply-To: <20180307010545.31530-1-dannym@scratchpost.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"))))))
next prev parent reply other threads:[~2018-03-07 1:06 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-07 0:26 [bug#30739] [PATCH 0/3] Add Ada parsers Danny Milosavljevic
2018-03-07 1:05 ` [bug#30739] [PATCH 1/3] gnu: Add python2-langkit Danny Milosavljevic
2018-03-07 1:05 ` Danny Milosavljevic [this message]
2018-03-12 14:35 ` [bug#30739] [PATCH 2/3] gnu: Add python2-quex Ludovic Courtès
2018-03-13 19:58 ` Danny Milosavljevic
2018-03-13 21:09 ` Ludovic Courtès
2018-03-13 21:29 ` Danny Milosavljevic
2018-03-16 11:03 ` Ludovic Courtès
2018-03-07 1:05 ` [bug#30739] [PATCH 3/3] gnu: Add python2-libadalang Danny Milosavljevic
2018-03-12 14:35 ` Ludovic Courtès
2018-03-12 14:33 ` [bug#30739] [PATCH 1/3] gnu: Add python2-langkit Ludovic Courtès
2018-03-13 19:57 ` Danny Milosavljevic
2018-03-11 8:27 ` bug#30739: Invalid timezone (tzalloc failure) treated as out-of-memory Paul Eggert
2018-03-11 8:34 ` [bug#30739] " Paul Eggert
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=20180307010545.31530-2-dannym@scratchpost.org \
--to=dannym@scratchpost.org \
--cc=30739@debbugs.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.