Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 135573 - sci-electronics/xnec2c new ebuild
Summary: sci-electronics/xnec2c new ebuild
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Default Assignee for New Packages
URL: http://5b4az.chronos.org.uk/pages/nec...
Whiteboard:
Keywords: EBUILD, InOverlay
Depends on:
Blocks:
 
Reported: 2006-06-04 16:08 UTC by Dominique Michel
Modified: 2010-08-25 17:44 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
sci-misc/xnec2c ebuild (xnec2c-0.3.ebuild,1.19 KB, text/plain)
2006-06-04 16:11 UTC, Dominique Michel
Details
ebuild for xnec2c-0.3 (xnec2c-0.3.ebuild,1.04 KB, text/plain)
2006-06-29 13:46 UTC, Dominique Michel
Details
ebuild for xnec2c-0.3 (xnec2c-0.3.ebuild,857 bytes, text/plain)
2006-07-03 06:11 UTC, Dominique Michel
Details
ebuild for xnec2c-0.3 (xnec2c-0.3.ebuild,851 bytes, text/plain)
2006-07-03 06:13 UTC, Dominique Michel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dominique Michel 2006-06-04 16:08:33 UTC
xnec2c is a GTK+ graphical interactive version of nec2c. It incorporates the nec2c core which it uses for reading input files and calculating output data, but it does not need and indeed does not produce an output file by default. Since xnec2c incorporates the nec2c core, it has access to all internal buffers, including structure data, frequency-related data (structure currents, input impedance, gain etc) and radiation pattern data (for the far field and near field). It therefore has the ability to graphically display user-requested data directly, as the frequency loop progresses or after input from the user. Graphs of frequency-related data and the current or charge distribution evolve as the frequency loop progresses, and radiation patterns (far and near field) are sequentially drawn for each frequency step. A new frequency can be entered by the user from spin buttons in the main or radiation pattern windows or by clicking on the graphs of frequency-related data. New output data are then computed and displayed in text and graphical form.

nec2c is based on nec2. 
The Numerical Electromagnetics code (NEC-2) is a computer code for analyzing
the electromagnetic response of an arbitrary structure consisting of wires and
surfaces in free space or over a ground plane. The analysis is accomplished by
the numerical solution of integral equations for induced currents. The
excitation may be an incident plane wave or a voltage source on a wire, while
the output may include current and charge density, electric or magnetic field
in the vicinity of the structure, and radiated fields.
Comment 1 Dominique Michel 2006-06-04 16:11:12 UTC
Created attachment 88386 [details]
sci-misc/xnec2c ebuild

Work just fine for me. Not sure about the dependancies.
Comment 2 George Shapovalov (RETIRED) gentoo-dev 2006-06-26 12:02:20 UTC
Few comments here as well:

1. RESTRICT="nomirror"
The package is under GPL according to the LICENSE line, why the restrict?

2.
src_compile() {
	econf || die "configure failed"
	emake || die "emake failed"
}
is totally unnecessary. This is the default, in fact the simplified default. src_compile should only be provided if you are doing something non-standard/non-trivial..

3. einfo install
is there a purpose to this? You do get notification that you are in the install phase anyway, just without color :).

4. 
cd ${S}/examples
doins *
could have been simply
doins examples/*
(you start in ${S} when you enter any of the src_* functions)

5. same comment on the docs installation as in #135573

George
Comment 3 Dominique Michel 2006-06-28 05:25:21 UTC
(In reply to comment #2)
> Few comments here as well:
> 
> 1. RESTRICT="nomirror"
> The package is under GPL according to the LICENSE line, why the restrict?
> 
because the download is not on a sourceforge mirror. Maybe I misunderstand the meaning of nomirror.
> 2.
> src_compile() {
>         econf || die "configure failed"
>         emake || die "emake failed"
> }
> is totally unnecessary. This is the default, in fact the simplified default.
> src_compile should only be provided if you are doing something
> non-standard/non-trivial..
> 
I was not aware of it, thanks to tell me that.
> 3. einfo install
> is there a purpose to this? You do get notification that you are in the install
> phase anyway, just without color :).
> 
No special purpose. I believe at I was just doing as in some another ebuild.
> 4. 
> cd ${S}/examples
> doins *
> could have been simply
> doins examples/*
> (you start in ${S} when you enter any of the src_* functions)
> 
Maybe some sandbox violation and I was working that way for me. It is just fine if it is a simpler way to do it.

Thank you,
Dominique
> 5. same comment on the docs installation as in #135573
> 
> George
> 

Comment 4 George Shapovalov (RETIRED) gentoo-dev 2006-06-29 08:36:47 UTC
(In reply to comment #3)
> > 1. RESTRICT="nomirror"
> > The package is under GPL according to the LICENSE line, why the restrict?
> > 
> because the download is not on a sourceforge mirror. Maybe I misunderstand the
> meaning of nomirror.
Argh, I for some reason read that as RESTRICT="fetch", sorry about that, but nomirror should not be there either. Strictly speaking, this restriction is for the situation when we cannot mirror sources (for some legal reasons) or we would rather not. The most common example of the last one is actually related to surceforge, but is the opposite of what you seem to think :). Gentoo has its own, quite intensive system of source mirrors, so most of the time sources are fetched off the mirrors and not from the upstream location (and thus upstream does not suffer huge hit rates and even small sites can survive). Sourceforge.net has its own similarly intense mirror system. In fact many mirrors carry both sourceforge and gentoo. So, in this particular case there is no gain by mirroring sources twice and putting that restriction makes sense. Then you put RESTRICT="nomirror" and specify SRC_URI in a special form:
SRC_URI="mirror://sourceforge/..."
thus avoiding the duplication of sources on mirrors. However this is usually taken care by the developer who commits the ebuild, so original submitters need not worry (as they don't usually know about all these small issues).

> > 3. einfo install
> No special purpose. I believe at I was just doing as in some another ebuild.
Sometimes I do something like this when debugging the ebuild, however normally this should not go into the final version, but sometimes may slip in, as people are usually concentrated on a "real" issues. Possibly you saw one of such slips. Here in is a value of revisiting one's commits after a while :).

> > 4. 
> > cd ${S}/examples
> > doins *
> > 
> Maybe some sandbox violation and I was working that way for me. It is just fine
> if it is a simpler way to do it.
Well, these two ways are completely identical. I do not see how having it in one line could cause sandbox violation. May be were at some very external location? But you should not have been able to go outside sandbox anyway..


So, could you update the ebuilds please, taking these notes into account? Even if no developer takes upon them to maintain it is still beneficial to users who may need one of these packages and who are going to just take them off bugzilla. It is better that they take the more "appropriate" version :).

Speaking of these ebuilds making it into the official tree: the major requirement is that they are actively maintained, meaning that there is an active maintainer (a developer) taking on it specifically or a herd (a grouping of packages that can be overseen by one or more developers) to which it can belong. So, would you be willing to take on the maintainership of these ebuilds and join Gentoo (Scientific Gentoo project specifically ;))? 

If you subscribe to gentoo-dev you may have noticed that we are reorganizing Scientific Gentoo and will have multiple groups of developers managing reasonably sized herds. I would guess these ebuilds would fall under sci-electronics, if they were going to go in eventually..


George
Comment 5 Donnie Berkholz (RETIRED) gentoo-dev 2006-06-29 08:42:57 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > > 1. RESTRICT="nomirror"
> > > The package is under GPL according to the LICENSE line, why the restrict?
> > > 
> > because the download is not on a sourceforge mirror. Maybe I misunderstand the
> > meaning of nomirror.
> Argh, I for some reason read that as RESTRICT="fetch", sorry about that, but
> nomirror should not be there either. Strictly speaking, this restriction is for
> the situation when we cannot mirror sources (for some legal reasons) or we
> would rather not. The most common example of the last one is actually related
> to surceforge, but is the opposite of what you seem to think :). Gentoo has its
> own, quite intensive system of source mirrors, so most of the time sources are
> fetched off the mirrors and not from the upstream location (and thus upstream
> does not suffer huge hit rates and even small sites can survive).
> Sourceforge.net has its own similarly intense mirror system. In fact many
> mirrors carry both sourceforge and gentoo. So, in this particular case there is
> no gain by mirroring sources twice and putting that restriction makes sense.
> Then you put RESTRICT="nomirror" and specify SRC_URI in a special form:
> SRC_URI="mirror://sourceforge/..."

Actually use RESTRICT="mirror" instead, nomirror is the deprecated form. We're restricting mirroring rather than restricting not mirroring.
Comment 6 Dominique Michel 2006-06-29 13:46:05 UTC
Created attachment 90472 [details]
ebuild for xnec2c-0.3

+ use flag for nec2 documentation
+ some minor changes (better syntax)
Comment 7 Dominique Michel 2006-07-03 06:11:30 UTC
Created attachment 90768 [details]
ebuild for xnec2c-0.3

Removed the doc use flag and added sci-electronics/nec2doc as dependency.
nec2doc ebuild: http://bugs.gentoo.org/show_bug.cgi?id=138770
Comment 8 Dominique Michel 2006-07-03 06:13:48 UTC
Created attachment 90769 [details]
ebuild for xnec2c-0.3

removed nomirror restriction
Comment 9 Dominique Michel 2006-07-03 06:40:46 UTC
It is maybe the same problem with this ebuild and the -O3 flag as with nec2++.
http://bugs.gentoo.org/show_bug.cgi?id=135550

I asked the xnec2c's developper if he is aware about that.
Comment 10 Cliff Yapp 2008-09-08 04:10:33 UTC
Is this the same program that has a 1.0 beta out?

http://ftp.de.debian.org/debian/pool/main/x/xnec2c/xnec2c_1.0b5.orig.tar.gz

For some reason I can't reach the project homepage right now, but the above version seems to build on my system.
Comment 11 Thomas Beierlein gentoo-dev 2010-06-30 19:11:01 UTC
New homepage is http://5b4az.chronos.org.uk/pages/nec2.html and actual version is 1.3
Comment 12 Andreas K. Hüttel archtester gentoo-dev 2010-06-30 19:21:33 UTC
Why not sci-electronics?
Comment 13 Thomas Beierlein gentoo-dev 2010-07-01 19:08:38 UTC
Ebuild for xnec2c-1.3 is now in sci overlay 
Comment 14 Thomas Beierlein gentoo-dev 2010-08-25 17:44:40 UTC
MOved to the tree.

+  25 Aug 2010; Thomas Beierlein <tomjbe@gentoo.org> +xnec2c-1.4.ebuild,
+  +metadata.xml:
+  Moved from science overlay, bug # 135573
+