From owner-freebsd-ports@freebsd.org Thu Mar 10 11:20:20 2016 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 091FEACB574 for ; Thu, 10 Mar 2016 11:20:20 +0000 (UTC) (envelope-from koobs.freebsd@gmail.com) Received: from mail-pf0-x230.google.com (mail-pf0-x230.google.com [IPv6:2607:f8b0:400e:c00::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CBF2C206 for ; Thu, 10 Mar 2016 11:20:19 +0000 (UTC) (envelope-from koobs.freebsd@gmail.com) Received: by mail-pf0-x230.google.com with SMTP id 124so66953891pfg.0 for ; Thu, 10 Mar 2016 03:20:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:reply-to:subject:references:to:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=zibanSxBqG50yFQUreMlH+Q/d3sJxZeLLb8sScGEZEc=; b=vclALtDlnR2rC9R29dLOWNTQgG+p9hYfIprwEOoCl82GkD7BCoB3EMdJpYxe+YhAyE NfXP0bxvZ8YebxbPXA2UXWN284jFaltdqqmrzDLVRgKs3Af2tTi9iutHeaafO+A9QkQY AuNmwcCABbMj70bSM4gnNZSeEoPocl/gUjr1rd1nHbWVjLJL+Znr7T4wUhyB13q8Om3y z4DVZNx2WiHHefoKMSPyJy87Vqyu61IWHIVEuFlud9/0fpveFlTBjo2rrINU4vl+q4J5 aB6FwOjHypYRw4ZQ1kw7/KzwMlGkk6ShAY01NIAJIm9qdG9fpUafoioDUeqH/jUvSF+F wkNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:reply-to:subject:references:to:cc:from :message-id:date:user-agent:mime-version:in-reply-to :content-transfer-encoding; bh=zibanSxBqG50yFQUreMlH+Q/d3sJxZeLLb8sScGEZEc=; b=HQrki3nDZwJBqVVQrqArSCySAV7yQT8gPTutcT9cxB0pf9EtLlsdBr9q0dH+tFH1+1 4YuL9eKbxY81+VNEu73vyhH76ygCVSO5uuH1XSd4fLxQMhzd3t0vH60VikBUDm6NF5gx Mu0BoqJKL9y1mnSf2AxZ8ElcLUgOzIMrm1Tw5sPT5ed2cSEJ+s5K/OmE+ZW8HrYoDBCl nCzYnuCs0sO8cuxHj8a38GqY6hGVquZb+EnByNVbWaInS2+A3J0xN8mrNbAMdO8wfCKz gpiPFxIBZlmTK8osBTJvgZiUUE9UfgFk7BiXzsPhFJKtixBpJFAEZSq5haBZSPLfS0g5 eZTg== X-Gm-Message-State: AD7BkJIxi6c8QFEEx6RhtFH9gN5/LTPEIat8J5uOyZJArycpqST1Q8g/qAtsdA4MVhu4Qg== X-Received: by 10.98.67.195 with SMTP id l64mr4043247pfi.111.1457608819228; Thu, 10 Mar 2016 03:20:19 -0800 (PST) Received: from ?IPv6:2001:44b8:31ae:7b01:f0a0:a3b:7997:4322? (2001-44b8-31ae-7b01-f0a0-0a3b-7997-4322.static.ipv6.internode.on.net. [2001:44b8:31ae:7b01:f0a0:a3b:7997:4322]) by smtp.gmail.com with ESMTPSA id tp9sm4939977pab.14.2016.03.10.03.20.17 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 10 Mar 2016 03:20:18 -0800 (PST) Sender: Kubilay Kocak Reply-To: koobs@FreeBSD.org Subject: Re: library porting question - optional python bindings References: <66498ca1-8d3d-27b6-e035-bbb1ab24d556@FreeBSD.org> To: Chris Inacio Cc: freebsd-ports@freebsd.org From: Kubilay Kocak Message-ID: <4cc5182b-ea71-5354-bdbb-cca5ce7a6d77@FreeBSD.org> Date: Thu, 10 Mar 2016 22:20:08 +1100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Mar 2016 11:20:20 -0000 On 3/03/2016 3:34 AM, Chris Inacio wrote: > > > On Tue, Mar 1, 2016 at 8:57 PM, Kubilay Kocak > wrote: > > On 1/03/2016 1:38 PM, Chris Inacio wrote: > > All, > > > > I'm trying to build a port definition for a library/application that can > > optionally include Python bindings. The library/application generally > > depends on other C libraries to exist (ZMQ v3, Protobufs-C) and if you > > enable Python support, then you need a Python interpreter plus > > Python-protobufs & python zmq. > > > > Putting an OPTION of Python in the port file is easy. Including the > > optional Python dependencies (and presumably targets - but I'm not that far > > yet) seems to be a lot more complicated. I haven't found anything that > > would tell me how I'm supposed to do that. I have found that I'm supposed > > to add pyXX prefixes to the python targets. > > > > Does anyone know of a similar application/library that I can go look at? > > Is there any documentation on how to solve this? > > Package it separately if it: > > * Is listed on PyPI (.python.org ) > * Has value separate from the 'parent software' (on its own) > * Users might want it without the parent software > * Is pure python, OR > * Doesn't otherwise explicitly require depend on the parent software > > From the description above, given the dependencies of each of the > software components are different (main software, python package), I'd > go for separate packaging unless there's a good reason not to. > > > thanks, > > Chris Inacio > > > > I don't believe you can build the Python package without the > availability of the C library. > > The separate python port (and package) would LIB_DEPENDS on the C library port