From owner-freebsd-ports@freebsd.org Thu Nov 9 16:46:21 2017 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 B3F2CE55929 for ; Thu, 9 Nov 2017 16:46:21 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id A3A876EC2A for ; Thu, 9 Nov 2017 16:46:21 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id A01D7E55928; Thu, 9 Nov 2017 16:46:21 +0000 (UTC) Delivered-To: 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 9E0E5E55927 for ; Thu, 9 Nov 2017 16:46:21 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 758166EC29; Thu, 9 Nov 2017 16:46:21 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: by freefall.freebsd.org (Postfix, from userid 1354) id C671994CF; Thu, 9 Nov 2017 16:46:20 +0000 (UTC) From: Jan Beich To: Gleb Popov <6yearold@gmail.com> Cc: "ports\@FreeBSD.org" Subject: Re: Using lua and luajit. References: Date: Thu, 09 Nov 2017 17:46:10 +0100 Message-ID: <375n-bdt9-wny@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Nov 2017 16:46:21 -0000 Gleb Popov <6yearold@gmail.com> writes: > Another question is how to handle lua packages that can work with different > lua versions (like py27- and py36- ports, for instance). The example of > such port is devel/lua-Penlight, as you can see it is basically a bunch of > .lua files, which I decided to install everything into lua/5.1/ subdir. > What's proper way to handle this? I've used PKGNAMEPREFIX=${LUA_PKGNAMEPREFIX} + USES=uniquefiles:dirs in my effort to port Torch7 a few years ago. Maybe you can salvage some bits. https://github.com/jbeich/freebsd-ports/blob/torch/devel/lua-penlight/Makefile