From owner-freebsd-ports@FreeBSD.ORG Mon May 14 17:40:43 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6502F1065673; Mon, 14 May 2012 17:40:43 +0000 (UTC) (envelope-from fernando.apesteguia@gmail.com) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com [209.85.217.182]) by mx1.freebsd.org (Postfix) with ESMTP id AC5DC8FC15; Mon, 14 May 2012 17:40:42 +0000 (UTC) Received: by lbon10 with SMTP id n10so4873973lbo.13 for ; Mon, 14 May 2012 10:40:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=pr3nuJGiv98nPnyrsPXheB/nLjoXQHQxQZ8tV393xSc=; b=H5MoWg3aS0PhvQAz/uBN/9g0gc0QHQhhLZdPYMMuYlCfh7DjvKkG7GLmFyoZUz5ncK SIAmg1A3enApXwsh2gR6r6pQJPUsk+9D9wfjLhExD1qSnDi6aTUXU7RD+CPQLA57Ez66 NvafofYH7lKMJ5bsLxwjPjdMWO8fUMf1xsrM3wF7uB4ZAx1CsKyjR9xiyv7QnIFJK9I9 +hqcWAX2bLqmoDLDrRx/OwgVSYLE2rdUOQ9ErB58O8tsaqfOoyB6D7JNg2fgMHTmZ1go leImh0/7lJpQ9oA9YDoPDQK1mdEvgmjBduE+TlN7x3W2BXW15DOjAaJUeSM+pKYkAQp9 SYuw== MIME-Version: 1.0 Received: by 10.152.146.163 with SMTP id td3mr9142977lab.25.1337017241498; Mon, 14 May 2012 10:40:41 -0700 (PDT) Received: by 10.152.24.131 with HTTP; Mon, 14 May 2012 10:40:41 -0700 (PDT) In-Reply-To: References: Date: Mon, 14 May 2012 19:40:41 +0200 Message-ID: From: =?ISO-8859-1?Q?Fernando_Apestegu=EDa?= To: Chris Rees Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-ports@freebsd.org Subject: Re: On file installation X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2012 17:40:43 -0000 On Mon, May 14, 2012 at 7:31 PM, Chris Rees wrote: > On 14 May 2012 18:23, Fernando Apestegu=EDa wrote: >> Hi, >> >> I'm working on a port for an application written in Java and I'm >> having some problems deciding how to install the application. >> Previous to the installation, the WRKSRC directory contains some .jar >> files and some directories along with some .txt files for >> licenses, but also some .exe and .bat files _which I don't want to >> install_. It is basically a package that contains both files for >> windows and non-windows systems. >> >> I was thinking on using COPYTREE_SHARE to install everything and then >> remove the non necessary files, but doesn't look like >> an elegant solution. Also, I wouldn't like to explicitly specify every >> one of the files I want to copy. Is there a way of using something >> similar to bash's extglob so I can copy !(*.exe|*bat)? If not, how to pr= oceed? >> >> I already looked at the existent ports to find something similar but >> it seems hard to find. I also had a look at bsd.port.mk but >> I couldn't find what I'm looking for. > > You can use find primaries with COPYTREE_SHARE such as; > > (cd ${WRKSRC}/wherever && ${COPYTREE_SHARE} \* > ${JAVALIBDIR}/${PORTNAME}/wherever "-not -name \*.exe -and -not -name > \*.bat" Thanks! I think that is what I was looking for :) I'll give it a try. > > Chris