aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2014-01-06 18:18:25 +0100
committerJustin Lecher <jlec@gentoo.org>2014-01-06 18:18:25 +0100
commit3e1390f37e0bfd0be5dafae25c8166b06ee03ff9 (patch)
tree00cf34098824437d68170fdc18c3d1911910fc3f /sci-electronics/tnt
parentsci-chemistry/drawxtl: Version BUmp; punt base.eclass (diff)
downloadsci-3e1390f37e0bfd0be5dafae25c8166b06ee03ff9.tar.gz
sci-3e1390f37e0bfd0be5dafae25c8166b06ee03ff9.tar.bz2
sci-3e1390f37e0bfd0be5dafae25c8166b06ee03ff9.zip
sci-electronics/tnt: Punt base.eclass
Package-Manager: portage-2.2.8
Diffstat (limited to 'sci-electronics/tnt')
-rw-r--r--sci-electronics/tnt/ChangeLog6
-rw-r--r--sci-electronics/tnt/Manifest2
-rw-r--r--sci-electronics/tnt/files/tnt-1.2.2-autotools.patch277
-rw-r--r--sci-electronics/tnt/metadata.xml2
-rw-r--r--sci-electronics/tnt/tnt-1.2.2.ebuild40
5 files changed, 304 insertions, 23 deletions
diff --git a/sci-electronics/tnt/ChangeLog b/sci-electronics/tnt/ChangeLog
index e34c3239d..24b19c3df 100644
--- a/sci-electronics/tnt/ChangeLog
+++ b/sci-electronics/tnt/ChangeLog
@@ -1,7 +1,11 @@
# ChangeLog for sci-electronics/tnt
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+ 06 Jan 2014; Justin Lecher <jlec@gentoo.org> tnt-1.2.2.ebuild,
+ +files/tnt-1.2.2-autotools.patch, metadata.xml:
+ Punt base.eclass
+
24 Jun 2011; Justin Lecher <jlec@gentoo.org> tnt-1.2.2.ebuild:
Streamlined fortran-2 eclass usage
diff --git a/sci-electronics/tnt/Manifest b/sci-electronics/tnt/Manifest
index 26b6fc015..c5ff557c4 100644
--- a/sci-electronics/tnt/Manifest
+++ b/sci-electronics/tnt/Manifest
@@ -1 +1 @@
-DIST tnt-1.2.2.tar.gz 2020099 SHA256 cbb418d0de4f244d8174e8826e4d8272bce753f50431c9d87af08928f5817445
+DIST tnt-1.2.2.tar.gz 2020099 SHA256 cbb418d0de4f244d8174e8826e4d8272bce753f50431c9d87af08928f5817445 SHA512 7e0c1f1b39d52529a19f85c5a5a9e4f55575afa4214607a4616e60afff552a7b29c63240d409b2dd230479b3c16162d37bbd34faaf4d726cfe17e59775a89467 WHIRLPOOL 1a8b85fa765031523992729f68ada081a79b24cb4085b6731e321a52ef9f267a023ed8ee6ca4f0897cb2ea7c0cc01ee90b0173710b931e22870da2b58e97f251
diff --git a/sci-electronics/tnt/files/tnt-1.2.2-autotools.patch b/sci-electronics/tnt/files/tnt-1.2.2-autotools.patch
new file mode 100644
index 000000000..36fe517b9
--- /dev/null
+++ b/sci-electronics/tnt/files/tnt-1.2.2-autotools.patch
@@ -0,0 +1,277 @@
+ 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
diff --git a/sci-electronics/tnt/metadata.xml b/sci-electronics/tnt/metadata.xml
index 2034b7227..ce0e016bb 100644
--- a/sci-electronics/tnt/metadata.xml
+++ b/sci-electronics/tnt/metadata.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
- <herd>sci-electronics</herd>
+ <herd>sci-electronics</herd>
</pkgmetadata>
diff --git a/sci-electronics/tnt/tnt-1.2.2.ebuild b/sci-electronics/tnt/tnt-1.2.2.ebuild
index e13371811..397cd9987 100644
--- a/sci-electronics/tnt/tnt-1.2.2.ebuild
+++ b/sci-electronics/tnt/tnt-1.2.2.ebuild
@@ -1,10 +1,12 @@
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
-EAPI=4
+EAPI=5
-inherit autotools base eutils fortran-2 toolchain-funcs
+AUTOTOOLS_AUTORECONF=true
+
+inherit autotools-utils fortran-2 toolchain-funcs
DESCRIPTION="MoM 2.5 D stripline simulator"
HOMEPAGE="http://mmtl.sourceforge.net/"
@@ -19,45 +21,43 @@ RDEPEND="
dev-lang/tcl
dev-tcltk/tcllib
dev-tcltk/itcl
- dev-tcltk/bwidget
- virtual/fortran"
+ 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}.patch )
+PATCHES=( "${FILESDIR}/${P}"-{calc,bem-nmmtl,namespaces,f77,tkcon,docs,gui,autotools}.patch )
src_prepare() {
- base_src_prepare
-
#adjust new document location in gui
- sed -i "s/package_name/${PF}/" gui/splash.tcl
- sed -i "s/package_name/${PF}/" gui/gui_help.tcl
+ sed -i "s/package_name/${PF}/" gui/splash.tcl || die
+ sed -i "s/package_name/${PF}/" gui/gui_help.tcl || die
- eautoreconf
+ autotools-utils_src_prepare
}
-src_install () {
- default
+AUTOTOOLS_IN_SOURCE_BUILD=1
+src_install () {
# tcl cannot handle the archives created by dodoc
- dohtml COPYING || die
if use doc; then
- dodoc doc/*.pdf doc/*.png
- dohtml doc/user-guide/*
+ 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/*
- newicon gui/tnt.png tnt.png
+ 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."
+ 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."
}