Browse Source

sci-electronics/tnt: drop dead package

Package-Manager: Portage-3.0.8, Repoman-3.0.1
Signed-off-by: Aisha Tammy <gentoo@aisha.cc>
master
Aisha Tammy 12 months ago
parent
commit
bbfa5aaf61
No known key found for this signature in database GPG Key ID: 913E59EBF6E40DBE
  1. 1
      sci-electronics/tnt/Manifest
  2. 277
      sci-electronics/tnt/files/tnt-1.2.2-autotools.patch
  3. 11
      sci-electronics/tnt/files/tnt-1.2.2-bem-nmmtl.patch
  4. 503
      sci-electronics/tnt/files/tnt-1.2.2-calc.patch
  5. 66
      sci-electronics/tnt/files/tnt-1.2.2-docs.patch
  6. 14
      sci-electronics/tnt/files/tnt-1.2.2-f77.patch
  7. 24
      sci-electronics/tnt/files/tnt-1.2.2-gui.patch
  8. 230
      sci-electronics/tnt/files/tnt-1.2.2-namespaces.patch
  9. 16
      sci-electronics/tnt/files/tnt-1.2.2-tkcon.patch
  10. 11
      sci-electronics/tnt/metadata.xml
  11. 62
      sci-electronics/tnt/tnt-1.2.2.ebuild

1
sci-electronics/tnt/Manifest

@ -1 +0,0 @@
DIST tnt-1.2.2.tar.gz 2020099 BLAKE2B 311bf62634c7585ccf8d0267ffa2f1b91593e63dd267e767a54d94b98d1adc4b38bb617a1bdb6a2f23758b5ac48708e3a7b11f7aac153825cbb0b4aef1aad19d SHA512 7e0c1f1b39d52529a19f85c5a5a9e4f55575afa4214607a4616e60afff552a7b29c63240d409b2dd230479b3c16162d37bbd34faaf4d726cfe17e59775a89467

277
sci-electronics/tnt/files/tnt-1.2.2-autotools.patch

@ -1,277 +0,0 @@
bem/Makefile.am | 5 +++--
calcCAP/Makefile.am | 3 ++-
calcRL/Makefile.am | 3 ++-
csdl/Makefile.am | 5 +++--
gui/Makefile.am | 12 +++---------
sppdgTcllib/Makefile.am | 3 ++-
sppdgTcllib/addressDialog/Makefile.am | 3 ++-
sppdgTcllib/addressDialog/configure.ac | 2 +-
sppdgTcllib/configure.ac | 2 +-
sppdgTcllib/console/Makefile.am | 7 +++----
sppdgTcllib/console/configure.ac | 4 ++--
sppdgTcllib/getFilePreview/Makefile.am | 3 ++-
sppdgTcllib/getFilePreview/configure.ac | 2 +-
sppdgTcllib/sgraph/Makefile.am | 3 ++-
sppdgTcllib/sgraph/configure.ac | 2 +-
units/Makefile.am | 3 ++-
16 files changed, 32 insertions(+), 30 deletions(-)
diff --git a/bem/Makefile.am b/bem/Makefile.am
index c2af1cd..9b784ca 100755
--- a/bem/Makefile.am
+++ b/bem/Makefile.am
@@ -31,9 +31,10 @@ AUTOMAKE_OPTIONS = foreign subdir-objects
#---------------------------------------------------------------
# tcl/tk scripts that may need to be installed.
#---------------------------------------------------------------
-pkglib_SCRIPTS = \
+scriptsdir=${pkgdatadir}/scripts
+scripts_DATA = \
lib/bem.tcl \
- lib/bem_gpge.itcl \
+ lib/bem_gpge.itcl \
lib/bem_graphs.itcl \
lib/bem_iterate.tcl \
lib/bem_parameters.tcl \
diff --git a/calcCAP/Makefile.am b/calcCAP/Makefile.am
index 703cb0f..ce34995 100755
--- a/calcCAP/Makefile.am
+++ b/calcCAP/Makefile.am
@@ -30,7 +30,8 @@ AUTOMAKE_OPTIONS = foreign subdir-objects
#---------------------------------------------------------------
# tcl/tk scripts that may need to be installed.
#---------------------------------------------------------------
-pkglib_SCRIPTS = \
+scriptsdir=${pkgdatadir}/scripts
+scripts_DATA = \
lib/calcCAP_exe.tcl \
lib/calcCAP.tcl \
lib/epl.bit \
diff --git a/calcRL/Makefile.am b/calcRL/Makefile.am
index 34dbb8d..9c2986c 100755
--- a/calcRL/Makefile.am
+++ b/calcRL/Makefile.am
@@ -31,7 +31,8 @@ AUTOMAKE_OPTIONS = foreign subdir-objects
#---------------------------------------------------------------
# tcl/tk scripts that may need to be installed.
#---------------------------------------------------------------
-pkglib_SCRIPTS = \
+scriptsdir=${pkgdatadir}/scripts
+scripts_SCRIPTS = \
lib/calcRL.tcl \
lib/calcRL_exe.tcl \
lib/pkgIndex.tcl
diff --git a/csdl/Makefile.am b/csdl/Makefile.am
index c49af20..2b74c89 100755
--- a/csdl/Makefile.am
+++ b/csdl/Makefile.am
@@ -31,7 +31,8 @@ AUTOMAKE_OPTIONS = foreign subdir-objects
#---------------------------------------------------------------
# tcl/tk scripts that may need to be installed.
#---------------------------------------------------------------
-pkglib_SCRIPTS = \
+scriptsdir=${pkgdatadir}/scripts
+scripts_DATA = \
csdl.tcl \
csdl_hlcsdl.itcl \
csdl_llcsdl.itcl \
@@ -44,4 +45,4 @@ pkglib_SCRIPTS = \
#---------------------------------------------------------------
pkglibdir = $(libdir)/$(PACKAGE)$(PACKAGE_VERSION)
-
+
diff --git a/gui/Makefile.am b/gui/Makefile.am
index 44a4308..df8c284 100755
--- a/gui/Makefile.am
+++ b/gui/Makefile.am
@@ -30,7 +30,8 @@ AUTOMAKE_OPTIONS = foreign
#---------------------------------------------------------------
# tcl/tk scripts to be installed.
#---------------------------------------------------------------
-pkglib_SCRIPTS = \
+scriptsdir=${pkgdatadir}/scripts
+scripts_DATA = \
canvas_functions.tcl \
gui.tcl \
gui_build.tcl \
@@ -41,14 +42,7 @@ pkglib_SCRIPTS = \
gui_xmission.tcl \
pkgIndex.tcl \
splash.tcl \
- style.tcl
-
-
-
-#---------------------------------------------------------------
-# Data files to be installed
-#---------------------------------------------------------------
-pkglib_DATA = \
+ style.tcl \
MayoSPPDGlogo.gif \
conductivity.list \
loss_tangent.list \
diff --git a/sppdgTcllib/Makefile.am b/sppdgTcllib/Makefile.am
index 589874b..e16b83e 100755
--- a/sppdgTcllib/Makefile.am
+++ b/sppdgTcllib/Makefile.am
@@ -33,7 +33,8 @@ AUTOMAKE_OPTIONS = foreign subdir-objects
#---------------------------------------------------------------
# Only one script that needs to be installed.
#---------------------------------------------------------------
-pkglib_SCRIPTS = \
+scriptsdir=${pkgdatadir}/scripts
+scripts_DATA = \
pkgIndex.tcl
#---------------------------------------------------------------
diff --git a/sppdgTcllib/addressDialog/Makefile.am b/sppdgTcllib/addressDialog/Makefile.am
index 32fc525..47ef097 100755
--- a/sppdgTcllib/addressDialog/Makefile.am
+++ b/sppdgTcllib/addressDialog/Makefile.am
@@ -14,7 +14,8 @@ AUTOMAKE_OPTIONS = foreign subdir-objects
#---------------------------------------------------------------
# tcl/tk scripts that may need to be installed.
#---------------------------------------------------------------
-pkglib_SCRIPTS = \
+scriptsdir=${pkgdatadir}/scripts
+scripts_DATA = \
addressDialog.tcl \
pkgIndex.tcl
diff --git a/sppdgTcllib/addressDialog/configure.ac b/sppdgTcllib/addressDialog/configure.ac
index 488ed2c..288faf3 100755
--- a/sppdgTcllib/addressDialog/configure.ac
+++ b/sppdgTcllib/addressDialog/configure.ac
@@ -21,7 +21,7 @@ AC_INIT(ADDRESSDIALOG, 1.0, schrauf@mayo.edu)
# we're going to use automake later.
#----------------------------------------------------------------
AC_CONFIG_SRCDIR
-AM_INIT_AUTOMAKE(addressDialog, 1.0)
+AM_INIT_AUTOMAKE
#----------------------------------------------------------------
diff --git a/sppdgTcllib/configure.ac b/sppdgTcllib/configure.ac
index e4e8d54..6e010e1 100755
--- a/sppdgTcllib/configure.ac
+++ b/sppdgTcllib/configure.ac
@@ -28,7 +28,7 @@ AC_INIT(sppdgTcllib, 1.0, techentin.robert@mayo.edu)
# we're going to use automake later.
#----------------------------------------------------------------
AC_CONFIG_SRCDIR
-AM_INIT_AUTOMAKE(sppdgTcllib, 1.0)
+AM_INIT_AUTOMAKE
#---------------------------------------------------------------
diff --git a/sppdgTcllib/console/Makefile.am b/sppdgTcllib/console/Makefile.am
index 92d5a2f..9bbe657 100755
--- a/sppdgTcllib/console/Makefile.am
+++ b/sppdgTcllib/console/Makefile.am
@@ -33,13 +33,12 @@ AUTOMAKE_OPTIONS = foreign
#---------------------------------------------------------------
# tcl/tk scripts that may need to be installed.
#---------------------------------------------------------------
-pkglib_SCRIPTS = \
+scriptsdir=${pkgdatadir}/scripts
+scripts_DATA = \
console.tcl \
console_demo.tcl \
tkcon.tcl \
- pkgIndex.tcl
-
-pkglib_DATA = \
+ pkgIndex.tcl \
README
#---------------------------------------------------------------
diff --git a/sppdgTcllib/console/configure.ac b/sppdgTcllib/console/configure.ac
index 1ce7a3c..bf4d12c 100755
--- a/sppdgTcllib/console/configure.ac
+++ b/sppdgTcllib/console/configure.ac
@@ -22,14 +22,14 @@
# Declare the package name and version.
# All the bouquets and brickbats go to Bob. :-)
#----------------------------------------------------------------
-AC_INIT(console, 1.1, techentin.robert@mayo.edu)
+AC_INIT([console], [1.1], techentin.robert@mayo.edu)
#----------------------------------------------------------------
# Give autoconf a point of reference, and tell it that
# we're going to use automake later.
#----------------------------------------------------------------
AC_CONFIG_SRCDIR
-AM_INIT_AUTOMAKE(console, 1.1)
+AM_INIT_AUTOMAKE
#----------------------------------------------------------------
diff --git a/sppdgTcllib/getFilePreview/Makefile.am b/sppdgTcllib/getFilePreview/Makefile.am
index 94394c3..c0c6394 100755
--- a/sppdgTcllib/getFilePreview/Makefile.am
+++ b/sppdgTcllib/getFilePreview/Makefile.am
@@ -32,7 +32,8 @@ AUTOMAKE_OPTIONS = foreign
#---------------------------------------------------------------
# tcl/tk scripts that may need to be installed.
#---------------------------------------------------------------
-pkglib_SCRIPTS = \
+scriptsdir=${pkgdatadir}/scripts
+scripts_DATA = \
getFilePreview.tcl \
pkgIndex.tcl
diff --git a/sppdgTcllib/getFilePreview/configure.ac b/sppdgTcllib/getFilePreview/configure.ac
index ccf33a3..50b1838 100755
--- a/sppdgTcllib/getFilePreview/configure.ac
+++ b/sppdgTcllib/getFilePreview/configure.ac
@@ -28,7 +28,7 @@ AC_INIT(getFilePreview, 1.0, techentin.robert@mayo.edu)
# we're going to use automake later.
#----------------------------------------------------------------
AC_CONFIG_SRCDIR
-AM_INIT_AUTOMAKE(getFilePreview, 1.0)
+AM_INIT_AUTOMAKE
#----------------------------------------------------------------
diff --git a/sppdgTcllib/sgraph/Makefile.am b/sppdgTcllib/sgraph/Makefile.am
index b02a876..b1da3e1 100755
--- a/sppdgTcllib/sgraph/Makefile.am
+++ b/sppdgTcllib/sgraph/Makefile.am
@@ -32,7 +32,8 @@ AUTOMAKE_OPTIONS = foreign subdir-objects
#---------------------------------------------------------------
# tcl/tk scripts that may need to be installed.
#---------------------------------------------------------------
-pkglib_SCRIPTS = \
+scriptsdir=${pkgdatadir}/scripts
+scripts_DATA = \
sgraph.tcl \
pkgIndex.tcl
diff --git a/sppdgTcllib/sgraph/configure.ac b/sppdgTcllib/sgraph/configure.ac
index 8eb7ef7..e28b7dd 100755
--- a/sppdgTcllib/sgraph/configure.ac
+++ b/sppdgTcllib/sgraph/configure.ac
@@ -29,7 +29,7 @@ AC_INIT(SGRAPH, 1.0, zahn.sharon@mayo.edu)
# we're going to use automake later.
#----------------------------------------------------------------
AC_CONFIG_SRCDIR
-AM_INIT_AUTOMAKE(sgraph, 1.0)
+AM_INIT_AUTOMAKE
#----------------------------------------------------------------
diff --git a/units/Makefile.am b/units/Makefile.am
index c47ec3c..ea941a9 100755
--- a/units/Makefile.am
+++ b/units/Makefile.am
@@ -31,7 +31,8 @@ AUTOMAKE_OPTIONS = foreign subdir-objects
#---------------------------------------------------------------
# tcl/tk scripts that may need to be installed.
#---------------------------------------------------------------
-pkglib_SCRIPTS = \
+scriptsdir=${pkgdatadir}/scripts
+scripts_DATA = \
units.tcl \
pkgIndex.tcl \
units.html

11
sci-electronics/tnt/files/tnt-1.2.2-bem-nmmtl.patch

@ -1,11 +0,0 @@
--- bem/src/nmmtl.cpp.org 2011-02-19 16:12:58.000000000 -0800
+++ bem/src/nmmtl.cpp 2011-02-19 16:15:36.000000000 -0800
@@ -352,7 +352,7 @@
sprintf (filespec, "%s.result", filename);
if( (output_file1 = fopen(filespec,"w")) == NULL )
{
- printf ("*** Could not open %s for output ***\n");
+ printf ("*** Could not open %s for output ***\n", filespec);
return 0; /* Fatal error; could not open output file */
}

503
sci-electronics/tnt/files/tnt-1.2.2-calc.patch

@ -1,503 +0,0 @@
# Adapt this old source to the new C++ standards
# These patches fix a c++ scope issue, gcc was for some reason
# not able to discover friend function of class Complex.
# This has been solved by making this functions a member instead of a friend.
# George Reitsma <g.p.reitsma@gmail.com>
diff -ruN tnt-1.2.2-0-vanilla/calcCAP/src/calcCAP.cpp tnt-1.2.2/calcCAP/src/calcCAP.cpp
--- tnt-1.2.2-0-vanilla/calcCAP/src/calcCAP.cpp 2004-07-22 21:29:12.000000000 +0200
+++ tnt-1.2.2/calcCAP/src/calcCAP.cpp 2011-02-24 19:29:44.000000000 +0100
@@ -14,6 +14,8 @@
#endif
#include <time.h>
#include <stdio.h>
+#include <string.h>
+using namespace std;
/********************** Global variables *******************/
@@ -287,7 +289,7 @@
for ( i1 = 0; i1 < Nc; i1 ++ ) {
- sumc[i1] = cmplx( 0.0, 0.0 );
+ sumc[i1] = Complex( 0.0, 0.0 );
for ( j1 = 0; j1 < Nw; j1 ++ ) {
diff -ruN tnt-1.2.2-0-vanilla/calcCAP/src/cmplxmat.cpp tnt-1.2.2/calcCAP/src/cmplxmat.cpp
--- tnt-1.2.2-0-vanilla/calcCAP/src/cmplxmat.cpp 2004-07-22 21:29:12.000000000 +0200
+++ tnt-1.2.2/calcCAP/src/cmplxmat.cpp 2011-02-24 19:29:44.000000000 +0100
@@ -378,7 +378,7 @@
Matrix result(d_i,d_j);
for(int i = 0; i < d_i; i++)
for(int j = 0; j < d_j; j++)
- result(i,j)=::real(elem(i,j));
+ result(i,j)=elem(i,j).real(); // result(i,j)=::real(elem(i,j));
return (result);
}
@@ -387,7 +387,7 @@
Matrix result(d_i,d_j);
for(int i = 0; i < d_i; i++)
for(int j = 0; j < d_j; j++)
- result(i,j)=::imag(elem(i,j));
+ result(i,j)=elem(i,j).imag(); // result(i,j)=::imag(elem(i,j));
return (result);
}
@@ -396,7 +396,7 @@
Matrix result(d_i,d_j);
for(int i = 0; i < d_i; i++)
for(int j = 0; j < d_j; j++)
- result(i,j)=::cabs(elem(i,j));
+ result(i,j)=elem(i,j).cabs(); // result(i,j)=::cabs(elem(i,j));
return (result);
}
@@ -405,7 +405,7 @@
CmplxMatrix result(d_i,d_j);
for(int i = 0; i < d_i; i++)
for(int j = 0; j < d_j; j++)
- result(i,j)=::conjg(elem(i,j));
+ result(i,j)=elem(i,j).conjg(); // result(i,j)=::conjg(elem(i,j));
return (result);
}
diff -ruN tnt-1.2.2-0-vanilla/calcCAP/src/cmplxvec.cpp tnt-1.2.2/calcCAP/src/cmplxvec.cpp
--- tnt-1.2.2-0-vanilla/calcCAP/src/cmplxvec.cpp 2004-07-22 21:29:12.000000000 +0200
+++ tnt-1.2.2/calcCAP/src/cmplxvec.cpp 2011-02-24 19:29:44.000000000 +0100
@@ -287,7 +287,7 @@
int n = d;
CmplxVector tmp(n);
- for(int i = 0; i < n; i++) tmp[i] = ::conjg(v[i]);
+ for(int i = 0; i < n; i++) tmp[i] = v[i].conjg(); // tmp[i] = ::conjg(v[i]);
return (tmp);
}
@@ -295,7 +295,7 @@
Vector tmp(d);
int n = d;
- while(n--) tmp[n] = ::real(v[n]);
+ while(n--) tmp[n] = v[n].real(); // tmp[n] = ::real(v[n]);
return (tmp);
}
@@ -303,7 +303,7 @@
Vector tmp(d);
int n = d;
- while(n--) tmp[n] = ::imag(v[n]);
+ while(n--) tmp[n] = v[n].imag(); // tmp[n] = ::imag(v[n]);
return (tmp);
}
@@ -311,7 +311,7 @@
Vector result(d);
for(int i = 0; i < d; i++)
- result[i]=::cabs(v[i]);
+ result[i]=v[i].cabs(); // result[i]=::cabs(v[i]);
return (result);
}
diff -ruN tnt-1.2.2-0-vanilla/calcCAP/src/complex.cpp tnt-1.2.2/calcCAP/src/complex.cpp
--- tnt-1.2.2-0-vanilla/calcCAP/src/complex.cpp 2002-10-10 15:46:00.000000000 +0200
+++ tnt-1.2.2/calcCAP/src/complex.cpp 2011-02-24 19:29:44.000000000 +0100
@@ -203,6 +203,54 @@
return(result);
}
+double Complex::real(void) {
+
+ return(re);
+}
+
+double Complex::imag(void) {
+
+ return(im);
+}
+
+double Complex::arg(void) {
+
+ return((im == 0.0)&&(re == 0.0) ? 0 : atan2(im, re));
+}
+
+double Complex::cabs(void) {
+
+ double x, y, ans, temp;
+ x = fabs(re);
+ y = fabs(im);
+ if (x == 0.0)
+ ans = y;
+ else if (y == 0.0)
+ ans = x;
+ else if (x > y) {
+ temp = y/x;
+ ans = x*sqrt(1.0+temp*temp);
+ } else {
+ temp = x/y;
+ ans = y*sqrt(1.0+temp*temp);
+ }
+ return ans;
+}
+
+double Complex::cabsm(void) {
+
+ return(sqrt(re*re + im*im));
+}
+
+Complex Complex::conjg(void) {
+
+ Complex com;
+ com.re = re;
+ com.im = -im;
+ return(com);
+}
+
+
/********************* friends *****************************/
Complex operator*(const double& r, const Complex& c) {
diff -ruN tnt-1.2.2-0-vanilla/calcCAP/src/complex.h tnt-1.2.2/calcCAP/src/complex.h
--- tnt-1.2.2-0-vanilla/calcCAP/src/complex.h 2002-10-10 15:46:00.000000000 +0200
+++ tnt-1.2.2/calcCAP/src/complex.h 2011-02-24 19:29:44.000000000 +0100
@@ -1,10 +1,13 @@
#ifndef _complex__h_
#define _complex__h_
-#include <iostream.h>
+#include <iostream>
+using namespace std;
class Complex
{
+ public:
+
friend Complex operator*(const double&, const Complex&);
friend Complex operator+(const double&, const Complex&);
friend Complex operator-(const double&, const Complex&);
@@ -16,6 +19,14 @@
friend double cabs(const Complex&);
friend double cabsm(const Complex&);
friend Complex conjg(const Complex&);
+
+ double real(void);
+ double imag(void);
+ double arg(void);
+ double cabs(void);
+ double cabsm(void);
+ Complex conjg(void);
+
friend Complex cmplx(const double,const double);
friend Complex polar(const double&, const double&);
friend Complex cos(const Complex&);
@@ -37,7 +48,6 @@
friend ostream& operator<<(ostream&, Complex&);
friend istream& operator>>(istream&, Complex&);
- public:
Complex(){} // constructors
Complex(double r, double i = 0.0);
Complex(const Complex&);
diff -ruN tnt-1.2.2-0-vanilla/calcCAP/src/data.cpp tnt-1.2.2/calcCAP/src/data.cpp
--- tnt-1.2.2-0-vanilla/calcCAP/src/data.cpp 2002-10-10 15:46:01.000000000 +0200
+++ tnt-1.2.2/calcCAP/src/data.cpp 2011-02-24 19:29:44.000000000 +0100
@@ -260,7 +260,7 @@
}
}
- Ic = cmplx( 0.0, 1.0 );
+ Ic = Complex( 0.0, 1.0 );
Nc4 = 11*Nh+1;
step_w = 1.0/power( 2.0, J );
diff -ruN tnt-1.2.2-0-vanilla/calcRL/src/calcRL.cpp tnt-1.2.2/calcRL/src/calcRL.cpp
--- tnt-1.2.2-0-vanilla/calcRL/src/calcRL.cpp 2004-07-22 21:29:37.000000000 +0200
+++ tnt-1.2.2/calcRL/src/calcRL.cpp 2011-02-24 19:29:53.000000000 +0100
@@ -43,7 +43,8 @@
#endif
#include <time.h>
#include <stdio.h>
-
+#include <string.h>
+using namespace std;
/********************** Global variables *******************/
int Nc, Die, Rec, Cir, Tri, Ell, Pol, Gnd, Tra;
@@ -564,7 +565,7 @@
tmp4 = Circum[i] / double(Nw);
tmpsum1 = 0.0;
tmpsum2 = 0.0;
- sum2[i] = cmplx( 0.0, 0.0 );
+ sum2[i] = Complex( 0.0, 0.0 );
for (j = 0; j < Nw; j ++) {
diff -ruN tnt-1.2.2-0-vanilla/calcRL/src/cmplxmat.cpp tnt-1.2.2/calcRL/src/cmplxmat.cpp
--- tnt-1.2.2-0-vanilla/calcRL/src/cmplxmat.cpp 2004-07-22 21:29:37.000000000 +0200
+++ tnt-1.2.2/calcRL/src/cmplxmat.cpp 2011-02-24 19:29:53.000000000 +0100
@@ -386,7 +386,7 @@
Matrix result(d_i,d_j);
for(int i = 0; i < d_i; i++)
for(int j = 0; j < d_j; j++)
- result(i,j)=::real(elem(i,j));
+ result(i,j)=elem(i,j).real(); // result(i,j)=::real(elem(i,j));
return (result);
}
@@ -395,7 +395,7 @@
Matrix result(d_i,d_j);
for(int i = 0; i < d_i; i++)
for(int j = 0; j < d_j; j++)
- result(i,j)=::imag(elem(i,j));
+ result(i,j)=elem(i,j).imag(); // result(i,j)=::imag(elem(i,j));
return (result);
}
@@ -404,7 +404,7 @@
Matrix result(d_i,d_j);
for(int i = 0; i < d_i; i++)
for(int j = 0; j < d_j; j++)
- result(i,j)=::cabs(elem(i,j));
+ result(i,j)=elem(i,j).cabs(); // result(i,j)=::cabj(elem(i,j));
return (result);
}
@@ -413,7 +413,7 @@
CmplxMatrix result(d_i,d_j);
for(int i = 0; i < d_i; i++)
for(int j = 0; j < d_j; j++)
- result(i,j)=::conjg(elem(i,j));
+ result(i,j)=elem(i,j).conjg(); // result(i,j)=::conjg(elem(i,j));
return (result);
}
diff -ruN tnt-1.2.2-0-vanilla/calcRL/src/cmplxvec.cpp tnt-1.2.2/calcRL/src/cmplxvec.cpp
--- tnt-1.2.2-0-vanilla/calcRL/src/cmplxvec.cpp 2004-07-22 21:29:37.000000000 +0200
+++ tnt-1.2.2/calcRL/src/cmplxvec.cpp 2011-02-24 19:29:53.000000000 +0100
@@ -289,7 +289,7 @@
int n = d;
CmplxVector tmp(n);
- for(int i = 0; i < n; i++) tmp[i] = ::conjg(v[i]);
+ for(int i = 0; i < n; i++) tmp[i] = v[i].conjg(); // tmp[i] = ::conjg(v[i]);
return (tmp);
}
@@ -297,7 +297,7 @@
Vector tmp(d);
int n = d;
- while(n--) tmp[n] = ::real(v[n]);
+ while(n--) tmp[n] = v[n].real(); // tmp[n] = ::real(v[n]);
return (tmp);
}
@@ -305,7 +305,7 @@
Vector tmp(d);
int n = d;
- while(n--) tmp[n] = ::imag(v[n]);
+ while(n--) tmp[n] = v[n].imag(); // tmp[n] = ::imag(v[n])
return (tmp);
}
@@ -313,7 +313,7 @@
Vector result(d);
for(int i = 0; i < d; i++)
- result[i]=::cabs(v[i]);
+ result[i]=v[i].cabs(); // result[i]=::cabs(v[i]);
return (result);
}
diff -ruN tnt-1.2.2-0-vanilla/calcRL/src/complex.cpp tnt-1.2.2/calcRL/src/complex.cpp
--- tnt-1.2.2-0-vanilla/calcRL/src/complex.cpp 2002-10-09 22:23:38.000000000 +0200
+++ tnt-1.2.2/calcRL/src/complex.cpp 2011-02-24 19:29:53.000000000 +0100
@@ -17,6 +17,53 @@
/*********************** members *********************************/
+double Complex::real(void) {
+
+ return(re);
+}
+
+double Complex::imag(void) {
+
+ return(im);
+}
+
+double Complex::arg(void) {
+
+ return((im == 0.0)&&(re == 0.0) ? 0 : atan2(im, re));
+}
+
+double Complex::cabs(void) {
+
+ double x, y, ans, temp;
+ x = fabs(re);
+ y = fabs(im);
+ if (x == 0.0)
+ ans = y;
+ else if (y == 0.0)
+ ans = x;
+ else if (x > y) {
+ temp = y/x;
+ ans = x*sqrt(1.0+temp*temp);
+ } else {
+ temp = x/y;
+ ans = y*sqrt(1.0+temp*temp);
+ }
+ return ans;
+}
+
+double Complex::cabsm(void) {
+
+ return(sqrt(re*re + im*im));
+}
+
+Complex Complex::conjg(void) {
+
+ Complex com;
+ com.re = re;
+ com.im = -im;
+ return(com);
+}
+
/********************* friends *****************************/
Complex operator*(const double& r, const Complex& c) {
diff -ruN tnt-1.2.2-0-vanilla/calcRL/src/complex.h tnt-1.2.2/calcRL/src/complex.h
--- tnt-1.2.2-0-vanilla/calcRL/src/complex.h 2002-10-09 22:23:39.000000000 +0200
+++ tnt-1.2.2/calcRL/src/complex.h 2011-02-24 19:29:53.000000000 +0100
@@ -3,10 +3,12 @@
#include <stdlib.h>
#include <math.h>
-#include <iostream.h>
+#include <iostream>
+using namespace std;
class Complex
{
+ public:
friend Complex operator*(const double&, const Complex&);
friend Complex operator+(const double&, const Complex&);
friend Complex operator-(const double&, const Complex&);
@@ -14,6 +16,14 @@
friend double real(const Complex&);
friend double imag(const Complex&);
+ double real(void);
+ double imag(void);
+ double arg(void);
+ double cabs(void);
+ double cabsm(void);
+ Complex conjg(void);
+
+
friend double arg(const Complex&);
friend double cabs(const Complex&);
friend double cabsm(const Complex&);
@@ -39,7 +49,7 @@
friend ostream& operator<<(ostream&, Complex&);
friend istream& operator>>(istream&, Complex&);
- public:
+
Complex(){} // constructors
Complex(double r, double i = 0.0);
Complex(const Complex&);
diff -ruN tnt-1.2.2-0-vanilla/calcRL/src/data.cpp tnt-1.2.2/calcRL/src/data.cpp
--- tnt-1.2.2-0-vanilla/calcRL/src/data.cpp 2004-07-22 21:29:37.000000000 +0200
+++ tnt-1.2.2/calcRL/src/data.cpp 2011-02-24 19:29:53.000000000 +0100
@@ -251,7 +251,7 @@
}
}
- Ic = cmplx( 0.0, 1.0 );
+ Ic = Complex( 0.0, 1.0 );
Nc4 = 11*Nh+1;
step_w = 1.0/power( 2.0, J );
diff -ruN tnt-1.2.2-0-vanilla/calcRL/src/hankel.cpp tnt-1.2.2/calcRL/src/hankel.cpp
--- tnt-1.2.2-0-vanilla/calcRL/src/hankel.cpp 2002-10-09 22:23:40.000000000 +0200
+++ tnt-1.2.2/calcRL/src/hankel.cpp 2011-02-24 19:29:53.000000000 +0100
@@ -19,7 +19,7 @@
hank01( vj0, vy0, x, 1 );
- return( cmplx( vj0, -vy0 ) );
+ return( Complex( vj0, -vy0 ) );
}
/***** Function Hank21 - to calculate H^(2)_1(x), x - double ****/
@@ -30,7 +30,7 @@
hank11( vj1, vy1, x, 1 );
- return( cmplx( vj1, -vy1 ) );
+ return( Complex( vj1, -vy1 ) );
}
/***** Function Hank10 - to calculate H^(1)_0(x), x - double ****/
@@ -41,7 +41,7 @@
hank01( vj0, vy0, x, 1 );
- return( cmplx( vj0, vy0 ) );
+ return( Complex( vj0, vy0 ) );
}
/***** Function Hank11 - to calculate H^(1)_1(x), x - double ****/
@@ -52,7 +52,7 @@
hank11( vj1, vy1, x, 1 );
- return( cmplx( vj1, vy1 ) );
+ return( Complex( vj1, vy1 ) );
}
int hank01( double& vj0, double& vy0, double xd, int n ) {
diff -ruN tnt-1.2.2-0-vanilla/calcRL/src/kelvin.cpp tnt-1.2.2/calcRL/src/kelvin.cpp
--- tnt-1.2.2-0-vanilla/calcRL/src/kelvin.cpp 2002-10-09 22:23:42.000000000 +0200
+++ tnt-1.2.2/calcRL/src/kelvin.cpp 2011-02-24 19:29:53.000000000 +0100
@@ -332,20 +332,20 @@
return(keip);
}
-static Complex seta_p1 = cmplx(0.0,-0.3926991);
-static Complex seta_p2 = cmplx(0.0110486,0.0);
-static Complex seta_p3 = cmplx(0.0,-0.0009765);
-static Complex seta_p4 = cmplx(-0.0000906,-0.0000901);
-static Complex seta_p5 = cmplx(-0.0000252,0.0);
-static Complex seta_p6 = cmplx(-0.0000034,0.0000051);
-static Complex seta_p7 = cmplx(0.0000006,.0000019);
-static Complex dphi_p1 = cmplx(0.7071068,0.7071068);
-static Complex dphi_p2 = cmplx(-0.0625001,-0.0000001);
-static Complex dphi_p3 = cmplx(-0.0013813,0.0013811);
-static Complex dphi_p4 = cmplx(0.0000005,0.0002452);
-static Complex dphi_p5 = cmplx(0.0000346,0.0000338);
-static Complex dphi_p6 = cmplx(0.0000117,-0.0000024);
-static Complex dphi_p7 = cmplx(0.0000016,-0.0000032);
+static Complex seta_p1 = Complex(0.0,-0.3926991);
+static Complex seta_p2 = Complex(0.0110486,0.0);
+static Complex seta_p3 = Complex(0.0,-0.0009765);
+static Complex seta_p4 = Complex(-0.0000906,-0.0000901);
+static Complex seta_p5 = Complex(-0.0000252,0.0);
+static Complex seta_p6 = Complex(-0.0000034,0.0000051);
+static Complex seta_p7 = Complex(0.0000006,.0000019);
+static Complex dphi_p1 = Complex(0.7071068,0.7071068);
+static Complex dphi_p2 = Complex(-0.0625001,-0.0000001);
+static Complex dphi_p3 = Complex(-0.0013813,0.0013811);
+static Complex dphi_p4 = Complex(0.0000005,0.0002452);
+static Complex dphi_p5 = Complex(0.0000346,0.0000338);
+static Complex dphi_p6 = Complex(0.0000117,-0.0000024);
+static Complex dphi_p7 = Complex(0.0000016,-0.0000032);

66
sci-electronics/tnt/files/tnt-1.2.2-docs.patch

@ -1,66 +0,0 @@
diff -ruN tnt-1.2.2-5-tkcon/Makefile.am tnt-1.2.2/Makefile.am
--- tnt-1.2.2-5-tkcon/Makefile.am 2004-07-22 16:23:32.000000000 +0200
+++ tnt-1.2.2/Makefile.am 2011-02-24 23:43:41.000000000 +0100
@@ -51,14 +51,16 @@
# a prefix. If not, then I suppose README will go into
# /usr.
#---------------------------------------------------------------
-appdocsdir = $(prefix)
-appdocs_DATA = \
- AUTHORS$(TXTEXT) \
- COPYING$(TXTEXT) \
- ChangeLog$(TXTEXT) \
- NEWS$(TXTEXT) \
- README$(TXTEXT) \
- THANKS$(TXTEXT)
+#
+# Portage takes care for this
+#appdocsdir = $(prefix)
+#appdocs_DATA = \
+# AUTHORS$(TXTEXT) \
+# COPYING$(TXTEXT) \
+# ChangeLog$(TXTEXT) \
+# NEWS$(TXTEXT) \
+# README$(TXTEXT) \
+# THANKS$(TXTEXT)
#---------------------------------------------------------------
# Convert application documents to text files on Windows.
diff -ruN tnt-1.2.2-5-tkcon/doc/Makefile.am tnt-1.2.2/doc/Makefile.am
--- tnt-1.2.2-5-tkcon/doc/Makefile.am 2004-07-21 17:45:26.000000000 +0200
+++ tnt-1.2.2/doc/Makefile.am 2011-02-24 23:43:45.000000000 +0100
@@ -43,7 +43,7 @@
#
#---------------------------------------------------------------
-docdir = $(prefix)/doc
+#docdir = $(prefix)/doc
doc_DATA = \
user-guide.pdf
@@ -73,15 +73,17 @@
pdflatex $*
latex2html -split 4 -show_section_numbers -local_icons $<
+# Removed, because portage takes care of it.
+#
# Custom installation rule
-install-data-local:
- for f in $(doc_DATA); do \
- $(mkinstalldirs) $(docdir); \
- $(INSTALL_DATA) $$f $(docdir)/$$f; \
- d=`basename $$f .pdf`; \
- $(mkinstalldirs) $(docdir)/$$d; \
- $(INSTALL_DATA) $$d/* $(docdir)/$$d; \
- done
+#install-data-local:
+# for f in $(doc_DATA); do \
+# $(mkinstalldirs) $(docdir); \
+# $(INSTALL_DATA) $$f $(docdir)/$$f; \
+# d=`basename $$f .pdf`; \
+# $(mkinstalldirs) $(docdir)/$$d; \
+# $(INSTALL_DATA) $$d/* $(docdir)/$$d; \
+# done
#---------------------------------------------------------------
# clean

14
sci-electronics/tnt/files/tnt-1.2.2-f77.patch

@ -1,14 +0,0 @@
diff -ruN tnt-1.2.2-3-namespace/bem/configure.ac tnt-1.2.2-4-g77/bem/configure.ac
--- tnt-1.2.2-3-namespace/bem/configure.ac 2004-04-22 22:07:12.000000000 +0200
+++ tnt-1.2.2-4-g77/bem/configure.ac 2011-02-24 23:55:35.000000000 +0100
@@ -74,9 +74,7 @@
;;
*linux*)
# For Linux, all flavors...
- # Use the GNU compilers for C++ and FORTRAN.
- CXX="g++"
- F77="g77"
+ # Use the GNU compilers for C++ and FORTRAN and rely on portage
AM_CXXFLAGS="-DFORTRAN_UNDERBARS"
;;
esac

24
sci-electronics/tnt/files/tnt-1.2.2-gui.patch

@ -1,24 +0,0 @@
diff -ruN tnt-1.2.2-6-docs/gui/gui_help.tcl tnt-1.2.2/gui/gui_help.tcl
--- tnt-1.2.2-6-docs/gui/gui_help.tcl 2004-07-26 15:37:52.000000000 +0200
+++ tnt-1.2.2/gui/gui_help.tcl 2011-02-24 23:45:27.000000000 +0100
@@ -26,7 +26,7 @@
switch -exact $helpTopic {
userguide {
- display_online_help user-guide/index.html
+ display_online_help /usr/share/doc/package_name/html/index.html
}
}
diff -ruN tnt-1.2.2-6-docs/gui/splash.tcl tnt-1.2.2/gui/splash.tcl
--- tnt-1.2.2-6-docs/gui/splash.tcl 2004-07-22 15:16:21.000000000 +0200
+++ tnt-1.2.2/gui/splash.tcl 2011-02-24 23:45:23.000000000 +0100
@@ -81,7 +81,7 @@
} else {
set filename COPYING
}
- set licenseFile [file join $::scriptDir .. $filename]
+ set licenseFile [file join /usr share doc package_name html $filename]
if { [file exists $licenseFile] } {
::gui::guiPopupFile $licenseFile
} else {

230
sci-electronics/tnt/files/tnt-1.2.2-namespaces.patch

@ -1,230 +0,0 @@
diff -ruN tnt-1.2.2-2-bem/bem/src/magicad.h tnt-1.2.2/bem/src/magicad.h
--- tnt-1.2.2-2-bem/bem/src/magicad.h 2002-10-23 00:29:27.000000000 +0200
+++ tnt-1.2.2/bem/src/magicad.h 2011-02-24 19:36:32.000000000 +0100
@@ -100,7 +100,8 @@
#include <stdlib.h>
#include <string.h>
#ifdef __cplusplus
-#include <iostream.h>
+#include <iostream>
+using namespace std;
#endif
#include <limits.h>
#if !defined(PATH_MAX) || defined(__hpux)
diff -ruN tnt-1.2.2-2-bem/calcCAP/src/bicgstab.cpp tnt-1.2.2/calcCAP/src/bicgstab.cpp
--- tnt-1.2.2-2-bem/calcCAP/src/bicgstab.cpp 2004-07-22 21:29:12.000000000 +0200
+++ tnt-1.2.2/calcCAP/src/bicgstab.cpp 2011-02-24 19:36:32.000000000 +0100
@@ -9,7 +9,8 @@
//#include "stdafx.h"
-#include <iostream.h>
+#include <iostream>
+using namespace std;
#include <math.h>
#include "vector.h"
diff -ruN tnt-1.2.2-2-bem/calcCAP/src/diffrm.cpp tnt-1.2.2/calcCAP/src/diffrm.cpp
--- tnt-1.2.2-2-bem/calcCAP/src/diffrm.cpp 2002-10-10 15:46:02.000000000 +0200
+++ tnt-1.2.2/calcCAP/src/diffrm.cpp 2011-02-24 19:36:41.000000000 +0100
@@ -8,8 +8,10 @@
//#include "stdafx.h"
#include <math.h>
-#include <iostream.h>
-#include <iomanip.h>
+#include <iostream>
+using namespace std;
+#include <iomanip>
+using namespace std;
#include <stdlib.h>
#include "complex.h"
diff -ruN tnt-1.2.2-2-bem/calcCAP/src/ivectorl.h tnt-1.2.2/calcCAP/src/ivectorl.h
--- tnt-1.2.2-2-bem/calcCAP/src/ivectorl.h 2002-10-10 15:46:04.000000000 +0200
+++ tnt-1.2.2/calcCAP/src/ivectorl.h 2011-02-24 19:36:32.000000000 +0100
@@ -1,6 +1,7 @@
#ifndef _IVectorl__h_
#define _IVectorl__h_
-#include <iostream.h>
+#include <iostream>
+using namespace std;
class IVectorl
{
diff -ruN tnt-1.2.2-2-bem/calcCAP/src/prony.cpp tnt-1.2.2/calcCAP/src/prony.cpp
--- tnt-1.2.2-2-bem/calcCAP/src/prony.cpp 2002-10-10 15:46:06.000000000 +0200
+++ tnt-1.2.2/calcCAP/src/prony.cpp 2011-02-24 19:36:41.000000000 +0100
@@ -1,6 +1,7 @@
#include "stdafx.h"
#include <math.h>
-#include <iomanip.h>
+#include <iomanip>
+using namespace std;
#include <stdlib.h>
#include "complex.h"
#include "vector.h"
diff -ruN tnt-1.2.2-2-bem/calcCAP/src/sparse.cpp tnt-1.2.2/calcCAP/src/sparse.cpp
--- tnt-1.2.2-2-bem/calcCAP/src/sparse.cpp 2004-07-22 21:29:12.000000000 +0200
+++ tnt-1.2.2/calcCAP/src/sparse.cpp 2011-02-24 19:36:41.000000000 +0100
@@ -2,9 +2,11 @@
//#include "stdafx.h"
#include <math.h>
-#include <iostream.h>
+#include <iostream>
+using namespace std;
#include <stdlib.h>
-#include <iomanip.h>
+#include <iomanip>
+using namespace std;
#include "complex.h"
#include "vector.h"
diff -ruN tnt-1.2.2-2-bem/calcCAP/src/stdafx.h tnt-1.2.2/calcCAP/src/stdafx.h
--- tnt-1.2.2-2-bem/calcCAP/src/stdafx.h 2002-10-10 15:46:08.000000000 +0200
+++ tnt-1.2.2/calcCAP/src/stdafx.h 2011-02-24 19:36:50.000000000 +0100
@@ -2,11 +2,15 @@
#define _stdafx__h_
#include <math.h>
-#include <iostream.h>
-#include <iomanip.h>
-#include <fstream.h>
+#include <iostream>
+using namespace std;
+#include <iomanip>
+using namespace std;
+#include <fstream>
+using namespace std;
#include <stdlib.h>
-#include <iomanip.h>
+#include <iomanip>
+using namespace std;
#include "complex.h"
#include "vector.h"
diff -ruN tnt-1.2.2-2-bem/calcCAP/src/systsolv.cpp tnt-1.2.2/calcCAP/src/systsolv.cpp
--- tnt-1.2.2-2-bem/calcCAP/src/systsolv.cpp 2002-10-10 15:46:08.000000000 +0200
+++ tnt-1.2.2/calcCAP/src/systsolv.cpp 2011-02-24 19:36:32.000000000 +0100
@@ -3,7 +3,8 @@
//#include "stdafx.h"
-#include <iostream.h>
+#include <iostream>
+using namespace std;
#include <math.h>
#include <stdlib.h>
#include "complex.h"
diff -ruN tnt-1.2.2-2-bem/calcCAP/src/vector.h tnt-1.2.2/calcCAP/src/vector.h
--- tnt-1.2.2-2-bem/calcCAP/src/vector.h 2002-10-10 15:46:09.000000000 +0200
+++ tnt-1.2.2/calcCAP/src/vector.h 2011-02-24 19:36:41.000000000 +0100
@@ -1,8 +1,10 @@
#ifndef _Vector__h_
#define _Vector__h_
-#include <iostream.h>
-#include <iomanip.h>
+#include <iostream>
+using namespace std;
+#include <iomanip>
+using namespace std;
class Vector
{
diff -ruN tnt-1.2.2-2-bem/calcRL/src/bicgstab.cpp tnt-1.2.2/calcRL/src/bicgstab.cpp
--- tnt-1.2.2-2-bem/calcRL/src/bicgstab.cpp 2004-07-22 21:29:37.000000000 +0200
+++ tnt-1.2.2/calcRL/src/bicgstab.cpp 2011-02-24 19:36:32.000000000 +0100
@@ -9,7 +9,8 @@
//#include "stdafx.h"
-#include <iostream.h>
+#include <iostream>
+using namespace std;
#include <math.h>
#include "vector.h"
diff -ruN tnt-1.2.2-2-bem/calcRL/src/ivectorl.h tnt-1.2.2/calcRL/src/ivectorl.h
--- tnt-1.2.2-2-bem/calcRL/src/ivectorl.h 2002-10-09 22:23:41.000000000 +0200
+++ tnt-1.2.2/calcRL/src/ivectorl.h 2011-02-24 19:36:32.000000000 +0100
@@ -2,7 +2,8 @@
#define _IVectorl__h_
#include <stdlib.h>
#include <math.h>
-#include <iostream.h>
+#include <iostream>
+using namespace std;
class IVectorl
{
diff -ruN tnt-1.2.2-2-bem/calcRL/src/sparse.cpp tnt-1.2.2/calcRL/src/sparse.cpp
--- tnt-1.2.2-2-bem/calcRL/src/sparse.cpp 2002-10-09 22:23:45.000000000 +0200
+++ tnt-1.2.2/calcRL/src/sparse.cpp 2011-02-24 19:36:41.000000000 +0100
@@ -1,9 +1,11 @@
/******* functions, needed for sparse matrices *******/
#include <math.h>
-#include <iostream.h>
+#include <iostream>
+using namespace std;
#include <stdlib.h>
-#include <iomanip.h>
+#include <iomanip>
+using namespace std;
#include "complex.h"
#include "vector.h"
diff -ruN tnt-1.2.2-2-bem/calcRL/src/stdafx.h tnt-1.2.2/calcRL/src/stdafx.h
--- tnt-1.2.2-2-bem/calcRL/src/stdafx.h 2002-10-09 22:23:56.000000000 +0200
+++ tnt-1.2.2/calcRL/src/stdafx.h 2011-02-24 19:36:50.000000000 +0100
@@ -2,11 +2,15 @@
#define _stdafx__h_
#include <math.h>
-#include <iostream.h>
-#include <iomanip.h>
-#include <fstream.h>
+#include <iostream>
+using namespace std;
+#include <iomanip>
+using namespace std;
+#include <fstream>
+using namespace std;
#include <stdlib.h>
-#include <iomanip.h>
+#include <iomanip>
+using namespace std;
#include "complex.h"
#include "vector.h"
diff -ruN tnt-1.2.2-2-bem/calcRL/src/systsolv.cpp tnt-1.2.2/calcRL/src/systsolv.cpp
--- tnt-1.2.2-2-bem/calcRL/src/systsolv.cpp 2002-10-09 22:23:57.000000000 +0200
+++ tnt-1.2.2/calcRL/src/systsolv.cpp 2011-02-24 19:36:32.000000000 +0100
@@ -2,7 +2,8 @@
/*****Source - "NUMERICAL RECIPES IN C", www.nr.com*****/
//#include "stdafx.h"
-#include <iostream.h>
+#include <iostream>
+using namespace std;
#include <math.h>
#include <stdlib.h>
#include "complex.h"
diff -ruN tnt-1.2.2-2-bem/calcRL/src/vector.h tnt-1.2.2/calcRL/src/vector.h
--- tnt-1.2.2-2-bem/calcRL/src/vector.h 2002-10-09 22:23:59.000000000 +0200
+++ tnt-1.2.2/calcRL/src/vector.h 2011-02-24 19:36:41.000000000 +0100
@@ -3,8 +3,10 @@
#include <stdlib.h>
#include <math.h>
-#include <iostream.h>
-#include <iomanip.h>
+#include <iostream>
+using namespace std;
+#include <iomanip>
+using namespace std;
class Vector
{

16
sci-electronics/tnt/files/tnt-1.2.2-tkcon.patch

@ -1,16 +0,0 @@
--- sppdgTcllib/console/tkcon.tcl.org 2011-02-19 01:46:57.000000000 -0800
+++ sppdgTcllib/console/tkcon.tcl 2011-02-19 01:47:36.000000000 -0800
@@ -43,9 +43,10 @@
if {$tcl_version < 8.0} {
return -code error "tkcon requires at least Tcl/Tk8"
-} else {
- package require -exact Tk $tcl_version
-}
+}
+#else {
+# package require -exact Tk $tcl_version
+#}
catch {package require bogus-package-name}
foreach pkg [info loaded {}] {

11
sci-electronics/tnt/metadata.xml

@ -1,11 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>sci-electronics@gentoo.org</email>
<name>Gentoo Electronics Project</name>
</maintainer>
<upstream>
<remote-id type="sourceforge">mmtl</remote-id>
</upstream>
</pkgmetadata>

62
sci-electronics/tnt/tnt-1.2.2.ebuild

@ -1,62 +0,0 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
AUTOTOOLS_AUTORECONF=true
inherit autotools-utils fortran-2 toolchain-funcs
DESCRIPTION="MoM 2.5 D stripline simulator"
HOMEPAGE="http://mmtl.sourceforge.net/"
SRC_URI="mirror://sourceforge/mmtl/${P}.tar.gz"
SLOT="0"
LICENSE="BSD GPL-2"
KEYWORDS="~amd64 ~x86"
IUSE="doc"
RDEPEND="
dev-lang/tcl:0=
dev-tcltk/tcllib
dev-tcltk/itcl
dev-tcltk/bwidget"
DEPEND="${RDEPEND}
dev-texlive/texlive-latex
dev-tex/latex2html
media-gfx/imagemagick"
PATCHES=( "${FILESDIR}/${P}"-{calc,bem-nmmtl,namespaces,f77,tkcon,docs,gui,autotools}.patch )
src_prepare() {
#adjust new document location in gui
sed -i "s/package_name/${PF}/" gui/splash.tcl || die
sed -i "s/package_name/${PF}/" gui/gui_help.tcl || die
autotools-utils_src_prepare
}
AUTOTOOLS_IN_SOURCE_BUILD=1
src_install () {
# tcl cannot handle the archives created by dodoc
if use doc; then
DOCS=( doc/*.pdf doc/*.png )
HTML_DOCS=( doc/user-guide/* )
fi
autotools-utils_src_install
# Install icon
convert gui/logo.gif gui/tnt.png
docinto "examples"
dodoc examples/*
doicon gui/tnt.png
make_desktop_entry ${PN} "tnt" ${PN}
}
pkg_postinst() {
elog "Warning: the sources are not under development anymore."
elog "We made it compile, but users should check if the results make sense."
elog "Examples are in the /usr/share/doc/tnt-1.2.2 folder."
}
Loading…
Cancel
Save