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 F0AEB1382C5 for ; Mon, 8 Jun 2020 13:41:52 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 90A08E0916; Mon, 8 Jun 2020 13:41:48 +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 5BB90E0916 for ; Mon, 8 Jun 2020 13:41:48 +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 9E95F34F3AD for ; Mon, 8 Jun 2020 13:41:46 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 748D629A for ; Mon, 8 Jun 2020 13:41:43 +0000 (UTC) From: "Joonas Niilola" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Joonas Niilola" Message-ID: <1591623686.4fbac5723b8b8d6ad207b7a41b343e861f7e8490.juippis@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/pacparser/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-libs/pacparser/pacparser-1.3.7-r1.ebuild X-VCS-Directories: net-libs/pacparser/ X-VCS-Committer: juippis X-VCS-Committer-Name: Joonas Niilola X-VCS-Revision: 4fbac5723b8b8d6ad207b7a41b343e861f7e8490 X-VCS-Branch: master Date: Mon, 8 Jun 2020 13:41:43 +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: 861babb6-e401-4c5e-80f7-0cf757b834a4 X-Archives-Hash: 344e7a3c0dacf48ad9c6f97e917bdce7 commit: 4fbac5723b8b8d6ad207b7a41b343e861f7e8490 Author: Henning Schild hennsch de> AuthorDate: Wed May 13 05:59:57 2020 +0000 Commit: Joonas Niilola gentoo org> CommitDate: Mon Jun 8 13:41:26 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4fbac572 net-libs/pacparser: Support newer python, python_optimize and "make -j" Add python3_7, that simply works. Add python_optimize calls to fix a QA issue. And call emake twice to work around parrallel build issue. Signed-off-by: Henning Schild hennsch.de> Closes: https://github.com/gentoo/gentoo/pull/15773 Signed-off-by: Joonas Niilola gentoo.org> net-libs/pacparser/pacparser-1.3.7-r1.ebuild | 65 ++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/net-libs/pacparser/pacparser-1.3.7-r1.ebuild b/net-libs/pacparser/pacparser-1.3.7-r1.ebuild new file mode 100644 index 00000000000..af0525e5b47 --- /dev/null +++ b/net-libs/pacparser/pacparser-1.3.7-r1.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python3_{6,7} ) + +inherit eutils python-r1 toolchain-funcs + +DESCRIPTION="Library to parse proxy auto-config files" +HOMEPAGE="http://pacparser.manugarg.com/" +SRC_URI="https://github.com/pacparser/${PN}/releases/download/${PV}/${P}.tar.gz" + +LICENSE="LGPL-3" +SLOT="0/1" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="doc python" + +DEPEND="python? ( ${PYTHON_DEPS} )" +RDEPEND="${DEPEND}" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +# spidermonkey-1.7.0 is bundled +# tested unbundling with spidermonkey-1.8* and 1.7 +# and got many failures : unbundling not worth. + +src_prepare() { + default + sed -e 's|CFLAGS = |CFLAGS := $(CFLAGS) |' \ + -e 's|= $(PREFIX)|:= $(PREFIX)|g' \ + -e "s|share/doc.*pacparser|share/doc/${PF}|g" \ + -e "s|/lib|/$(get_libdir)|g" \ + -i src/Makefile || die + export NO_INTERNET=yes + tc-export CC AR RANLIB +} + +src_compile() { + emake -C src spidermonkey/js/src + sed -e '/CC = gcc/d' \ + -i src/spidermonkey/js/src/config/Linux_All.mk || die + # Upstream parallel compilation bug, do that first to work around + emake -C src/spidermonkey + emake -C src + use python && python_foreach_impl emake -C src pymod +} + +src_test() { + emake -C src testpactester +} + +src_install() { + emake DESTDIR="${ED}" LIB_PREFIX="${ED}/usr/$(get_libdir)" -C src install + dodoc README.md + if use python; then + python_foreach_impl emake DESTDIR="${D}" \ + LIB_PREFIX="${D}/usr/$(get_libdir)" -C src install-pymod + python_foreach_impl python_optimize + fi + if use doc; then + docompress -x /usr/share/doc/${PF}/{html,examples} + else + rm -r "${ED}"/usr/share/doc/${PF}/{html,examples} || die + fi +}