From owner-freebsd-ports@freebsd.org Sun Dec 29 18:23:03 2019 Return-Path: Delivered-To: freebsd-ports@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1B5551E60EE for ; Sun, 29 Dec 2019 18:23:03 +0000 (UTC) (envelope-from pi@opsec.eu) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 47m87V542Mz3xJf for ; Sun, 29 Dec 2019 18:23:02 +0000 (UTC) (envelope-from pi@opsec.eu) Received: by mailman.nyi.freebsd.org (Postfix) id ADDC41E60ED; Sun, 29 Dec 2019 18:23:02 +0000 (UTC) Delivered-To: ports@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id ADA101E60EB for ; Sun, 29 Dec 2019 18:23:02 +0000 (UTC) (envelope-from pi@opsec.eu) Received: from home.opsec.eu (home.opsec.eu [IPv6:2001:14f8:200::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 47m87T4YDgz3xJd for ; Sun, 29 Dec 2019 18:23:01 +0000 (UTC) (envelope-from pi@opsec.eu) Received: from pi by home.opsec.eu with local (Exim 4.92.3 (FreeBSD)) (envelope-from ) id 1ildDG-0005UG-9n; Sun, 29 Dec 2019 19:22:50 +0100 Date: Sun, 29 Dec 2019 19:22:50 +0100 From: Kurt Jaeger To: Andrea Venturoli Cc: ports@freebsd.org Subject: Re: Help with porting Python libraries Message-ID: <20191229182250.GA87956@home.opsec.eu> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 47m87T4YDgz3xJd X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of pi@opsec.eu designates 2001:14f8:200::1 as permitted sender) smtp.mailfrom=pi@opsec.eu X-Spamd-Result: default: False [-5.55 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[opsec.eu]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; IP_SCORE(-3.25)[ip: (-8.45), ipnet: 2001:14f8::/32(-4.48), asn: 12502(-3.33), country: DE(-0.02)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:12502, ipnet:2001:14f8::/32, country:DE]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Dec 2019 18:23:03 -0000 Hi! > I've got a system where I had to install a few Python libraries with pip, > but I don't like this, since pkg info will not list them. > > Thus I'm trying to port them, but I never ported Python libraries before; > so, before I submit my work, I thought I'd ask if someone more > experienced than me might have a look at it. > My first attempt was at IMAPClient: I copied another port (net/py-GeoIP2) > and modified it; this is the Makefile I came up with. [...] Thanks. If you test it with portlint -AC and re-arrange a few lines, portlint will report 'looks fine.' A testbuild with poudriere worked fine. USES before the rest of the lines, and it's silent: USES= python USE_GITHUB= yes USE_PYTHON= autoplist distutils GH_ACCOUNT= mjs GH_PROJECT= imapclient NO_ARCH= yes -- pi@opsec.eu +49 171 3101372 One year to go !