public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/sci:master commit in: sci-misc/elmer-gui/files/, sci-misc/elmer-gui/
@ 2018-10-26 12:37 Christoph Junghans
  0 siblings, 0 replies; only message in thread
From: Christoph Junghans @ 2018-10-26 12:37 UTC (permalink / raw
  To: gentoo-commits

commit:     7ffd6e172ce9c55d7d956650210e34b2ba40c3f7
Author:     Christoph Junghans <junghans <AT> gentoo <DOT> org>
AuthorDate: Fri Oct 26 12:35:10 2018 +0000
Commit:     Christoph Junghans <junghans <AT> gentoo <DOT> org>
CommitDate: Fri Oct 26 12:35:10 2018 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=7ffd6e17

sci-misc/elmer-gui: remove as qt4 is gone

Signed-off-by: Christoph Junghans <junghans <AT> gentoo.org>

 sci-misc/elmer-gui/elmer-gui-9999.ebuild           | 150 ---------------------
 .../elmer-gui/files/elmer-gui-netgen-fixes.patch   |  11 --
 sci-misc/elmer-gui/metadata.xml                    |  16 ---
 3 files changed, 177 deletions(-)

diff --git a/sci-misc/elmer-gui/elmer-gui-9999.ebuild b/sci-misc/elmer-gui/elmer-gui-9999.ebuild
deleted file mode 100644
index be427d331..000000000
--- a/sci-misc/elmer-gui/elmer-gui-9999.ebuild
+++ /dev/null
@@ -1,150 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-PYTHON_COMPAT=( python2_7 )
-
-inherit autotools eutils qt4-r2 subversion python-single-r1 versionator
-
-ELMER_ROOT="elmerfem"
-MY_PN=ElmerGUI
-
-DESCRIPTION="Finite element programs, libraries, visualization tools"
-HOMEPAGE="http://www.csc.fi/english/pages/elmer"
-SRC_URI=""
-ESVN_REPO_URI="https://elmerfem.svn.sourceforge.net/svnroot/elmerfem/trunk/${MY_PN}"
-ESVN_PROJECT="${MY_PN}"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS=""
-IUSE="debug +bundled_netgen matc opencascade python qwt vtk"
-
-REQUIRED_USE="opencascade? ( vtk )"
-
-DEPEND="
-	~sci-libs/elmer-eio-${PV}
-	!bundled_netgen? ( sci-mathematics/netgen )
-	virtual/glu
-	|| (
-		~sci-misc/elmer-post-${PV}
-		>=sci-libs/vtk-5.0.0[qt4,python?]
-		)
-	matc? ( ~sci-libs/matc-${PV} )
-	vtk? ( >=sci-libs/vtk-5.0.0[qt4,python?] )
-	opencascade? ( >=sci-libs/opencascade-6.3:* )
-	python? ( dev-python/pythonqt[${PYTHON_USEDEP}] )
-	qwt? ( x11-libs/qwt:5 )
-	>=dev-qt/qtcore-4.3:4
-	>=dev-qt/qtopengl-4.3:4
-	>=dev-qt/qtscript-4.3:4"
-RDEPEND="${DEPEND}"
-
-src_prepare() {
-	# Do not build bundled matc and PythonQt
-	sed \
-		-e 's/matc//' \
-		-e 's/PythonQt//' \
-		-i ${MY_PN}.pro || die
-
-	# Ideally we would avoid buildling thirdparty code
-	# and use a separate package but this currently fails
-	# to build. ElmerGui provides its own patched version of
-	# NetGen. Currently considering backporting them to
-	# sci-mathematics/netgen
-	if use !bundled_netgen; then
-		   sed -i 's/netgen//' ${MY_PN}.pro || die
-		   sed \
-				-e "s:INCLUDEPATH += ../netgen/libsrc/interface:INCLUDEPATH += ${EPREFIX}/usr/include:g" \
-				-e "s:LIBPATH += ../netgen/ngcore:LIBPATH += ${EPREFIX}/usr/$(get_libdir):g" \
-				-e "s:LIBS += -lng:LIBS += -lnglib:g" \
-				-i Application/Application.pro || die
-
-			eerror "${PN} currently fails to build against sci-mathematics/netgen."
-	fi
-
-	# Fix install path
-	sed \
-		-e 's|unix: ELMER_HOME = /usr/local|unix: ELMER_HOME = /usr|g' \
-		-i ${MY_PN}.pri || die
-
-	if use amd64; then
-		   sed -i 's/32/64/' ${MY_PN}.pri || die
-	fi
-
-	if use !qwt; then
-		   # QWT is activated by default, disable
-		   sed -i 's/DEFINES += EG_QWT//' ${MY_PN}.pri || die
-	else
-		   # Detect x11-libs/qwt version and fix paths
-		   local QWT_VER=`echo $(best_version "x11-libs/qwt") | sed 's:x11-libs/qwt-::'`
-		   local QWT_MAJOR=$(get_major_version ${QWT_VER})
-		   local QWT_MAJOR=5
-
-		   if [[ ${QWT_MAJOR} -lt 6 ]]; then
-			   local QWT_LIBS=-lqwt
-		   else
-			   local QWT_LIBS=-lqwt${QWT_MAJOR}
-		   fi
-
-		   local QWT_INCLUDEPATH=${EPREFIX}/usr/include/qwt${QWT_MAJOR}
-		   local QWT_LIBPATH=${EPREFIX}/usr/$(get_libdir)
-
-		   sed -i \
-			   -e "s:QWT_INCLUDEPATH.*:QWT_INCLUDEPATH = ${QWT_INCLUDEPATH}:g" \
-			   -e "s:QWT_LIBPATH.*:QWT_LIBPATH = ${QWT_LIBPATH}:g" \
-			   -e "s:QWT_LIBS.*:QWT_LIBS = ${QWT_LIBS}:g" \
-			   ${MY_PN}.pri || die
-	fi
-
-	if use !vtk; then
-		   # VTK is activated by default, disable
-		   sed -i 's/DEFINES += EG_VTK//' ${MY_PN}.pri || die
-	else
-		   # Fix paths
-		   local VTK_VER=`echo ${VTK_DIR} | cut -d/ -f4`
-		   sed -i \
-			   -e "s:VTK_INCLUDEPATH.*:VTK_INCLUDEPATH = ${EPREFIX}/usr/include/${VTK_VER}:g" \
-			   -e "s:VTK_LIBPATH.*:VTK_LIBPATH = ${VTK_DIR}:g" \
-			   ${MY_PN}.pri || die
-	fi
-
-	if use !matc; then
-		   sed -i 's/DEFINES += EG_MATC//' ${MY_PN}.pri || die
-	else
-		   sed -i "s:LIBPATH += ../matc/lib:LIBPATH += ${EPREFIX}/usr/$(get_libdir):g" Application/Application.pro || die
-	fi
-
-	if use !opencascade; then
-		   # Opencascade is activated by default, disable
-		   sed -i 's/DEFINES += EG_OCC//' ${MY_PN}.pri || die
-	else
-		   # Fix paths, depend on portage version of opencascade
-		   sed -i \
-			   -e "s:OCC_INCLUDEPATH.*:OCC_INCLUDEPATH = ${CASROOT}/inc:g" \
-			   -e "s:OCC_LIBPATH.*:OCC_LIBPATH = ${CASROOT}/$(get_libdir):g" \
-			   ${MY_PN}.pri || die
-	fi
-
-	if use python; then
-		   # Fix paths
-		   sed -i \
-			   -e 's/DEFINES -= EG_PYTHON/DEFINES += EG_PYTHON/g' \
-			   -e "s:PY_INCLUDEPATH.*:PY_INCLUDEPATH = $(python_get_includedir):g" \
-			   -e "s:PY_LIBPATH.*:PY_LIBPATH = $(python_get_libdir):g" \
-			   -e "s:PY_LIBS.*:PY_LIBS = $(python_get_library -l):g" \
-			   ${MY_PN}.pri || die
-
-		   # Fix paths and invert Python(Qt) linking order to work with --Wl,--as-needed
-		   sed -i \
-			   -e "s:INCLUDEPATH += $${PY_INCLUDEPATH} ../PythonQt/src:${EPREFIX}/usr/include/PythonQt:g" \
-			   -e "s:LIBPATH += $${PY_LIBPATH} ../PythonQt/lib:${EPREFIX}/usr/$(get_libdir):g" \
-			   -e "s:LIBS += $${PY_LIBS} -lPythonQt:LIBS += -lPythonQt $${PY_LIBS}:" \
-			   Application/Application.pro || die
-	fi
-}
-
-src_configure() {
-	eqmake4 "${S}" ./${MY_PN}.pro
-}

diff --git a/sci-misc/elmer-gui/files/elmer-gui-netgen-fixes.patch b/sci-misc/elmer-gui/files/elmer-gui-netgen-fixes.patch
deleted file mode 100644
index 0918c8ea9..000000000
--- a/sci-misc/elmer-gui/files/elmer-gui-netgen-fixes.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- /var/tmp/portage/sci-misc/elmer-gui-9999/work/elmer-gui-9999/Application/src/mainwindow.cpp.auto-diff-temp	2012-11-15 17:16:40.602279216 +0100
-+++ /var/tmp/portage/sci-misc/elmer-gui-9999/work/elmer-gui-9999/Application/src/mainwindow.cpp	2012-11-15 17:16:52.226288133 +0100
-@@ -4778,7 +4778,7 @@
- 
-     mp.maxh = meshControl->nglibMaxH.toDouble();
-     mp.fineness = meshControl->nglibFineness.toDouble();
--    mp.secondorder = 0;
-+    mp.second_order = 0;
-     mp.meshsize_filename = backgroundmesh;
- 
-     if(ngDim == 3) {

diff --git a/sci-misc/elmer-gui/metadata.xml b/sci-misc/elmer-gui/metadata.xml
deleted file mode 100644
index ea0c38830..000000000
--- a/sci-misc/elmer-gui/metadata.xml
+++ /dev/null
@@ -1,16 +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@gentoo.org</email>
-		<name>Gentoo Science Project</name>
-	</maintainer>
-	<use>
-		<flag name="bundled_netgen"> Use bundled version of <pkg>sci-mathematics/netgen</pkg></flag>
-		<flag name="matc"> Enables <pkg>sci-libs/matc</pkg> support</flag>
-		<flag name="opencascade"> Enable <pkg>sci-libs/opencascade</pkg>
-support</flag>
-		<flag name="qwt"> Enables <pkg>x11-libs/qwt</pkg> support</flag>
-		<flag name="vtk"> Enables <pkg>sci-libs/vtk</pkg> support</flag>
-	</use>
-</pkgmetadata>


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2018-10-26 12:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-26 12:37 [gentoo-commits] proj/sci:master commit in: sci-misc/elmer-gui/files/, sci-misc/elmer-gui/ Christoph Junghans

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox