[PATCH] devel/rubygem-json*: Fix ruby-iconv dependency

TAKATSU Tomonari tota at freebsd.org
Fri Nov 4 19:37:21 UTC 2011


>Submitter-Id:	current-users
>Originator:	TAKATSU Tomonari
>Organization:	none (private)
>Confidential:	no 
>Synopsis:	[PATCH] devel/rubygem-json*: Fix ruby-iconv dependency
>Severity:	non-critical
>Priority:	low
>Category:	ports 
>Class:		change-request
>Release:	FreeBSD 8.2-RELEASE-p3 amd64
>Environment:
System: FreeBSD photon.local.lan 8.2-RELEASE-p3 FreeBSD 8.2-RELEASE-p3 #0: Tue Sep 27 18:45:57 UTC 2011
>Description:
- Fix ruby-iconv dependency because USE_RUBY_FEATURES is not
  available after "pre-makefile section"

I notice this issue while we discuss ports/162269.

Port maintainer (ruby at FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:

--- rubygem-json-1.6.1_1.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/devel/rubygem-json/Makefile,v
retrieving revision 1.22
diff -u -r1.22 Makefile
--- Makefile	27 Oct 2011 03:02:49 -0000	1.22
+++ Makefile	3 Nov 2011 21:48:17 -0000
@@ -20,7 +20,8 @@
 .include <bsd.port.pre.mk>
 
 .if ${RUBY_VER} < 1.9
-USE_RUBY_FEATURES=	iconv
+BUILD_DEPENDS+=	${DEPEND_RUBY_ICONV}
+RUN_DEPENDS+=	${DEPEND_RUBY_ICONV}
 .endif
 
 .include <bsd.port.post.mk>
--- rubygem-json-1.6.1_1.patch ends here ---


--- rubygem-json_pure-1.6.1_1.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/devel/rubygem-json_pure/Makefile,v
retrieving revision 1.16
diff -u -r1.16 Makefile
--- Makefile	27 Oct 2011 03:02:49 -0000	1.16
+++ Makefile	4 Nov 2011 19:20:14 -0000
@@ -7,6 +7,7 @@
 
 PORTNAME=	json_pure
 PORTVERSION=	1.6.1
+PORTREVISION=	1
 CATEGORIES=	devel rubygems
 MASTER_SITES=	RG
 
@@ -22,7 +23,8 @@
 .include <bsd.port.pre.mk>
 
 .if ${RUBY_VER} < 1.9
-USE_RUBY_FEATURES=	iconv
+BUILD_DEPENDS+=         ${DEPEND_RUBY_ICONV}
+RUN_DEPENDS+=           ${DEPEND_RUBY_ICONV}
 .endif
 
 .include <bsd.port.post.mk>
--- rubygem-json_pure-1.6.1_1.patch ends here ---



More information about the freebsd-ruby mailing list