diff options
-rw-r--r-- | sci-chemistry/avogadro2/Manifest | 2 | ||||
-rw-r--r-- | sci-chemistry/avogadro2/avogadro2-1.95.1.ebuild | 82 | ||||
-rw-r--r-- | sci-chemistry/avogadro2/files/avogadro2-1.95.1-qttest.patch | 15 |
3 files changed, 99 insertions, 0 deletions
diff --git a/sci-chemistry/avogadro2/Manifest b/sci-chemistry/avogadro2/Manifest index cb54b5425a01..00bcc209d6dc 100644 --- a/sci-chemistry/avogadro2/Manifest +++ b/sci-chemistry/avogadro2/Manifest @@ -1 +1,3 @@ DIST avogadro2-1.93.0.tar.gz 2905461 BLAKE2B db51e4574fdf2a31657b8bef7b06eb0d563484deaae1a6d75649187d6f5fd7b02a99506cfb850e09792555d7c27d9937d0df0f7172fafc3ddcbccaa7502c5bb6 SHA512 8e4e15b6c2d1935f8c585c83761b28a6397bc1dc22cd5f66464d59dd25327b1cffec809af492586be4b56793448f94f9375c16e8a4c4969f7b8f2591049cc5fc +DIST avogadro2-1.95.1-i18n.tar.gz 800520 BLAKE2B f68edce572335621deb9698d1cc97d4d8e900ea91bb7a428a4da63d9060c38b31181b91b868378ab5da29c7a61ccb0f6efd9b422bba2d9dc9bb86578c23152c4 SHA512 1182578a9b91f49d114fa3a201e5fe5c37d3abdd10dff82be04f6d5fd193dd3b1140e7abdf2cf721523f523d762fbdc97780887184b83edbc9d3fa87fd8f7428 +DIST avogadro2-1.95.1.tar.gz 2888376 BLAKE2B 00ad2b9daccec77207d42bd0db0cf404bd5b92941385f19ac35400cf497884d198785da60f87fd68e92f6d864abea31f07526c2053b34cbf75d1202fd9232694 SHA512 15300da0ecc85be0e369758aafa50ca5c236132988da68611f198637ea49f4a88da93d58ecd177aeb3c2ac363c0da79b91064156e61c828a059277aa09245604 diff --git a/sci-chemistry/avogadro2/avogadro2-1.95.1.ebuild b/sci-chemistry/avogadro2/avogadro2-1.95.1.ebuild new file mode 100644 index 000000000000..e4a5c22f11fc --- /dev/null +++ b/sci-chemistry/avogadro2/avogadro2-1.95.1.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +MY_PN=avogadroapp + +DOCS_BUILDER="doxygen" +DOCS_DEPEND="media-gfx/graphviz" +DOCS_DIR="${WORKDIR}/${MY_PN}-${PV}_build/docs" +# docs/CMakeLists.txt overwrites docs.eclass outdir if we do not set this +DOCS_OUTDIR="${DOCS_DIR}/html" +DOCS_CONFIG_NAME="doxyfile" +inherit desktop docs cmake xdg + +I18N_COMMIT="3b8a86cc37e988b043d1503d2f11068389b0aca3" + +DESCRIPTION="Advanced molecule editor and visualizer 2" +HOMEPAGE="https://www.openchemistry.org/" +SRC_URI=" + https://github.com/OpenChemistry/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz + https://github.com/OpenChemistry/avogadro-i18n/archive/${I18N_COMMIT}.tar.gz -> ${P}-i18n.tar.gz +" +S="${WORKDIR}/${MY_PN}-${PV}" + +SLOT="0" +LICENSE="BSD GPL-2+" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="rpc test vtk" + +RDEPEND=" + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtwidgets:5 + >=sci-libs/avogadrolibs-${PV}[qt5,vtk?] + sci-libs/hdf5:= + rpc? ( sci-chemistry/molequeue ) +" +DEPEND="${RDEPEND} + dev-cpp/eigen:3 + test? ( dev-qt/qttest:5 ) +" + +RESTRICT="test" + +PATCHES=( + "${FILESDIR}/${P}-qttest.patch" +) + +src_unpack() { + default + mv "${WORKDIR}/avogadro-i18n-${I18N_COMMIT}" "${WORKDIR}/avogadro-i18n" || die +} + +src_prepare() { + cmake_src_prepare + sed -e "/LICENSE/d" -i CMakeLists.txt || die +} + +src_configure() { + local mycmakeargs=( + -DINSTALL_DOC_DIR="${EPREFIX}/usr/share/doc/${PF}" + -DBUILD_DOCUMENTATION=$(usex doc) + -DAvogadro_ENABLE_RPC=$(usex rpc) + -DENABLE_TESTING=$(usex test) + -DUSE_VTK=$(usex vtk) + ) + # Need this to prevent overwriting the documentation OUTDIR + use doc && mycmakeargs+=( -DChemData_BINARY_DIR="${DOCS_OUTDIR}" ) + cmake_src_configure +} + +src_compile() { + cmake_src_compile + docs_compile +} + +src_install() { + cmake_src_install + for size in 64 128 256 512; do + newicon -s "${size}" avogadro/icons/"${PN}"_"${size}".png "${PN}".png + done +} diff --git a/sci-chemistry/avogadro2/files/avogadro2-1.95.1-qttest.patch b/sci-chemistry/avogadro2/files/avogadro2-1.95.1-qttest.patch new file mode 100644 index 000000000000..ed12da21e3f6 --- /dev/null +++ b/sci-chemistry/avogadro2/files/avogadro2-1.95.1-qttest.patch @@ -0,0 +1,15 @@ +diff --git a/avogadro/CMakeLists.txt b/avogadro/CMakeLists.txt +index d2245ff..fe1857c 100644 +--- a/avogadro/CMakeLists.txt ++++ b/avogadro/CMakeLists.txt +@@ -80,8 +80,8 @@ endif() + + if(ENABLE_TESTING) + find_package(Qt5 COMPONENTS Test REQUIRED) +- find_package(QtTesting REQUIRED NO_MODULE) +- include_directories(${QtTesting_INCLUDE_DIRS}) ++ find_package(Qt5Test REQUIRED NO_MODULE) ++ include_directories(${Qt5Test_INCLUDE_DIRS}) + link_directories(${QtTesting_LIBRARY_DIR}) + add_definitions(-DQTTESTING) + endif() |