diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2018-04-07 21:01:22 +0200 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2018-04-08 11:53:52 +0200 |
commit | 9a80747f1a93efa92be9944ba77feafd4650c7ea (patch) | |
tree | 1c55a1dd3daf4a0900ce9f084e527031b8df27d3 /sci-libs/avogadrolibs | |
parent | net-wireless/bluez: stable 5.49 for ppc64, bug #649336 (diff) | |
download | gentoo-9a80747f1a93efa92be9944ba77feafd4650c7ea.tar.gz gentoo-9a80747f1a93efa92be9944ba77feafd4650c7ea.tar.bz2 gentoo-9a80747f1a93efa92be9944ba77feafd4650c7ea.zip |
sci-libs/avogadrolibs: Add 1.91.0_p20180406 snapshot
Closes: https://bugs.gentoo.org/645248
Closes: https://bugs.gentoo.org/649862
Closes: https://bugs.gentoo.org/588706
Closes: https://bugs.gentoo.org/577214
Package-Manager: Portage-2.3.28, Repoman-2.3.9
Diffstat (limited to 'sci-libs/avogadrolibs')
4 files changed, 92 insertions, 1 deletions
diff --git a/sci-libs/avogadrolibs/Manifest b/sci-libs/avogadrolibs/Manifest index 1d04e63cc1bf..bbf158508b85 100644 --- a/sci-libs/avogadrolibs/Manifest +++ b/sci-libs/avogadrolibs/Manifest @@ -1 +1,2 @@ DIST avogadrolibs-0.9.0.tar.gz 742370 BLAKE2B cd104cea48b82a1ac86fdb9e93717e2647f57a0d713673d8b340d259f73d6d9985decf0c4e4d83f13d54d12ae2aefee8e75b5d04861f8ab67b9b42690c3c74f7 SHA512 7cb000cd6399f33483c38b4f8a9c4a4688f5054cba35e101bed0f2371cea614ace6b3fc65c3ed1418976afef4462a09be868500435a5ae9c98a7ac496c10c36f +DIST avogadrolibs-1.91.0_pre20180406.tar.gz 857345 BLAKE2B 8e5c6b0a838a2a6b7dc925c1b544ab4d4de8b7769b1fe8d787127a1014b1243da89a2a6f6cfc871181f81a443c3ee63d758369f003afaf591c9373c9d5122ee3 SHA512 1814b2105615aabc1df78b14c581e78fea20a1e4ace8979bb2ad123ab0994d90c3935e37f0cc58b60d3307ffe682599a93d8cadddc22b4ba524caaec1a2c5319 diff --git a/sci-libs/avogadrolibs/avogadrolibs-1.91.0_pre20180406.ebuild b/sci-libs/avogadrolibs/avogadrolibs-1.91.0_pre20180406.ebuild new file mode 100644 index 000000000000..6671ed518fff --- /dev/null +++ b/sci-libs/avogadrolibs/avogadrolibs-1.91.0_pre20180406.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +COMMIT=f414794a168712f72884cdcfba818def5f42e721 +inherit cmake-utils + +DESCRIPTION="Advanced molecule editor and visualizer 2 - libraries" +HOMEPAGE="https://www.openchemistry.org/" +SRC_URI="https://github.com/OpenChemistry/${PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" + +SLOT="0" +LICENSE="BSD GPL-2+" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="archive doc hdf5 qt5 static-plugins test vtk" + +# TODO: Not yet packaged: +# sci-libs/libmsym (https://github.com/mcodev31/libmsym) +# sci-libs/spglib (https://atztogo.github.io/spglib/) +RDEPEND=" + >=sci-chemistry/molequeue-0.7 + archive? ( app-arch/libarchive ) + hdf5? ( sci-libs/hdf5:= ) + qt5? ( + dev-qt/qtconcurrent:5 + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtnetwork:5 + dev-qt/qtwidgets:5 + media-libs/glew:0= + ) + vtk? ( sci-libs/vtk ) +" +DEPEND="${RDEPEND} + dev-cpp/eigen:3 + test? ( dev-cpp/gtest )" + +S="${WORKDIR}/${PN}-${COMMIT}" + +PATCHES=( + "${FILESDIR}"/${PN}-0.7.2-6464.patch + "${FILESDIR}/"${P}-underlinking.patch +) + +src_configure() { + local mycmakeargs=( + -DUSE_PROTOCALL=OFF + -DBUILD_GPL_PLUGINS=ON + -DUSE_MOLEQUEUE=ON + -DUSE_LIBMSYM=OFF + -DUSE_LIBSPG=OFF + -DUSE_PYTHON=OFF + -DUSE_LIBARCHIVE=$(usex archive) + -DBUILD_DOCUMENTATION=$(usex doc) + -DUSE_HDF5=$(usex hdf5) + -DUSE_OPENGL=$(usex qt5) + -DUSE_QT=$(usex qt5) + -DBUILD_STATIC_PLUGINS=$(usex static-plugins) + -DENABLE_TESTING=$(usex test) + -DUSE_VTK=$(usex vtk) + ) + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + + # TODO: bundles jsoncpp + rm "${ED%/}"/usr/lib64/libjsoncpp.a || die +} diff --git a/sci-libs/avogadrolibs/files/avogadrolibs-1.91.0_pre20180406-underlinking.patch b/sci-libs/avogadrolibs/files/avogadrolibs-1.91.0_pre20180406-underlinking.patch new file mode 100644 index 000000000000..f6f39c9e6b7b --- /dev/null +++ b/sci-libs/avogadrolibs/files/avogadrolibs-1.91.0_pre20180406-underlinking.patch @@ -0,0 +1,18 @@ +Fix underlinking problems in shared libraries. + +--- a/avogadro/qtplugins/playertool/CMakeLists.txt ++++ b/avogadro/qtplugins/playertool/CMakeLists.txt +@@ -7,3 +7,5 @@ + "" + playertool.qrc + ) ++ ++target_link_libraries(PlayerTool LINK_PRIVATE Qt5OpenGL) +--- a/avogadro/qtplugins/qtaim/CMakeLists.txt ++++ b/avogadro/qtplugins/qtaim/CMakeLists.txt +@@ -34,3 +34,5 @@ + + target_link_libraries(QTAIMScenePlugin + LINK_PRIVATE AvogadroRendering ${Qt5Concurrent_LIBRARIES}) ++target_link_libraries(QTAIMExtension ++ LINK_PRIVATE ${Qt5Concurrent_LIBRARIES}) diff --git a/sci-libs/avogadrolibs/metadata.xml b/sci-libs/avogadrolibs/metadata.xml index ea8e4fdee064..ff1789dfa774 100644 --- a/sci-libs/avogadrolibs/metadata.xml +++ b/sci-libs/avogadrolibs/metadata.xml @@ -6,8 +6,9 @@ <name>Gentoo Chemistry Project</name> </maintainer> <use> + <flag name="archive">Enable archive support using <pkg>app-arch/libarchive</pkg></flag> <flag name="static-plugins">Build all plugins statically into main plugin modules</flag> - <flag name="vtk">include vtk support</flag> + <flag name="vtk">Enable <pkg>sci-libs/vtk</pkg> support</flag> </use> <upstream> <remote-id type="github">OpenChemistry/avogadrolibs</remote-id> |