[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#27344] [PATCH 06/12] gnu: Add freehdl.
From: |
Theodoros Foradis |
Subject: |
[bug#27344] [PATCH 06/12] gnu: Add freehdl. |
Date: |
Mon, 12 Jun 2017 19:52:20 +0300 |
* gnu/packages/engineering.scm (freehdl): New variable.
---
gnu/packages/engineering.scm | 46 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm
index 23754fb14..3f5dd9d33 100644
--- a/gnu/packages/engineering.scm
+++ b/gnu/packages/engineering.scm
@@ -982,3 +982,49 @@ specified in high-level description language into
ready-to-compile C code for
the API of spice simulators. Based on transformations specified in XML
language, ADMS transforms Verilog-AMS code into other target languages.")
(license license:gpl3)))
+
+(define-public freehdl
+ (package
+ (name "freehdl")
+ (version "0.0.8")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append
"http://downloads.sourceforge.net/qucs/freehdl-"
+ version ".tar.gz"))
+ (sha256
+ (base32
+ "117dqs0d4pcgbzvr3jn5ppra7n7x2m6c161ywh6laa934pw7h2bz"))))
+ (build-system gnu-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-before 'configure 'patch-pkg-config
+ (lambda _
+ (substitute* "freehdl/freehdl-config"
+ (("pkg-config") (which "pkg-config"))
+ (("cat") (which "cat")))
+ #t))
+ (add-after 'configure 'patch-freehdl-pc
+ (lambda _
+ (substitute* "freehdl.pc"
+ (("=g\\+\\+") (string-append "=" (which "g++")))
+ (("=libtool") (string-append "=" (which "libtool"))))
+ #t))
+ (add-after 'install-scripts 'make-wrapper
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out")))
+ (wrap-program (string-append out "/bin/freehdl-config")
+ `("PKG_CONFIG_PATH" ":" prefix (,(string-append out
"/lib/pkgconfig")))))
+ #t)))))
+ (inputs
+ `(("perl" ,perl)))
+ (native-inputs
+ `(("pkg-config" ,pkg-config)
+ ("libtool" ,libtool)))
+ (home-page "http://www.freehdl.seul.org/")
+ (synopsis "VHDL simulator")
+ (description
+ "FreeHDL is a compiler/simulator suite for the hardware description
language VHDL.
+ VHDL'93 as well as VHDL'87 standards are supported.")
+ (license (list license:gpl2+
+ license:lgpl2.0+)))) ; freehdl's libraries
--
2.13.1
[bug#27344] [PATCH 06/12] gnu: Add freehdl.,
Theodoros Foradis <=
[bug#27344] [PATCH 03/12] gnu: Add mpb., Theodoros Foradis, 2017/06/12
[bug#27344] [PATCH 07/12] gnu: Add asco., Theodoros Foradis, 2017/06/12