Date: Wed, 30 Aug 2006 01:22:24 +0400 (MSD) From: Stanislav Sedov <ssedov@mbsd.msk.ru> To: FreeBSD-gnats-submit@FreeBSD.org Cc: knu@FreeBSD.org Subject: ports/102663: [PATCH]: lang/ruby18 small fix to allow painless PREFIX-clean ruby ports creation Message-ID: <20060829212224.377AA11B6A@fonon.realnet> Resent-Message-ID: <200608292130.k7TLUMCo012886@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 102663 >Category: ports >Synopsis: [PATCH]: lang/ruby18 small fix to allow painless PREFIX-clean ruby ports creation >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Aug 29 21:30:21 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Stanislav Sedov >Release: FreeBSD 7.0-CURRENT i386 >Organization: MBSD labs, Inc. >Environment: System: FreeBSD fonon.realnet 7.0-CURRENT FreeBSD 7.0-CURRENT #1: Wed Aug 2 21:44:37 MSD 2006 root@fonon.realnet:/work/src/fbsd-cur/src/sys/i386/compile/FONON i386 >Description: - Most ruby ports obtain information about prefix from rbconfig.rb. Patch it to return patch with correct PREFIX if PREFIX was specifies in enviropment. It will not interfere with current ruby ports as all of them gets installed into LOCALBASE currently by default (and none of them are PREFIX-clean). - Bump-up PORTREVISION this PR depends on ports/102648 >How-To-Repeat: >Fix: --- ruby1811.diff begins here --- diff -ruN ruby18.orig/Makefile ruby18/Makefile --- ruby18.orig/Makefile Wed Aug 30 00:56:22 2006 +++ ruby18/Makefile Wed Aug 30 01:10:04 2006 @@ -7,7 +7,7 @@ PORTNAME= ruby PORTVERSION= ${RUBY_PORTVERSION} -PORTREVISION= 1 +PORTREVISION= 2 PORTEPOCH= 1 CATEGORIES= lang ruby ipv6 MASTER_SITES= ${MASTER_SITE_RUBY} @@ -154,6 +154,10 @@ ${MAKE} -f Makefile ${RUBY_VER:S/.//} RUBYDIR=${WRKSRC} .endif ${TOUCH} ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} + +post-build: + @${REINPLACE_CMD} -E -e \ + "s,(CONFIG\[\"prefix\"\][[:space:]]*=[[:space:]]*\()(.*),\1ENV\['PREFIX'\] || \2," ${WRKSRC}/rbconfig.rb post-install: # --- ruby1811.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060829212224.377AA11B6A>