Compare commits
3 Commits
bb4e66e11e
...
3984323527
Author | SHA1 | Date | |
---|---|---|---|
|
3984323527 | ||
|
4125d353e9 | ||
|
a46e786f0b |
1
sci-visualization/tulip/Manifest
Normal file
1
sci-visualization/tulip/Manifest
Normal file
@ -0,0 +1 @@
|
||||
DIST tulip-5.4.0.tar.gz 104301492 BLAKE2B ecbb4231a2c84197d43a12273e02720f66f019846b93476df1080721ed9d9dc79334875b76298379edb826078de88170f563250fae66de8b20031ca8945e34aa SHA512 ed6d8042ab27cf0ba2eac811354a8ba15c103cfdb348e72af540de61fa0a5173b9c078ba694d04948b0f3eb6b1b06eb04da3fbc99197991ba26806c555f4e5f7
|
18
sci-visualization/tulip/files/tulip-sandbox.patch
Normal file
18
sci-visualization/tulip/files/tulip-sandbox.patch
Normal file
@ -0,0 +1,18 @@
|
||||
diff --git a/software/tulip/CMakeLists.txt b/software/tulip/CMakeLists.txt
|
||||
index 1f5b1a7c7..a6ad3acb6 100644
|
||||
--- a/software/tulip/CMakeLists.txt
|
||||
+++ b/software/tulip/CMakeLists.txt
|
||||
@@ -124,13 +124,6 @@ IF(LINUX)
|
||||
RENAME application-x-tulip.png
|
||||
DESTINATION ${DESKTOP_CONFIG_INSTALL_PREFIX}/share/icons)
|
||||
|
||||
-
|
||||
- INSTALL(CODE
|
||||
- "EXECUTE_PROCESS(COMMAND update-desktop-database ${DESKTOP_CONFIG_INSTALL_PREFIX}/share/applications
|
||||
- COMMAND update-mime-database ${DESKTOP_CONFIG_INSTALL_PREFIX}/share/mime
|
||||
- OUTPUT_QUIET ERROR_QUIET)"
|
||||
- )
|
||||
-
|
||||
ENDIF(TULIP_LINUX_DESKTOP_REGISTRATION)
|
||||
|
||||
ENDIF(LINUX)
|
12
sci-visualization/tulip/metadata.xml
Normal file
12
sci-visualization/tulip/metadata.xml
Normal 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>
|
96
sci-visualization/tulip/tulip-5.4.0.ebuild
Normal file
96
sci-visualization/tulip/tulip-5.4.0.ebuild
Normal file
@ -0,0 +1,96 @@
|
||||
# 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
|
||||
)
|
||||
"
|
||||
|
||||
# In live version this is likely to break
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/"${PN}-sandbox.patch"
|
||||
)
|
||||
|
||||
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
|
||||
}
|
96
sci-visualization/tulip/tulip-9999.ebuild
Normal file
96
sci-visualization/tulip/tulip-9999.ebuild
Normal file
@ -0,0 +1,96 @@
|
||||
# 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
|
||||
)
|
||||
"
|
||||
|
||||
# In live version this is likely to break
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/"${PN}-sandbox.patch"
|
||||
)
|
||||
|
||||
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
|
||||
}
|
Loading…
Reference in New Issue
Block a user