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 EB9D2138334 for ; Tue, 31 Jul 2018 22:05:18 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7EFD6E08C3; Tue, 31 Jul 2018 22:05:17 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 46347E08C3 for ; Tue, 31 Jul 2018 22:05:16 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 013E7335CAC for ; Tue, 31 Jul 2018 22:05:15 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id ADCE63A4 for ; Tue, 31 Jul 2018 22:05:12 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1533074249.bcd4cee81065125672f1903237e086c3f0db741f.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/mypaint/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-gfx/mypaint/mypaint-1.2.1-r1.ebuild X-VCS-Directories: media-gfx/mypaint/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: bcd4cee81065125672f1903237e086c3f0db741f X-VCS-Branch: master Date: Tue, 31 Jul 2018 22:05:12 +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-Archives-Salt: e3c56478-ec71-414f-a248-88981fc91440 X-Archives-Hash: d71a7d7cada4a5542f79cf8a51e3c3d1 commit: bcd4cee81065125672f1903237e086c3f0db741f Author: Guillaume Castagnino xwing info> AuthorDate: Tue Jul 31 20:25:34 2018 +0000 Commit: Michał Górny gentoo org> CommitDate: Tue Jul 31 21:57:29 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bcd4cee8 media-gfx/mypaint: drop broken multilib handling The current multilib handling is only partial as it moves libs to $(get_libdir) but does not fix the python entry point to load librbries from the correct directory. The bug is only triggered on SYMLINK_LIB systems. As this package will never be installed for multiple libdirs, drop this and stick to upstream. Closes: https://bugs.gentoo.org/648960 Closes: https://github.com/gentoo/gentoo/pull/9337 Package-Manager: Portage-2.3.44, Repoman-2.3.10 media-gfx/mypaint/mypaint-1.2.1-r1.ebuild | 77 +++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) diff --git a/media-gfx/mypaint/mypaint-1.2.1-r1.ebuild b/media-gfx/mypaint/mypaint-1.2.1-r1.ebuild new file mode 100644 index 00000000000..8489c3857e4 --- /dev/null +++ b/media-gfx/mypaint/mypaint-1.2.1-r1.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 ) + +inherit fdo-mime gnome2-utils scons-utils toolchain-funcs python-single-r1 + +DESCRIPTION="fast and easy graphics application for digital painters" +HOMEPAGE="http://mypaint.org/" +SRC_URI="https://github.com/mypaint/${PN}/releases/download/v${PV}/${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +LANGS="cs de en_CA en_GB es fr hu id it ja ko nb nn_NO pl pt_BR ro ru sl sv uk zh_CN zh_TW" + +RDEPEND=" + dev-python/pygobject:3[${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}] + >=dev-python/pycairo-1.4[${PYTHON_USEDEP}] + dev-python/protobuf-python[${PYTHON_USEDEP}] + >=dev-libs/json-c-0.11:= + media-libs/lcms:2 + >=media-libs/libmypaint-1.3.0 + media-libs/libpng:0= + gnome-base/librsvg + ${PYTHON_DEPS} +" +DEPEND="${RDEPEND} + dev-lang/swig + virtual/pkgconfig" + +REQUIRED_USE=${PYTHON_REQUIRED_USE} + +pkg_setup() { + python-single-r1_pkg_setup +} + +src_compile() { + #workaround scons bug with locales. Bug #352700 + export LANG="en_US.UTF-8" + tc-export CC CXX + escons +} + +src_install () { + escons prefix="${D}/usr" install + newicon pixmaps/${PN}_logo.png ${PN}.png + for x in ${LANGS}; do + if ! has ${x} ${LINGUAS}; then + rm -rf "${ED}"/usr/share/locale/${x} || die + fi + done + + python_optimize "${D}"usr/share/${PN} + # not used and broken + rm -r "${ED}"/usr/{include/,lib/libmypaint.a,lib/pkgconfig/} || die + # already provided by system-libmypaint + rm "${ED}"/usr/share/locale/*/LC_MESSAGES/libmypaint* || die +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + fdo-mime_desktop_database_update + gnome2_icon_cache_update +} + +pkg_postrm() { + fdo-mime_desktop_database_update +}