sci-visualization/tulip: new package; add version 5.4.0 and 9999 (live)

Package-Manager: Portage-3.0.8, Repoman-3.0.2
Signed-off-by: Maciej Barć <xgqt@protonmail.com>
This commit is contained in:
Maciej Barć 2020-10-26 23:40:09 +01:00
parent bb4e66e11e
commit a46e786f0b
No known key found for this signature in database
GPG Key ID: 031C9FE65BED714A
4 changed files with 195 additions and 0 deletions

View File

@ -0,0 +1 @@
DIST tulip-5.4.0.tar.gz 104301492 BLAKE2B ecbb4231a2c84197d43a12273e02720f66f019846b93476df1080721ed9d9dc79334875b76298379edb826078de88170f563250fae66de8b20031ca8945e34aa SHA512 ed6d8042ab27cf0ba2eac811354a8ba15c103cfdb348e72af540de61fa0a5173b9c078ba694d04948b0f3eb6b1b06eb04da3fbc99197991ba26806c555f4e5f7

View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<use>
<flag name="ccache">
Use dev-util/ccache to speed up rebuilds
</flag>
</use>
<upstream>
<remote-id type="github">Tulip-Dev/tulip</remote-id>
</upstream>
</pkgmetadata>

View File

@ -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
}

View File

@ -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
}