Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Mar 2007 17:38:39 +0900 (YAKT)
From:      Alexander Logvinov <ports@logvinov.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        Alexander Logvinov <ports@logvinov.com>, Jonathan Weiss <jw@innerewut.de>
Subject:   ports/109711: [PATCH] devel/ruby-gems: respect DISTFILES in Makefile.common
Message-ID:  <200703010838.l218cdqs035133@blg.akavia.ru>
Resent-Message-ID: <200703010840.l218e3VP090226@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         109711
>Category:       ports
>Synopsis:       [PATCH] devel/ruby-gems: respect DISTFILES in Makefile.common
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 01 08:40:03 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Alexander Logvinov
>Release:        FreeBSD 6.2-RELEASE-p1
>Organization:
>Environment:

>Description:

  This patch allows to use more than one gem file in rubygems port by defining DISTFILES.
  It was tested on many rubygems port on local tinderbox.
  
>How-To-Repeat:

>Fix:

Index: Makefile.common
===================================================================
RCS file: /home/pcvs/ports/devel/ruby-gems/Makefile.common,v
retrieving revision 1.7
diff -u -r1.7 Makefile.common
--- Makefile.common	29 Nov 2006 03:42:09 -0000	1.7
+++ Makefile.common	1 Mar 2007 08:12:27 -0000
@@ -41,5 +41,13 @@
 
 RUBYGEMBIN=	${LOCALBASE}/bin/gem
 
+.if defined(DISTFILES)
+GEMFILES=	${DISTFILES}
+.else
+GEMFILES=	${DISTNAME}${EXTRACT_SUFX}
+.endif
+
 do-install:
-	${RUBYGEMBIN} install --no-ri --install-dir ${PREFIX}/lib/ruby/gems/${REV} ${DISTDIR}/${DIST_SUBDIR}/${DISTNAME}${EXTRACT_SUFX}
+.for _D in ${GEMFILES}
+	${RUBYGEMBIN} install --no-ri --install-dir ${PREFIX}/lib/ruby/gems/${REV} ${DISTDIR}/${DIST_SUBDIR}/${_D}
+.endfor
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200703010838.l218cdqs035133>