Browse Source

sci-visualization/scidavis: move to ::gentoo

Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
master
Andrew Ammerlaan 4 weeks ago
parent
commit
43edf6982f
No known key found for this signature in database GPG Key ID: A2E2304370447E8E
5 changed files with 0 additions and 167 deletions
  1. +0
    -1
      sci-visualization/scidavis/Manifest
  2. +0
    -39
      sci-visualization/scidavis/files/scidavis-build.patch
  3. +0
    -10
      sci-visualization/scidavis/files/scidavis-tests.patch
  4. +0
    -24
      sci-visualization/scidavis/metadata.xml
  5. +0
    -93
      sci-visualization/scidavis/scidavis-2.3.0.ebuild

+ 0
- 1
sci-visualization/scidavis/Manifest View File

@ -1 +0,0 @@
DIST scidavis-2.3.0.tar.gz 9821439 BLAKE2B df542f570c4aa0ac93b8565dbd96937e6d3afe74d907d3f5145abd68cd44eff67f7d8892c70c21d9e9b308db119635050630efab9ca6ecffe70df38415711b86 SHA512 2ede70bcf5b910fc61e5a23ba36129bde11fd10b14470d4e8c9509eecb245c73242a3a1eec174b4f9a22abd21880e6ecbd9f0d1e492af87ff781163ad05e20cf

+ 0
- 39
sci-visualization/scidavis/files/scidavis-build.patch View File

@ -1,39 +0,0 @@
diff --git a/config.pri b/config.pri
index 2b8d943..6034b6a 100644
--- a/config.pri
+++ b/config.pri
@@ -278,30 +278,13 @@ osx_dist {
contains(PRESET, linux_package) {
### dynamically link against Qwt(3D) installed system-wide
-
- exists(/usr/include/qt5/qwt5-qt5) {INCLUDEPATH+=/usr/include/qt5/qwt5-qt5}
- exists(/usr/include/qt5/qwtplot3d-qt5) {INCLUDEPATH+=/usr/include/qt5/qwtplot3d-qt5}
- exists(/usr/include/qwt5-qt5) {INCLUDEPATH+=/usr/include/qwt5-qt5}
- exists(/usr/include/qwtplot3d) {INCLUDEPATH+=/usr/include/qwtplot3d}
-
- system (ls /usr/lib*/libqwt5-qt5.so) {LIBS+=-lqwt5-qt5}
- system (ls /usr/lib*/*/libqwt5-qt5.so) {LIBS+=-lqwt5-qt5}
- system (ls /usr/lib*/libqwt-qt5.so) {LIBS+=-lqwt-qt5}
- system (ls /usr/lib*/libqwtplot3d-qt5.so) {LIBS+=-lqwtplot3d-qt5}
- system (ls /usr/lib*/*/libqwtplot3d-qt5.so) {LIBS+=-lqwtplot3d-qt5}
-
-
+ INCLUDEPATH +=/usr/include/qwt5
+ INCLUDEPATH +=/usr/include/qwtplot3d
+ LIBS +=-lqwt5-qt5
+ LIBS +=-lqwtplot3d
LIBS += -lz -lGLU
-
- INCLUDEPATH += /usr/include/muParser
LIBS += -lgsl -lgslcblas
LIBS += -lmuparser
-
- # enable user installed packages
- INCLUDEPATH = "$(HOME)/usr/include" $$INCLUDEPATH
- QMAKE_LIBDIR = "$(HOME)/usr/lib" $$QMAKE_LIBDIR
-
-
}
contains(PRESET, self_contained) {

+ 0
- 10
sci-visualization/scidavis/files/scidavis-tests.patch View File

@ -1,10 +0,0 @@
diff --git a/test/testPaintDevice.cpp b/test/testPaintDevice.cpp
index 8657307..89693b0 100644
--- a/test/testPaintDevice.cpp
+++ b/test/testPaintDevice.cpp
@@ -1,4 +1,5 @@
#include "testPaintDevice.h"
+#include <QPainterPath>
using namespace std;
namespace

+ 0
- 24
sci-visualization/scidavis/metadata.xml View File

@ -1,24 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>andrewammerlaan@gentoo.org</email>
<name>Andrew Ammerlaan</name>
</maintainer>
<maintainer type="project">
<email>sci@gentoo.org</email>
<name>Gentoo Science Project</name>
</maintainer>
<longdescription lang="en">
SciDAVis is a user-friendly data analysis and visualization program primarily aimed at high-quality plotting of scientific data.
It strives to combine an intuitive, easy-to-use graphical user interface with powerful features such as Python scriptability.
</longdescription>
<use>
<flag name="assistant">Compile with QAssistant (documentation broweser) support from <pkg>dev-qt/assistant</pkg>.</flag>
<flag name="origin">Add support for reading OriginLab OPJ project files through <pkg>sci-libs/liborigin</pkg>.</flag>
<flag name="python">Build support for python scripting.</flag>
</use>
<upstream>
<remote-id type="sourceforge">SciDAVis</remote-id>
</upstream>
</pkgmetadata>

+ 0
- 93
sci-visualization/scidavis/scidavis-2.3.0.ebuild View File

@ -1,93 +0,0 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{7,8,9} )
inherit python-single-r1 qmake-utils xdg
DESCRIPTION="Application for Scientific Data Analysis and Visualization"
HOMEPAGE="http://scidavis.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/SciDAVis/$(ver_cut 1)/$(ver_cut 1-2)/${P}.tar.gz"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~x86"
SLOT="0"
IUSE="assistant doc origin python test"
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
RESTRICT="!test? ( test )"
RDEPEND="
dev-cpp/muParser
dev-qt/qtgui:5
dev-qt/qtopengl:5
sci-libs/gsl
sys-libs/zlib[minizip]
x11-libs/qwt:5
x11-libs/qwtplot3d
assistant? ( dev-qt/assistant )
origin? ( sci-libs/liborigin )
python? (
${PYTHON_DEPS}
$(python_gen_cond_dep '
dev-python/PyQt5[${PYTHON_USEDEP}]
dev-python/PyQt5-sip[${PYTHON_USEDEP}]
dev-python/sip[${PYTHON_USEDEP}]
')
)
"
BDEPEND="
doc? ( app-doc/doxygen )
test? ( dev-libs/unittest++ )
"
PATCHES=(
"${FILESDIR}/${PN}-build.patch"
"${FILESDIR}/${PN}-tests.patch"
)
src_prepare() {
default
# OF has been renamed in Gentoo https://bugs.gentoo.org/383179
# Note this is *not* packaged in sys-libs/zlib[minizip] because
# this file resides in the test directory in upstream zlib
sed -i -r 's:\<(O[FN])\>:_Z_\1:g' 3rdparty/minigzip/minigzip.c || die
# fix paths
cat >> config.pri <<-EOF
# install docs to ${PF} instead of ${PN}
documentation.path = "\$\$INSTALLBASE/share/doc/${PF}"
# install python files in Gentoo specific directories
pythonconfig.path = "$(python_get_scriptdir)"
pythonutils.path = "$(python_get_scriptdir)"
# /usr/share/appdata is deprecated
appdata.path = "\$\$INSTALLBASE/share/metainfo"
EOF
}
src_configure() {
INSTALLBASE="${EPREFIX}/usr" eqmake5 \
$(usex assistant " " " CONFIG+=noassistant ") \
$(usex origin " CONFIG+=liborigin " " ") \
$(usex python " CONFIG+=python " " ") \
$(usex test " CONFIG+=test " " ")
}
src_compile() {
default
if use doc ; then
doxygen Doxyfile || die "doxygen failed"
HTML_DOCS="API/html"
fi
}
src_install () {
emake INSTALL_ROOT="${D}" install
einstalldocs
use python && python_optimize
}

Loading…
Cancel
Save