aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2013-12-03 13:06:16 +0100
committerJustin Lecher <jlec@gentoo.org>2013-12-03 13:06:16 +0100
commit720da90372cf45e272f8c6f49532909e7e08103a (patch)
tree5a3bc4fea240c9a02921b310f143675b2d4e6cf2 /sci-misc/elmer-front
parentsci-misc/elmer-elmergrid: Bump EAPI; fix DESCRIPTION; drop keywords from live... (diff)
downloadsci-720da90372cf45e272f8c6f49532909e7e08103a.tar.gz
sci-720da90372cf45e272f8c6f49532909e7e08103a.tar.bz2
sci-720da90372cf45e272f8c6f49532909e7e08103a.zip
sci-misc/elmer-front: Bump EAPI; fix DESCRIPTION; drop keywords from live ebuild; use correct phase functions; simplify configure; link against external metis
Package-Manager: portage-2.2.7
Diffstat (limited to 'sci-misc/elmer-front')
-rw-r--r--sci-misc/elmer-front/ChangeLog14
-rw-r--r--sci-misc/elmer-front/Manifest5
-rw-r--r--sci-misc/elmer-front/elmer-front-5.4.1-r1.ebuild56
-rw-r--r--sci-misc/elmer-front/elmer-front-6.0_p4651.ebuild44
-rw-r--r--sci-misc/elmer-front/elmer-front-9999.ebuild53
-rw-r--r--sci-misc/elmer-front/files/elmer-front-6.0_p4651-out-of-source.patch30
-rw-r--r--sci-misc/elmer-front/files/elmer-front-6.0_p4651-tcltk8.6.patch55
-rw-r--r--sci-misc/elmer-front/files/elmer-front-6.0_p4651-underlinking.patch16
-rw-r--r--sci-misc/elmer-front/metadata.xml5
9 files changed, 190 insertions, 88 deletions
diff --git a/sci-misc/elmer-front/ChangeLog b/sci-misc/elmer-front/ChangeLog
new file mode 100644
index 000000000..7186253b6
--- /dev/null
+++ b/sci-misc/elmer-front/ChangeLog
@@ -0,0 +1,14 @@
+# ChangeLog for sci-misc/elmer-front
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*elmer-front-6.0_p4651 (03 Dec 2013)
+
+ 03 Dec 2013; Justin Lecher <jlec@gentoo.org> -elmer-front-5.4.1-r1.ebuild,
+ +elmer-front-6.0_p4651.ebuild, elmer-front-9999.ebuild,
+ +files/elmer-front-6.0_p4651-out-of-source.patch,
+ +files/elmer-front-6.0_p4651-tcltk8.6.patch,
+ +files/elmer-front-6.0_p4651-underlinking.patch, +metadata.xml:
+ Bump EAPI; fix DESCRIPTION; drop keywords from live ebuild; use correct phase
+ functions; simplify configure; link against external metis
+
diff --git a/sci-misc/elmer-front/Manifest b/sci-misc/elmer-front/Manifest
index ec4960db6..1afe23899 100644
--- a/sci-misc/elmer-front/Manifest
+++ b/sci-misc/elmer-front/Manifest
@@ -1,4 +1 @@
-AUX elmer-front-Makefile-install.patch 832 SHA256 d64a6ba001980d47028cf89ab338a9f64e164c083d608704b68a8bdc0a9cac3e SHA512 3d231068263892e095a1a34686ba7a649441bf4267107169a445950c3c9e9db76f51e26259d4c0736229ae97c73af7bd08abcbb44ae779caf004d7f7e4f9b504 WHIRLPOOL 6625d0bc98fdfdc664ee8ccf16444a94d2032bf965fd7d9d563fe3cf6af8670c0d913d0872e848a5daa1eb7a331f54a2925088d037a94342c31d57b0b708ce12
-DIST elmer-front-5.4.1.tar.gz 1451796 SHA256 b9f514626b3e55e8bf3610f6b0c06b05a5f54b23cf4cd48461e724ce019737e4 SHA512 c52d768526cf74f734bb52715204ebabc8dc3c1e65c74f208ddbe0eb58a9439797cfd113585033ffda266f7546970aff1585628f2d5859e789f18e69e5981a7d WHIRLPOOL a8391d235ec7cf63467e5eab5b36012cffd029a2fa0d7ec8575122a2fdff4125dab28d53551730c168a3ffcd593940f2e70874c592c45d98a4b015800078a5e0
-EBUILD elmer-front-5.4.1-r1.ebuild 1304 SHA256 4e22bc18abf04352f1d093c5eff55ea3b0918950338fe5c0d2b57e4c32342e47 SHA512 b16c83fd1658ae5dee820d413eaca2cec8ccf43b8202e4f527d883a3ff990a4505722a90e080d120d29688250aac0a5d0b86c3decf97b9c67e4e1fd6347bff9b WHIRLPOOL 6669fd6262fb732ab16e0ef22a72568982a3da957fb3d1b9ac0023c3ad5ebc18a977b67ee12d2a10e260f3addcdab6ef2d2d8adf0c8b6f9956ba8609a1431868
-EBUILD elmer-front-9999.ebuild 1321 SHA256 55f43b9fab9fe5920c2d9b3e1061e62c42d419375e904dd2cd9ebce034e7ecd5 SHA512 7d44825549c2b2b4e04e311dce47e9a886fd22e211e7358c1fcffdcc4f8f7a4bb60743e66026850ea74a61a307af701ba5341e9a38136c927376d24595bc76a4 WHIRLPOOL 3f268ac8b817c299839aec03525bc6cdff1c9e1118f854310a877f0dbcc5d16ea9c1da31d2bd691f4d8c9a3b7e7337b3df1274a918fdd5dd50f45d7ca59e260b
+DIST elmer-front-6.0_p4651.tar.gz 1458292 SHA256 5613131bd35778975cd4fd2cb2c05d7165a83cc8a0afbe4aa0e0be9d8f1f89f7 SHA512 6970290749884e52deac47d5ccf94447ee8518cf71471bca77793fb8edfd417959e01248a886f3459db506c8e12396e76a048db40b0c13980ee99734f4e58e78 WHIRLPOOL 13c068399b8601d6e1bbba21549026a3181d0a18a909f2cbfc58816ddd402e8e587e3a7fc4017ecc40426c54735df56b8adb6877d7f86a05fd8a1edcb8fe86cc
diff --git a/sci-misc/elmer-front/elmer-front-5.4.1-r1.ebuild b/sci-misc/elmer-front/elmer-front-5.4.1-r1.ebuild
deleted file mode 100644
index b2b98f728..000000000
--- a/sci-misc/elmer-front/elmer-front-5.4.1-r1.ebuild
+++ /dev/null
@@ -1,56 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI="4"
-
-inherit autotools eutils
-
-ELMER_ROOT="elmerfem"
-MY_PN=${PN/elmer-/}
-
-DESCRIPTION="Elmer is a collection of finite element programs, libraries, and visualization tools, elmer frontend"
-HOMEPAGE="http://www.csc.fi/english/pages/elmer"
-SRC_URI="http://elmerfem.svn.sourceforge.net/viewvc/${ELMER_ROOT}/release/${PV}/${MY_PN}/?view=tar -> ${P}.tar.gz"
-RESTRICT="mirror"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
-IUSE="X debug"
-DEPEND="=dev-lang/tcl-8.4*
- =dev-lang/tk-8.4*
- sci-libs/matc
- sci-libs/elmer-eio
- virtual/opengl"
-RDEPEND="${DEPEND}"
-
-S="${WORKDIR}/${PV}/front"
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
- # configure must be executable
- chmod +x configure
- epatch ${FILESDIR}/elmer-front-Makefile-install.patch
- eautoreconf
-}
-
-src_compile() {
- cd "${S}"
- local myconf
- export FC="gfortran"
- export F77="gfortran"
- myconf="${myconf} --with-eioc --with-matc --with-tcltk"
- use debug &&
- myconf="${myconf} --with-debug" ||
- myconf="${myconf} --without-debug"
- econf $myconf \
- $(use_with X x) \
- || die "econf failed"
- emake || die "emake failed"
-}
-
-src_install() {
- emake DESTDIR="${D}" install || die "emake install failed"
-}
diff --git a/sci-misc/elmer-front/elmer-front-6.0_p4651.ebuild b/sci-misc/elmer-front/elmer-front-6.0_p4651.ebuild
new file mode 100644
index 000000000..871d33bf9
--- /dev/null
+++ b/sci-misc/elmer-front/elmer-front-6.0_p4651.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+AUTOTOOLS_AUTORECONF=true
+
+inherit autotools-utils multilib
+
+ELMER_ROOT="elmerfem"
+MY_PN=${PN/elmer-/}
+
+DESCRIPTION="Finite element programs, libraries, and visualization tools - elmer frontend"
+HOMEPAGE="http://www.csc.fi/english/pages/elmer"
+SRC_URI="http://elmerfem.svn.sourceforge.net/viewvc/${ELMER_ROOT}/release/${PV%_p*}/${MY_PN}/?view=tar&pathrev=4651 -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+ dev-lang/tcl
+ dev-lang/tk
+ sci-libs/matc
+ sci-libs/elmer-eio
+ virtual/opengl"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}"/front/front
+
+PATCHES=(
+ "${FILESDIR}"/${P}-tcltk8.6.patch
+ "${FILESDIR}"/${P}-underlinking.patch
+ "${FILESDIR}"/${P}-out-of-source.patch
+)
+
+src_configure() {
+ local myeconfargs=(
+ --with-eioc --with-matc --with-tcltk --with-x
+ )
+ autotools-utils_src_configure
+}
diff --git a/sci-misc/elmer-front/elmer-front-9999.ebuild b/sci-misc/elmer-front/elmer-front-9999.ebuild
index 054841075..7754b8aa4 100644
--- a/sci-misc/elmer-front/elmer-front-9999.ebuild
+++ b/sci-misc/elmer-front/elmer-front-9999.ebuild
@@ -1,54 +1,51 @@
-# Copyright 1999-2007 Gentoo Foundation
+# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
-EAPI="4"
+EAPI=5
-inherit autotools eutils subversion
+AUTOTOOLS_AUTORECONF=true
+
+inherit autotools-utils multilib subversion
ELMER_ROOT="elmerfem"
MY_PN=${PN/elmer-/}
-DESCRIPTION="Elmer is a collection of finite element programs, libraries, and visualization tools, elmer frontend"
+DESCRIPTION="Finite element programs, libraries, and visualization tools - elmer frontend"
HOMEPAGE="http://www.csc.fi/english/pages/elmer"
-#SRC_URI="http://elmerfem.svn.sourceforge.net/viewvc/${ELMER_ROOT}/release/${PV}/${MY_PN}/?view=tar -> ${P}.tar.gz"
SRC_URI=""
-RESTRICT="mirror"
ESVN_REPO_URI="https://elmerfem.svn.sourceforge.net/svnroot/elmerfem/trunk/${MY_PN}"
ESVN_PROJECT="${MY_PN}"
LICENSE="GPL-2"
SLOT="0"
-KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
-IUSE="X debug"
-DEPEND="dev-lang/tcl
+KEYWORDS=""
+IUSE=""
+
+RDEPEND="
+ dev-lang/tcl
dev-lang/tk
sci-libs/matc
sci-libs/elmer-eio
virtual/opengl"
-RDEPEND="${DEPEND}"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/front"
-S="${WORKDIR}/${PV}/front"
+PATCHES=(
+ "${FILESDIR}"/${PN}-6.0_p4651-tcltk8.6.patch
+ "${FILESDIR}"/${PN}-6.0_p4651-underlinking.patch
+ "${FILESDIR}"/${PN}-6.0_p4651-out-of-source.patch
+)
src_prepare() {
- #unpack ${A}
- cd "${S}"
- # configure must be executable
- #chmod +x configure
- epatch ${FILESDIR}/elmer-front-Makefile-install.patch
- eautoreconf
+ subversion_src_prepare
+ autotools-utils_src_prepare
}
src_configure() {
- cd "${S}"
- local myconf
- export FC="gfortran"
- export F77="gfortran"
- myconf="${myconf} --with-eioc --with-matc --with-tcltk"
- use debug &&
- myconf="${myconf} --with-debug" ||
- myconf="${myconf} --without-debug"
- econf $myconf \
- $(use_with X x) \
- || die "econf failed"
+ local myeconfargs=(
+ --with-eioc --with-matc --with-tcltk --with-x
+ )
+ autotools-utils_src_configure
}
diff --git a/sci-misc/elmer-front/files/elmer-front-6.0_p4651-out-of-source.patch b/sci-misc/elmer-front/files/elmer-front-6.0_p4651-out-of-source.patch
new file mode 100644
index 000000000..872c03f21
--- /dev/null
+++ b/sci-misc/elmer-front/files/elmer-front-6.0_p4651-out-of-source.patch
@@ -0,0 +1,30 @@
+ src/Makefile.am | 9 +++++----
+ 1 file changed, 5 insertions(+), 4 deletions(-)
+
+diff --git a/src/Makefile.am b/src/Makefile.am
+old mode 100755
+new mode 100644
+index 894a547..dc7c77b
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -87,15 +87,16 @@ endif
+ ElmerFront_LDADD = -lX11
+
+ install-data-local:
+- @echo "Installing tcl scripts to ${prefix}/share/elmerfront/tcl"
++ @echo "Installing tcl scripts to ${DESTDIR}${prefix}/share/elmerfront/tcl"
+
+ mkdir -p "$(DESTDIR)${prefix}/share/elmerfront/tcl"
+- cp -r ./tcl/* "$(DESTDIR)${prefix}/share/elmerfront/tcl"
++ cp -r "${srcdir}"/tcl/* "$(DESTDIR)${prefix}/share/elmerfront/tcl"
++ cp -r "${builddir}"/tcl/* "$(DESTDIR)${prefix}/share/elmerfront/tcl"
+ rm -rf `find $(DESTDIR)$(prefix)/share/elmerfront/tcl -name .svn`
+
+- @echo "Installing *.edf *.rgb to ${prefix}/share/elmerfront/lib"
++ @echo "Installing *.edf *.rgb to ${DESTDIR}${prefix}/share/elmerfront/lib"
+ mkdir -p "$(DESTDIR)${prefix}/share/elmerfront/lib"
+- cp -r ./lib/* "$(DESTDIR)${prefix}/share/elmerfront/lib"
++ cp -r "${srcdir}"/lib/* "$(DESTDIR)${prefix}/share/elmerfront/lib"
+ rm -rf `find $(DESTDIR)$(prefix)/share/elmerfront/lib -name .svn`
+
+
diff --git a/sci-misc/elmer-front/files/elmer-front-6.0_p4651-tcltk8.6.patch b/sci-misc/elmer-front/files/elmer-front-6.0_p4651-tcltk8.6.patch
new file mode 100644
index 000000000..7fa7605b7
--- /dev/null
+++ b/sci-misc/elmer-front/files/elmer-front-6.0_p4651-tcltk8.6.patch
@@ -0,0 +1,55 @@
+ src/ecif_userinterface_TCL.cpp | 18 +++++++++++++++++-
+ 1 file changed, 17 insertions(+), 1 deletion(-)
+
+diff --git a/src/ecif_userinterface_TCL.cpp b/src/ecif_userinterface_TCL.cpp
+index 7f581a8..53e0432 100644
+--- a/src/ecif_userinterface_TCL.cpp
++++ b/src/ecif_userinterface_TCL.cpp
+@@ -622,7 +622,11 @@ UserInterface_TCL::createTclEnvironment(Hinst application)
+
+ // *** Invoke application-specific initialization.
+ if (My_Tcl_AppInit(interp) != TCL_OK) {
++#if TCL_MAJOR_VERSION <=8 && TCL_MINOR_VERSION < 6
+ WishPanic("My_Tcl_AppInit failed: %s\n", interp->result);
++#else
++ WishPanic("My_Tcl_AppInit failed: %s\n", Tcl_GetStringResult(interp));
++#endif
+ }
+
+ // Result value is the Tcl interpreter
+@@ -4685,11 +4689,19 @@ UserInterface_TCL::sendCommandToGui(Tcl_Interp* interp, const char* cmd, const c
+ Tcl_DStringFree( &dstring );
+ }
+
++#if TCL_MAJOR_VERSION <=8 && TCL_MINOR_VERSION < 6
+ if (interp->result[0] != '\0') {
++#else
++ if (Tcl_GetStringResult(interp)[0] != '\0') {
++#endif
+
+ char err_buf[256];
+ err_buf[255] = '\0';
++#if TCL_MAJOR_VERSION <=8 && TCL_MINOR_VERSION < 6
+ strncpy(err_buf, interp->result, 255);
++#else
++ strncpy(err_buf, Tcl_GetStringResult(interp), 255);
++#endif
+
+ char cmd_buf[256];
+ cmd_buf[255] = '\0';
+@@ -5350,10 +5362,14 @@ UserInterface_TCL::start(int argc, char** argv)
+ //--If we can't load the script (= start CONTROL-SIDE interpreter)
+ if (code != TCL_OK) {
+
+- char* p = (char *)Tcl_GetVar(theInterp, "errorInfo", glob_flag);
++ const char* p = (const char *)Tcl_GetVar(theInterp, "errorInfo", glob_flag);
+
+ if ((p == NULL) || (*p == '\0')) {
++#if TCL_MAJOR_VERSION <=8 && TCL_MINOR_VERSION < 6
+ p = theInterp->result;
++#else
++ p = Tcl_GetStringResult(theInterp);
++#endif
+ }
+
+ ((ofstream*)debugFile)->open("ElmerFront.log", ios::out);
diff --git a/sci-misc/elmer-front/files/elmer-front-6.0_p4651-underlinking.patch b/sci-misc/elmer-front/files/elmer-front-6.0_p4651-underlinking.patch
new file mode 100644
index 000000000..b370ed494
--- /dev/null
+++ b/sci-misc/elmer-front/files/elmer-front-6.0_p4651-underlinking.patch
@@ -0,0 +1,16 @@
+ src/Makefile.am | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/src/Makefile.am b/src/Makefile.am
+index 01e3e48..894a547 100755
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -84,6 +84,8 @@ ElmerFront_SOURCES = $(COMMON_SRCS)
+
+ endif
+
++ElmerFront_LDADD = -lX11
++
+ install-data-local:
+ @echo "Installing tcl scripts to ${prefix}/share/elmerfront/tcl"
+
diff --git a/sci-misc/elmer-front/metadata.xml b/sci-misc/elmer-front/metadata.xml
new file mode 100644
index 000000000..897aa2e6b
--- /dev/null
+++ b/sci-misc/elmer-front/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>sci</herd>
+</pkgmetadata>