From owner-freebsd-ruby@FreeBSD.ORG Mon Sep 12 11:58:30 2011 Return-Path: Delivered-To: freebsd-ruby@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A03691065677; Mon, 12 Sep 2011 11:58:30 +0000 (UTC) (envelope-from freebsdlists-ruby@chillibear.com) Received: from mail.sundive.org (mail.sundive.org [212.13.197.214]) by mx1.freebsd.org (Postfix) with ESMTP id 612408FC13; Mon, 12 Sep 2011 11:58:30 +0000 (UTC) Received: from host81-130-74-232.in-addr.btopenworld.com ([81.130.74.232] helo=[172.16.1.16]) by sundive.org with esmtpsa (TLSv1:DES-CBC3-SHA:168) (Exim 4.72 (FreeBSD)) (envelope-from ) id 1R34e0-000IWe-9w; Mon, 12 Sep 2011 12:25:47 +0100 User-Agent: Microsoft-Entourage/12.30.0.110427 Date: Mon, 12 Sep 2011 12:24:04 +0100 From: Eric To: Tilman =?ISO-8859-1?B?S2Vza2lu9no=?= Message-ID: Thread-Topic: Patching gemspec file Thread-Index: AcxxPnpCzpVEGLCuUka+P2rycTrYzw== In-Reply-To: <4E6D2192.2090905@FreeBSD.org> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-Spam_score: -2.9 X-Spam_score_int: -28 X-Spam_bar: -- X-Spam: No X-bounce-key: sundive.org-1; freebsdlists-ruby@chillibear.com; 1315828803; 6d289eb6; Cc: freebsd-ruby@FreeBSD.org Subject: Re: Patching gemspec file X-BeenThere: freebsd-ruby@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Ruby discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Sep 2011 11:58:30 -0000 > I am trying to create a port from a gem which uses "=" to specify exact > versions of its dependencies, which of course don't match the versions > in the FreeBSD port. > > Is there a way to patch the gemspec file without copying the whole > bsd.ruby.mk into the port file or rolling out my custom gem? It's not a very clean solution, but you can 'patch' the gemspec in the 'post-install target' in your Makefile, see a previous post on this list: http://lists.freebsd.org/pipermail/freebsd-ruby/2011-June/001300.html Otherwise if the Gem actually works with more relaxed requirements that meet those in the current Ports tree I'd see if you can get the author to do a release with those relaxed requirements, I did this for the Larch gem (ports/158389). I would personally say this is the best solution to avoid cluttering the Ports tree with one off gems. You could always fork the gem as an alternative if the upstream development has ceased. Finally if the requirements are exact and you may need to port the specific versions of the gems you require into the Ports tree to sit alongside their 'new versions'. I did that when solving this PR: ports/147809, also see ports/150775 for the actual 'second' gem port. Regards Eric