From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 206B71384B4 for ; Wed, 9 Dec 2015 22:01:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2DCD521C01D; Wed, 9 Dec 2015 22:01:37 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B3CD721C01D for ; Wed, 9 Dec 2015 22:01:36 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1BDB934073B for ; Wed, 9 Dec 2015 22:01:34 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 555E6A3F for ; Wed, 9 Dec 2015 22:01:28 +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: <1449698477.24cd543b2081a54c09225e6bf7e663372305468a.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-pda/libplist/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-pda/libplist/libplist-1.11-r1.ebuild X-VCS-Directories: app-pda/libplist/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 24cd543b2081a54c09225e6bf7e663372305468a X-VCS-Branch: master Date: Wed, 9 Dec 2015 22:01:28 +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: d11b731c-5cc1-42f5-9a21-d7b686890b1d X-Archives-Hash: 19ab315bac92624aeb77bd0d5b417243 commit: 24cd543b2081a54c09225e6bf7e663372305468a Author: Michał Górny gentoo org> AuthorDate: Wed Dec 9 21:58:40 2015 +0000 Commit: Michał Górny gentoo org> CommitDate: Wed Dec 9 22:01:17 2015 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=24cd543b app-pda/libplist: Switch to python-single-r1, disable py3 Replace the semi-broken Python support code in ebuild with python-single-r1. The original code used python-r1 and rebuilt the whole package (incl. C libraries) for each implementation, even when Python support was explicitly disabled. Furthermore, the used autoconf macros break with Python 3.2+. Therefore, the Python 3 support has been disabled entirely until the relevant code is fixed. Bug: https://bugs.gentoo.org/show_bug.cgi?id=567370 app-pda/libplist/libplist-1.11-r1.ebuild | 56 ++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/app-pda/libplist/libplist-1.11-r1.ebuild b/app-pda/libplist/libplist-1.11-r1.ebuild new file mode 100644 index 0000000..2fa2438 --- /dev/null +++ b/app-pda/libplist/libplist-1.11-r1.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +# ac_python_devel.m4 is broken with python3 +PYTHON_COMPAT=( python2_7 ) +inherit python-single-r1 + +DESCRIPTION="Support library to deal with Apple Property Lists (Binary & XML)" +HOMEPAGE="http://www.libimobiledevice.org/" +SRC_URI="http://www.libimobiledevice.org/downloads/${P}.tar.bz2" + +LICENSE="GPL-2 LGPL-2.1" +SLOT="0/2" # based on SONAME of libplist.so +KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-fbsd" +IUSE="python static-libs" + +RDEPEND=">=dev-libs/libxml2-2.7.8" +DEPEND="${RDEPEND} + virtual/pkgconfig + python? ( + ${PYTHON_DEPS} + >=dev-python/cython-0.17[${PYTHON_USEDEP}] + )" + +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +DOCS=( AUTHORS NEWS README ) + +RESTRICT="test" # TODO: src_test() was dropped from 1.10 (cmake) -> 1.11 (autotools) + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_configure() { + local myeconfargs=( $(use_enable static-libs static) ) + use python || myeconfargs+=( --without-cython ) + + econf "${myeconfargs[@]}" +} + +src_compile() { + emake -j1 #406365 +} + +src_install() { + default + find "${D}" -name '*.la' -delete || die + + if use python; then + insinto /usr/include/plist/cython + doins cython/plist.pxd + fi +}