ports/95538: [PATCH] devel/ruby-gems - introduce more variables in PLIST_SUB

Jonathan Weiss jw at innerewut.de
Sun Apr 9 11:20:13 UTC 2006


>Number:         95538
>Category:       ports
>Synopsis:       [PATCH] devel/ruby-gems - introduce more variables in PLIST_SUB
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Apr 09 11:20:11 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Jonathan Weiss
>Release:        6-STABLE
>Organization:
>Environment:
FreeBSD xxx.nodomain 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #0: Mon Mar 27 23:20:50 CEST 2006     root at xxx.nodomain:/usr/obj/usr/src/sys/SATAN  i386
>Description:
This patch introduces more variables in PLIST_SUB. This make plist updates nicer. Submitted by Akinori Musha.

>How-To-Repeat:

>Fix:
Install the patch from http://blog.innerewut.de/files/rails/rubygem.patch or inline:

Index: Makefile.common
===================================================================
RCS file: /home/pcvs/ports/devel/ruby-gems/Makefile.common,v
retrieving revision 1.3
diff -u -r1.3 Makefile.common
--- Makefile.common	16 Oct 2005 01:48:04 -0000	1.3
+++ Makefile.common	26 Mar 2006 18:31:24 -0000
@@ -20,15 +20,25 @@
 DOC_DIR=	${GEMS_BASE_DIR}/doc
 CACHE_DIR=	${GEMS_BASE_DIR}/cache
 SPEC_DIR=	${GEMS_BASE_DIR}/specifications
+GEM_NAME=	${PORTNAME}-${PORTVERSION}
+GEM_LIB_DIR=	${GEMS_DIR}/${GEM_NAME}
+GEM_DOC_DIR=	${DOC_DIR}/${GEM_NAME}
+GEM_SPEC=	${SPEC_DIR}/${GEM_NAME}.gemspec
+GEM_CACHE=	${CACHE_DIR}/${GEM_NAME}.gem
 
 PLIST_SUB+=	PORTVERSION="${PORTVERSION}" \
 		REV="${REV}" \
 		GEMS_BASE_DIR="lib/ruby/gems/${REV}" \
-		GEMS_DIR="${GEMS_BASE_DIR}/gems" \
-		DOC_DIR="${GEMS_BASE_DIR}/doc" \
-		CACHE_DIR="${GEMS_BASE_DIR}/cache" \
-		SPEC_DIR="${GEMS_BASE_DIR}/specifications" \
+		GEMS_DIR="${GEMS_DIR}" \
+		DOC_DIR="${DOC_DIR}" \
+		CACHE_DIR="${CACHE_DIR}" \
+		SPEC_DIR="${SPEC_DIR}" \
 		PORT="${PORTNAME}-${PORTVERSION}" \
+		GEM_NAME="${GEM_NAME}" \
+		GEM_LIB_DIR="${GEM_LIB_DIR}" \
+		GEM_DOC_DIR="${GEM_DOC_DIR}" \
+		GEM_SPEC="${GEM_SPEC}" \
+		GEM_CACHE="${GEM_CACHE}" \
 		EXTRACT_SUFX="${EXTRACT_SUFX}"
 
 RUBYGEMBIN=	${LOCALBASE}/bin/gem
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list