From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59301) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dO7WQ-000524-KS for guix-patches@gnu.org; Thu, 22 Jun 2017 15:12:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dO7WP-0003Dq-KC for guix-patches@gnu.org; Thu, 22 Jun 2017 15:12:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:59012) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dO7WP-0003Dm-Fp for guix-patches@gnu.org; Thu, 22 Jun 2017 15:12:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dO7WP-00043d-9i for guix-patches@gnu.org; Thu, 22 Jun 2017 15:12:05 -0400 Subject: [bug#27344] [PATCH v2 06/12] gnu: Add freehdl. Resent-Message-ID: From: Theodoros Foradis Date: Thu, 22 Jun 2017 22:09:59 +0300 Message-Id: <20170622191005.25422-6-theodoros.for@openmailbox.org> In-Reply-To: <20170622191005.25422-1-theodoros.for@openmailbox.org> References: <20170622191005.25422-1-theodoros.for@openmailbox.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: 27344@debbugs.gnu.org * 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 7d6fcb6d4..f38786d1a 100644 --- a/gnu/packages/engineering.scm +++ b/gnu/packages/engineering.scm @@ -1013,3 +1013,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