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 A5EE8138359 for ; Sun, 2 Aug 2020 15:07:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A1EF3E0C2A; Sun, 2 Aug 2020 15:07:04 +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 25F75E0C2A for ; Sun, 2 Aug 2020 15:07:04 +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 739A234F0E9 for ; Sun, 2 Aug 2020 15:07:02 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E44932E7 for ; Sun, 2 Aug 2020 15:07:00 +0000 (UTC) From: "Jeroen Roovers" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jeroen Roovers" Message-ID: <1596380815.69148bea9bf3a7877ae74e2662b47e47b151f5d0.jer@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libdnet/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/libdnet/libdnet-9999.ebuild X-VCS-Directories: dev-libs/libdnet/ X-VCS-Committer: jer X-VCS-Committer-Name: Jeroen Roovers X-VCS-Revision: 69148bea9bf3a7877ae74e2662b47e47b151f5d0 X-VCS-Branch: master Date: Sun, 2 Aug 2020 15:07:00 +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: e0c5b8a6-618c-4adc-9654-05e3b4d7020a X-Archives-Hash: b52665a5fa173273995c86a357a84fba commit: 69148bea9bf3a7877ae74e2662b47e47b151f5d0 Author: Jeroen Roovers gentoo org> AuthorDate: Sun Aug 2 14:43:48 2020 +0000 Commit: Jeroen Roovers gentoo org> CommitDate: Sun Aug 2 15:06:55 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=69148bea dev-libs/libdnet: Add live ebuild Package-Manager: Portage-3.0.1, Repoman-2.3.23 Signed-off-by: Jeroen Roovers gentoo.org> dev-libs/libdnet/libdnet-9999.ebuild | 73 ++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) diff --git a/dev-libs/libdnet/libdnet-9999.ebuild b/dev-libs/libdnet/libdnet-9999.ebuild new file mode 100644 index 00000000000..3878f74646e --- /dev/null +++ b/dev-libs/libdnet/libdnet-9999.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +AT_M4DIR="config" +PYTHON_COMPAT=( python3_{6,7,8} ) +DISTUTILS_OPTIONAL=1 +inherit autotools distutils-r1 git-r3 + +DESCRIPTION="simplified, portable interface to several low-level networking routines" +HOMEPAGE="https://github.com/ofalk/libdnet" +EGIT_REPO_URI="https://github.com/ofalk/libdnet" +LICENSE="LGPL-2" + +SLOT="0" +KEYWORDS="" +IUSE="python static-libs test" + +DEPEND=" + python? ( ${PYTHON_DEPS} ) +" +RDEPEND=" + ${DEPEND} +" +RESTRICT="test" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" +DOCS=( README.md THANKS TODO ) + +src_prepare() { + default + + sed -i \ + -e 's/libcheck.a/libcheck.so/g' \ + -e 's|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|g' \ + configure.ac || die + sed -i \ + -e 's|-L$libdir ||g' \ + dnet-config.in || die + sed -i \ + -e '/^SUBDIRS/s|python||g' \ + Makefile.am || die + + eautoreconf + + if use python; then + cd python + distutils-r1_src_prepare + fi +} + +src_configure() { + econf \ + $(use_with python) \ + $(use_enable static-libs static) +} + +src_compile() { + default + if use python; then + cd python + distutils-r1_src_compile + fi +} + +src_install() { + default + if use python; then + cd python + unset DOCS + distutils-r1_src_install + fi + find "${D}" -name '*.la' -delete || die +}