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 DB5B1139694 for ; Mon, 17 Apr 2017 16:49:14 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 329BCE0CE9; Mon, 17 Apr 2017 16:49:12 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id ED6F7E0CE2 for ; Mon, 17 Apr 2017 16:49:11 +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 C6AE8341674 for ; Mon, 17 Apr 2017 16:49:10 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 29FAA7438 for ; Mon, 17 Apr 2017 16:49:09 +0000 (UTC) From: "David Seifert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "David Seifert" Message-ID: <1492447718.246a256bda535a88f8196e3069d4fedb3deb918b.soap@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libpeas/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/libpeas/libpeas-1.20.0-r1.ebuild X-VCS-Directories: dev-libs/libpeas/ X-VCS-Committer: soap X-VCS-Committer-Name: David Seifert X-VCS-Revision: 246a256bda535a88f8196e3069d4fedb3deb918b X-VCS-Branch: master Date: Mon, 17 Apr 2017 16:49:09 +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: d3bda1e3-a3d4-4c33-b977-9135ebdbf62c X-Archives-Hash: 9228b8a03cd5959259c4f40e39ec8a34 commit: 246a256bda535a88f8196e3069d4fedb3deb918b Author: David Seifert gentoo org> AuthorDate: Mon Apr 17 16:46:18 2017 +0000 Commit: David Seifert gentoo org> CommitDate: Mon Apr 17 16:48:38 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=246a256b dev-libs/libpeas: Port to python-single-r1 Package-Manager: Portage-2.3.5, Repoman-2.3.2 Closes: https://github.com/gentoo/gentoo/pull/4434 dev-libs/libpeas/libpeas-1.20.0-r1.ebuild | 84 +++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) diff --git a/dev-libs/libpeas/libpeas-1.20.0-r1.ebuild b/dev-libs/libpeas/libpeas-1.20.0-r1.ebuild new file mode 100644 index 00000000000..1a9c767f431 --- /dev/null +++ b/dev-libs/libpeas/libpeas-1.20.0-r1.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +GNOME2_LA_PUNT="yes" +PYTHON_COMPAT=( python{3_4,3_5} ) + +inherit autotools eutils gnome2 multilib python-single-r1 virtualx + +DESCRIPTION="A GObject plugins library" +HOMEPAGE="https://developer.gnome.org/libpeas/stable/" + +LICENSE="LGPL-2+" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~amd64-linux ~x86-linux" + +IUSE="+gtk glade jit lua +python" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +RDEPEND=" + >=dev-libs/glib-2.38:2 + >=dev-libs/gobject-introspection-1.39:= + glade? ( >=dev-util/glade-3.9.1:3.10 ) + gtk? ( >=x11-libs/gtk+-3:3[introspection] ) + lua? ( + >=dev-lua/lgi-0.9.0 + jit? ( >=dev-lang/luajit-2:2 ) + !jit? ( =dev-lang/lua-5.1*:0 ) ) + python? ( + ${PYTHON_DEPS} + >=dev-python/pygobject-3.2:3[${PYTHON_USEDEP}] ) +" +DEPEND="${RDEPEND} + >=dev-util/gtk-doc-am-1.11 + >=dev-util/intltool-0.40 + virtual/pkgconfig + + dev-libs/gobject-introspection-common + gnome-base/gnome-common +" +# eautoreconf needs gobject-introspection-common, gnome-common + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_prepare() { + # Gentoo uses unversioned lua - lua.pc instad of lua5.1.pc, /usr/bin/lua instead of /usr/bin/lua5.1 + eapply "${FILESDIR}"/${PN}-1.14.0-lua.pc.patch + eautoreconf + gnome2_src_prepare +} + +src_configure() { + # Wtf, --disable-gcov, --enable-gcov=no, --enable-gcov, all enable gcov + # What do we do about gdb, valgrind, gcov, etc? + local myconf=( + $(use_enable glade glade-catalog) + $(use_enable gtk) + --disable-static + + # py2 not supported anymore + --disable-python2 + $(use_enable python python3) + + # lua + $(use_enable lua lua5.1) + $(use_enable $(usex jit lua jit) luajit) + ) + + gnome2_src_configure "${myconf[@]}" +} + +src_test() { + # This looks fixed since 1.18.0: + # + # FIXME: Tests fail because of some bug involving Xvfb and Gtk.IconTheme + # DO NOT REPORT UPSTREAM, this is not a libpeas bug. + # To reproduce: + # >>> from gi.repository import Gtk + # >>> Gtk.IconTheme.get_default().has_icon("gtk-about") + # This should return True, it returns False for Xvfb + virtx emake check +}