Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Apr 2008 17:17:39 GMT
From:      bf <bf2006a@yahoo.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/122507: [PATCH]sysutils/ck4up: interim fix for new ruby world order
Message-ID:  <200804061717.m36HHdNs064060@www.freebsd.org>
Resent-Message-ID: <200804061720.m36HK2LC042248@freefall.freebsd.org>

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

>Number:         122507
>Category:       ports
>Synopsis:       [PATCH]sysutils/ck4up: interim fix for new ruby world order
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Apr 06 17:20:02 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     bf
>Release:        7-STABLE i386
>Organization:
-
>Environment:
>Description:
ck4up needs to be patched to use ruby 1.9.  In the meantime, require ruby 1.8 in the port Makefile and use RUBY_SHEBANG_FILES in lieu of patch-ck4up.rb.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -druN ck4up.orig/Makefile ck4up/Makefile
--- ck4up.orig/Makefile	2007-10-23 19:07:25.000000000 -0400
+++ ck4up/Makefile	2008-04-06 13:01:22.332743781 -0400
@@ -17,6 +17,9 @@
 
 NO_BUILD=	yes
 USE_RUBY=	yes
+RUBY_VER=	1.8
+RUBY_NO_BUILD_DEPENDS=	yes
+RUBY_SHEBANG_FILES=	ck4up.rb
 
 MAN1=		ck4up.1
 
@@ -24,7 +27,7 @@
 PLIST_FILES=	bin/ck4up %%EXAMPLESDIR%%/ck4up.conf
 
 post-patch:
-	${RUBY} -i -pe 'gsub /%%PREFIX%%/, "${PREFIX}"' ${WRKSRC}/*
+	@${REINPLACE_CMD} -e "s:%%PREFIX%%:${PREFIX}:g" ${WRKSRC}/*
 
 post-install:
 .if !defined(NOPORTDOCS)
diff -druN ck4up.orig/files/patch-ck4up.rb ck4up/files/patch-ck4up.rb
--- ck4up.orig/files/patch-ck4up.rb	2006-11-20 14:05:47.000000000 -0500
+++ ck4up/files/patch-ck4up.rb	1969-12-31 19:00:00.000000000 -0500
@@ -1,8 +0,0 @@
---- ck4up.rb.orig	Sun Nov 19 21:39:42 2006
-+++ ck4up.rb	Sun Nov 19 21:40:03 2006
-@@ -1,4 +1,4 @@
--#! /usr/bin/ruby
-+#! %%PREFIX%%/bin/ruby
- #
- # ck4up
- # 


>Release-Note:
>Audit-Trail:
>Unformatted:



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