From a6033c5096ab2395e9c443f55402f9118d892d3f Mon Sep 17 00:00:00 2001 From: Guillaume Le Vaillant Date: Thu, 27 Jan 2022 15:56:07 +0100 Subject: gnu: xnec2c: Update to 4.4.5. * gnu/packages/radio.scm (xnec2c): Update to 4.4.5. [source, home-page]: Update URL. [native-inputs]: Add autoconf, automake, gettext-minimal, glib:bin and libtool. [arguments]: Add 'fix-paths' phase. --- gnu/packages/radio.scm | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) (limited to 'gnu/packages/radio.scm') diff --git a/gnu/packages/radio.scm b/gnu/packages/radio.scm index e7bd5fab5e..213b741629 100644 --- a/gnu/packages/radio.scm +++ b/gnu/packages/radio.scm @@ -1268,19 +1268,32 @@ operators.") (define-public xnec2c (package (name "xnec2c") - (version "4.2") + (version "4.4.5") (source (origin (method url-fetch) - (uri (string-append "http://www.5b4az.org/pkg/nec2/xnec2c/xnec2c-" - version ".tar.bz2")) + (uri (string-append "https://www.xnec2c.org/releases/xnec2c-v" + version ".tar.gz")) (sha256 - (base32 "0jprahww6jvwq616lkq80sac166ffy0fp83gr5kvjc9k4pcls00n")))) + (base32 "0v3qr16d42jri2vwwgrhhknaypdcjyn6ccdjpqfzr8zzr33z5pca")))) (build-system gnu-build-system) (native-inputs - (list pkg-config)) + (list autoconf + automake + gettext-minimal + `(,glib "bin") + libtool + pkg-config)) (inputs (list gtk+)) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'fix-paths + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "src/Makefile.am" + (("\\$\\(GLIB_COMPILE_RESOURCES\\)") + (search-input-file inputs "bin/glib-compile-resources")))))))) (synopsis "Antenna modeling software") (description "Xnec2c is a GTK3-based graphical version of nec2c, a translation to the @@ -1288,7 +1301,7 @@ C language of NEC2, the FORTRAN Numerical Electromagnetics Code commonly used for antenna simulation and analysis. It can be used to define the geometry of an antenna, and then plot the radiation pattern or frequency-related data like gain and standing wave ratio.") - (home-page "http://www.5b4az.org/") + (home-page "https://www.xnec2c.org/") (license license:gpl3+))) (define-public dump1090 -- cgit v1.2.3