From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 19BA71382C5 for ; Wed, 20 May 2020 23:06:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 39915E0A90; Wed, 20 May 2020 23:06:37 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 12DB2E0A90 for ; Wed, 20 May 2020 23:06:37 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6EF9D34F277 for ; Wed, 20 May 2020 23:06:35 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DAA5324E for ; Wed, 20 May 2020 23:06:32 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1590015980.e1054d38e18cc30baed0f4997b451e44851a5ab0.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-chemistry/molsketch/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-chemistry/molsketch/molsketch-0.4.1-r1.ebuild X-VCS-Directories: sci-chemistry/molsketch/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: e1054d38e18cc30baed0f4997b451e44851a5ab0 X-VCS-Branch: master Date: Wed, 20 May 2020 23:06:32 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 5f7fdd07-7277-46e7-b335-aaec88751acd X-Archives-Hash: a4be03c8201b4295afd82e49820e49a0 commit: e1054d38e18cc30baed0f4997b451e44851a5ab0 Author: Andreas Sturmlechner gentoo org> AuthorDate: Wed May 20 22:49:36 2020 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Wed May 20 23:06:20 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e1054d38 sci-chemistry/molsketch: Fix QA issues, switch to cmake.eclass, EAPI-7 Drop unused cmake vars Drop unused multilib Add missing xdg-utils and xdg_desktop_database_update Fix indendation No tests found Replace defunct sed with cmake var. Closes: https://bugs.gentoo.org/660272 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Andreas Sturmlechner gentoo.org> sci-chemistry/molsketch/molsketch-0.4.1-r1.ebuild | 42 +++++++++++------------ 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/sci-chemistry/molsketch/molsketch-0.4.1-r1.ebuild b/sci-chemistry/molsketch/molsketch-0.4.1-r1.ebuild index 87dc43370de..5b997ba272b 100644 --- a/sci-chemistry/molsketch/molsketch-0.4.1-r1.ebuild +++ b/sci-chemistry/molsketch/molsketch-0.4.1-r1.ebuild @@ -1,23 +1,18 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 -CMAKE_MAKEFILE_GENERATOR=ninja - -inherit cmake-utils multilib qmake-utils - -MY_P=${P/m/M}-src +inherit cmake qmake-utils xdg-utils DESCRIPTION="A drawing tool for 2D molecular structures" HOMEPAGE="http://molsketch.sourceforge.net/" -SRC_URI="mirror://sourceforge/project/${PN}/Molsketch/Beryllium-7%20${PV}/${MY_P}.tar.gz" +SRC_URI="mirror://sourceforge/project/${PN}/Molsketch/Beryllium-7%20${PV}/${P^}-src.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" -IUSE="test" -RESTRICT="!test? ( test )" +IUSE="" DEPEND=" >=sci-chemistry/openbabel-2.2 @@ -26,35 +21,40 @@ DEPEND=" dev-qt/qtprintsupport:5 dev-qt/qtsvg:5 dev-qt/qtwidgets:5 - " +" RDEPEND="${DEPEND}" -S=${WORKDIR}/${MY_P%%-src} +S="${WORKDIR}/${P^}" PATCHES=( "${FILESDIR}"/${PN}-0.3.0-_DEFAULT_SOURCE.patch "${FILESDIR}"/${P}-more-quotes.patch - ) +) src_prepare() { sed -e "/LIBRARY DESTINATION/ s/lib/$(get_libdir)/g" \ -i {obabeliface,libmolsketch/src}/CMakeLists.txt || die #351246 - sed -e "s:doc/molsketch:doc/${PF}:g" \ - -i molsketch/src/{CMakeLists.txt,mainwindow.cpp} || die - cmake-utils_src_prepare + cmake_src_prepare } src_configure() { local mycmakeargs=( - -DOPENBABEL2_INCLUDE_DIR="${EPREFIX}/usr/include/openbabel-2.0" - -DCMAKE_DISABLE_FIND_PACKAGE_KDE4=ON - -DENABLE_TESTS=$(usex test "ON" "OFF") + -DOPENBABEL2_INCLUDE_DIR="${EPREFIX}"/usr/include/openbabel-2.0 -DMSK_INSTALL_PREFIX=/usr + -DMSK_INSTALL_DOCS="${EPREFIX}"/usr/share/doc/${PF} ) - cmake-utils_src_configure + cmake_src_configure } src_install() { - cmake-utils_src_install + cmake_src_install dosym ${PN}-qt5 /usr/bin/${PN} } + +pkg_postinst() { + xdg_desktop_database_update +} + +pkg_postrm() { + xdg_desktop_database_update +}