ports/109711: [PATCH] devel/ruby-gems: respect DISTFILES in Makefile.common
Alexander Logvinov
ports at logvinov.com
Thu Mar 1 08:40:04 UTC 2007
>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:
More information about the freebsd-ports-bugs
mailing list