* [gentoo-commits] repo/gentoo:master commit in: sci-electronics/xnecview/, sci-electronics/xnecview/files/
@ 2023-05-06 3:52 Sam James
0 siblings, 0 replies; only message in thread
From: Sam James @ 2023-05-06 3:52 UTC (permalink / raw
To: gentoo-commits
commit: 3b1e846ff1d0069ae6e028eab70777d08698c6ba
Author: Mario Haustein <mario.haustein <AT> hrz <DOT> tu-chemnitz <DOT> de>
AuthorDate: Thu Sep 1 17:03:45 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat May 6 03:48:42 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b1e846f
sci-electronics/xnecview: new package, add 1.37
Closes: https://bugs.gentoo.org/136778
Signed-off-by: Mario Haustein <mario.haustein <AT> hrz.tu-chemnitz.de>
Closes: https://github.com/gentoo/gentoo/pull/27107
Signed-off-by: Sam James <sam <AT> gentoo.org>
sci-electronics/xnecview/Manifest | 1 +
.../xnecview/files/xnecview-tc-variables.patch | 29 +++++++++++++++++
sci-electronics/xnecview/metadata.xml | 17 ++++++++++
sci-electronics/xnecview/xnecview-1.37.ebuild | 37 ++++++++++++++++++++++
4 files changed, 84 insertions(+)
diff --git a/sci-electronics/xnecview/Manifest b/sci-electronics/xnecview/Manifest
new file mode 100644
index 000000000000..8a9aa6cdf579
--- /dev/null
+++ b/sci-electronics/xnecview/Manifest
@@ -0,0 +1 @@
+DIST xnecview-1.37.tgz 79005 BLAKE2B 505ba69b7ba77355f789b36af3e1df3719eb0a9179541d83a26285a0e5c84fc7b9b156bf4d586bfa28af0074819e397bf7441e39a819972c701e6487787c07d3 SHA512 6fc4beec1b9502d6084d4e412b8bb89d1deeaab5bfa6c0341cba1a899fb9a59eb1e7f9dfc61a97f2853ecff57c241dc9af993b176410799a07f113e3a60f75d7
diff --git a/sci-electronics/xnecview/files/xnecview-tc-variables.patch b/sci-electronics/xnecview/files/xnecview-tc-variables.patch
new file mode 100644
index 000000000000..cd8a5c7d04dd
--- /dev/null
+++ b/sci-electronics/xnecview/files/xnecview-tc-variables.patch
@@ -0,0 +1,29 @@
+diff -Naur xnecview-1.37.org/Makefile xnecview-1.37/Makefile
+--- xnecview-1.37.org/Makefile 2006-03-27 22:38:37.000000000 +0200
++++ xnecview-1.37/Makefile 2022-09-01 19:00:31.929015747 +0200
+@@ -3,11 +3,12 @@
+
+
+
+-CC = gcc
+-CFLAGS = -O2 -g -Wall `pkg-config gtk+-2.0 --cflags`
++CC ?= gcc
++CFLAGS ?= -O2 -g -Wall
++CFLAGS += `$(PKG_CONFIG) gtk+-2.0 --cflags`
+
+-LD = $(CC)
+-LDFLAGS = `pkg-config gtk+-2.0 --libs` -lm
++LD ?= $(CC)
++LDFLAGS += `$(PKG_CONFIG) gtk+-2.0 --libs` -lm
+
+ ifeq ($(PNG),yes)
+ CFLAGS += -DHAVE_LIBPNG
+@@ -20,7 +21,7 @@
+ all: xnecview
+
+ xnecview: $(OBJS)
+- $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o xnecview
++ $(CC) $(CFLAGS) $(OBJS) $(LDFLAGS) -o xnecview
+
+ xnecview.tgz: $(SRCS)
+ tar czvf xnecview.tgz COPYING README HISTORY Imakefile Imakefile_nopng Makefile $(SRCS) xnecview.h config.h xnecview.1x xnecview.man
diff --git a/sci-electronics/xnecview/metadata.xml b/sci-electronics/xnecview/metadata.xml
new file mode 100644
index 000000000000..2f6ad5330dc3
--- /dev/null
+++ b/sci-electronics/xnecview/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person" proxied="yes">
+ <email>mario.haustein@hrz.tu-chemnitz.de</email>
+ <name>Mario Haustein</name>
+ </maintainer>
+ <maintainer type="project" proxied="proxy">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <longdescription>
+ Xnecview is a program for visualizing the input and output files of the
+ NEC antenna simulation software. It runs on Linux/Unix systems with the
+ X window system.
+ </longdescription>
+</pkgmetadata>
diff --git a/sci-electronics/xnecview/xnecview-1.37.ebuild b/sci-electronics/xnecview/xnecview-1.37.ebuild
new file mode 100644
index 000000000000..b6663d9c542f
--- /dev/null
+++ b/sci-electronics/xnecview/xnecview-1.37.ebuild
@@ -0,0 +1,37 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+DESCRIPTION="A program for visualizing NEC2 input and output data"
+HOMEPAGE="https://www.pa3fwm.nl/software/xnecview/"
+SRC_URI="https://www.pa3fwm.nl/software/xnecview/xnecview-${PV}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="
+ >=media-libs/libpng-1.6
+ x11-libs/gtk+:2
+"
+RDEPEND="${DEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-tc-variables.patch"
+)
+
+src_compile() {
+ tc-export CC LD PKG_CONFIG
+ emake
+}
+
+src_install() {
+ dobin xnecview
+ doman xnecview.1x
+ dodoc README
+ dodoc HISTORY
+}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2023-05-06 3:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-06 3:52 [gentoo-commits] repo/gentoo:master commit in: sci-electronics/xnecview/, sci-electronics/xnecview/files/ Sam James
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox