From owner-freebsd-ruby@FreeBSD.ORG Mon Aug 1 07:40:58 2011 Return-Path: Delivered-To: ruby@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ECB531065673; Mon, 1 Aug 2011 07:40:58 +0000 (UTC) (envelope-from stas@FreeBSD.org) Received: from mx0.deglitch.com (cl-414.sto-01.se.sixxs.net [IPv6:2001:16d8:ff00:19d::2]) by mx1.freebsd.org (Postfix) with ESMTP id 9938A8FC1A; Mon, 1 Aug 2011 07:40:58 +0000 (UTC) Received: from orion.SpringDaemons.com (c-76-102-119-9.hsd1.ca.comcast.net [76.102.119.9]) by mx0.deglitch.com (Postfix) with ESMTPA id 2304D8FC2D; Mon, 1 Aug 2011 11:40:57 +0400 (MSD) Received: from orion (localhost [127.0.0.1]) by orion.SpringDaemons.com (Postfix) with SMTP id 933843A718; Mon, 1 Aug 2011 00:41:06 -0700 (PDT) Date: Mon, 1 Aug 2011 00:41:06 -0700 From: Stanislav Sedov To: Ryan Steinmetz Message-Id: <20110801004106.59d85685.stas@FreeBSD.org> In-Reply-To: <20110731195800.GA39128@fast.rit.edu> References: <20110731023007.GA57933@fast.rit.edu> <20110731114103.302d0cee.stas@FreeBSD.org> <20110731195800.GA39128@fast.rit.edu> Organization: The FreeBSD Project X-Mailer: carrier-pigeon Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: linimon@FreeBSD.org, swills@FreeBSD.org, wxs@FreeBSD.org, Renato Botelho , ruby@FreeBSD.org, tabthorpe@FreeBSD.org, decke@FreeBSD.org Subject: Re: RFC: Replacing graphics/ruby-rmagick with graphics/rubygem-rmagick 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, 01 Aug 2011 07:40:59 -0000 On Sun, 31 Jul 2011 15:58:00 -0400 Ryan Steinmetz mentioned: > > Perhaps the attached shar(1) meets the needs of both? > > I compared the locations of the files that ruby-rmagick installs with the gem and > simply generate symlinks to fill in the gaps. > > The end result is that the rubygem port should be able to meet the needs > of both. > -require rmagick should work > -rmagick is registered as a gem and available to other gems > > If others agree on the tactic, it's possible that we could incorporate > the concept into bsd.ruby.mk and automatically enable it via a knob. > Then, simply convert everything else to use the rubygems framework. > Thanks, his looks like one of possible solutions. I'm not sure we will be able to propagate something like this into the bsd.ruby.mk though, as it might not be always clear which files to symlink where. There's another problem with gems though -- the lack of customisability. If we convert rmagick to gem, we won't be able to apply custom patches to it, or it will be extremely difficult. E.g. right now we apply some patches to accomodate our ImageMagick version and to make ruby-rmagick port PREFIX clean (that is that it will install into any prefix, even different from where the ruby port was installed). How would we handle this with the gem version (or any other problems we'll need to fix) -- I don't know. Is there any way we can patch this snorby to pick up the rmagick version installed from ports instead of querying the gem database? -- Stanislav Sedov ST4096-RIPE () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments