From a46e786f0b94fc7269113874029d359e06b3b561 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Bar=C4=87?= Date: Mon, 26 Oct 2020 23:40:09 +0100 Subject: [PATCH] sci-visualization/tulip: new package; add version 5.4.0 and 9999 (live) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Package-Manager: Portage-3.0.8, Repoman-3.0.2 Signed-off-by: Maciej Barć --- sci-visualization/tulip/Manifest | 1 + sci-visualization/tulip/metadata.xml | 12 +++ sci-visualization/tulip/tulip-5.4.0.ebuild | 91 ++++++++++++++++++++++ sci-visualization/tulip/tulip-9999.ebuild | 91 ++++++++++++++++++++++ 4 files changed, 195 insertions(+) create mode 100644 sci-visualization/tulip/Manifest create mode 100644 sci-visualization/tulip/metadata.xml create mode 100644 sci-visualization/tulip/tulip-5.4.0.ebuild create mode 100644 sci-visualization/tulip/tulip-9999.ebuild diff --git a/sci-visualization/tulip/Manifest b/sci-visualization/tulip/Manifest new file mode 100644 index 0000000..b0bf446 --- /dev/null +++ b/sci-visualization/tulip/Manifest @@ -0,0 +1 @@ +DIST tulip-5.4.0.tar.gz 104301492 BLAKE2B ecbb4231a2c84197d43a12273e02720f66f019846b93476df1080721ed9d9dc79334875b76298379edb826078de88170f563250fae66de8b20031ca8945e34aa SHA512 ed6d8042ab27cf0ba2eac811354a8ba15c103cfdb348e72af540de61fa0a5173b9c078ba694d04948b0f3eb6b1b06eb04da3fbc99197991ba26806c555f4e5f7 diff --git a/sci-visualization/tulip/metadata.xml b/sci-visualization/tulip/metadata.xml new file mode 100644 index 0000000..2a723b9 --- /dev/null +++ b/sci-visualization/tulip/metadata.xml @@ -0,0 +1,12 @@ + + + + + + Use dev-util/ccache to speed up rebuilds + + + + Tulip-Dev/tulip + + diff --git a/sci-visualization/tulip/tulip-5.4.0.ebuild b/sci-visualization/tulip/tulip-5.4.0.ebuild new file mode 100644 index 0000000..ebd9c0d --- /dev/null +++ b/sci-visualization/tulip/tulip-5.4.0.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +# 5.4.0 -> tulip_5_4_0 +TULIP_P="${PN}_${PV//./_}" + +PYTHON_COMPAT=( python3_{6..8} ) + +inherit cmake python-r1 xdg + +DESCRIPTION="Large graphs analysis, drawing and visualization framework" +HOMEPAGE="https://tulip.labri.fr/" + +if [[ "${PV}" == *9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/Tulip-Dev/${PN}.git" +else + SRC_URI="https://github.com/Tulip-Dev/${PN}/archive/${TULIP_P}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" + S="${WORKDIR}"/"${PN}-${TULIP_P}" +fi + +RESTRICT=" + mirror + !test? ( test ) +" +LICENSE="LGPL-3" +SLOT="0" +IUSE="ccache debug minimal +python test" +REQUIRED_USE=" + python? ( + ${PYTHON_REQUIRED_USE} + ) + minimal? ( !python ) +" + +# TODO: turn off doc build on USE demand +BDEPEND=" + ccache? ( + dev-util/ccache + ) +" +RDEPEND=" + dev-libs/quazip + dev-libs/yajl + media-libs/qhull + sys-libs/zlib + !minimal? ( + dev-qt/qtcore:5 + dev-qt/qtgui:5[X] + dev-qt/qtnetwork:5 + dev-qt/qtquickcontrols2:5 + dev-qt/qtwebchannel:5 + dev-qt/qtwebengine:5 + dev-qt/qtwidgets:5[X] + media-libs/freetype + media-libs/glew:0 + python? ( + ${PYTHON_DEPS} + dev-python/sip[${PYTHON_USEDEP}] + ) + ) +" +DEPEND=" + ${RDEPEND} + test? ( + dev-util/cppunit + ) + !minimal? ( + app-doc/doxygen[dot] + dev-python/sphinx + ) +" + +src_prepare() { + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DCMAKE_BUILD_TYPE=$(usex debug Debug Release) + -DTULIP_BUILD_CORE_ONLY=$(usex minimal ON OFF) + -DTULIP_BUILD_PYTHON_COMPONENTS=$(usex python ON OFF) + -DTULIP_BUILD_TESTS=$(usex test ON OFF) + -DTULIP_USE_CCACHE=$(usex ccache ON OFF) + ) + + cmake_src_configure +} diff --git a/sci-visualization/tulip/tulip-9999.ebuild b/sci-visualization/tulip/tulip-9999.ebuild new file mode 100644 index 0000000..ebd9c0d --- /dev/null +++ b/sci-visualization/tulip/tulip-9999.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +# 5.4.0 -> tulip_5_4_0 +TULIP_P="${PN}_${PV//./_}" + +PYTHON_COMPAT=( python3_{6..8} ) + +inherit cmake python-r1 xdg + +DESCRIPTION="Large graphs analysis, drawing and visualization framework" +HOMEPAGE="https://tulip.labri.fr/" + +if [[ "${PV}" == *9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/Tulip-Dev/${PN}.git" +else + SRC_URI="https://github.com/Tulip-Dev/${PN}/archive/${TULIP_P}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" + S="${WORKDIR}"/"${PN}-${TULIP_P}" +fi + +RESTRICT=" + mirror + !test? ( test ) +" +LICENSE="LGPL-3" +SLOT="0" +IUSE="ccache debug minimal +python test" +REQUIRED_USE=" + python? ( + ${PYTHON_REQUIRED_USE} + ) + minimal? ( !python ) +" + +# TODO: turn off doc build on USE demand +BDEPEND=" + ccache? ( + dev-util/ccache + ) +" +RDEPEND=" + dev-libs/quazip + dev-libs/yajl + media-libs/qhull + sys-libs/zlib + !minimal? ( + dev-qt/qtcore:5 + dev-qt/qtgui:5[X] + dev-qt/qtnetwork:5 + dev-qt/qtquickcontrols2:5 + dev-qt/qtwebchannel:5 + dev-qt/qtwebengine:5 + dev-qt/qtwidgets:5[X] + media-libs/freetype + media-libs/glew:0 + python? ( + ${PYTHON_DEPS} + dev-python/sip[${PYTHON_USEDEP}] + ) + ) +" +DEPEND=" + ${RDEPEND} + test? ( + dev-util/cppunit + ) + !minimal? ( + app-doc/doxygen[dot] + dev-python/sphinx + ) +" + +src_prepare() { + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DCMAKE_BUILD_TYPE=$(usex debug Debug Release) + -DTULIP_BUILD_CORE_ONLY=$(usex minimal ON OFF) + -DTULIP_BUILD_PYTHON_COMPONENTS=$(usex python ON OFF) + -DTULIP_BUILD_TESTS=$(usex test ON OFF) + -DTULIP_USE_CCACHE=$(usex ccache ON OFF) + ) + + cmake_src_configure +}