Compare commits

...

3 Commits

Author SHA1 Message Date
Maciej Barć
3984323527
sci-visualization/tulip: update patch name
Package-Manager: Portage-3.0.8, Repoman-3.0.2
Signed-off-by: Maciej Barć <xgqt@protonmail.com>
2020-10-27 11:01:54 +01:00
Alfred Wingate
4125d353e9
sci-visualization/tulip: add patch to remove sandbox violation
Package-Manager: Portage-3.0.8, Repoman-3.0.2
Signed-off-by: Alfred Wingate <parona@protonmail.com>
2020-10-27 02:41:25 +02:00
Maciej Barć
a46e786f0b
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>
2020-10-26 23:40:09 +01:00
5 changed files with 223 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,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)

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

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