Date: Tue, 19 Apr 2011 21:33:07 GMT From: Eric Freeman <freebsdports@chillibear.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/156505: [PATCH] graphics/ruby-imlib2 (patch to enable compiling with RUBY_VER 1.9) Message-ID: <201104192133.p3JLX78i017995@red.freebsd.org> Resent-Message-ID: <201104192140.p3JLe9dZ010478@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 156505 >Category: ports >Synopsis: [PATCH] graphics/ruby-imlib2 (patch to enable compiling with RUBY_VER 1.9) >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: Tue Apr 19 21:40:09 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Eric Freeman >Release: 8.2 >Organization: >Environment: FreeBSD BSD8R.local 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Thu Feb 17 02:41:51 UTC 2011 root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 >Description: graphics/ruby-imlib2 does not currently compile with Ruby 1.9+ This is a simple patch to enable it work under Ruby 1.9+ >How-To-Repeat: install ruby 1.9 cd /usr/ports/graphics/ruby-imlib2 && make build RUBY_VER=1.9 fails >Fix: diff -ru ruby-imlib2.orig/Makefile ruby-imlib2/Makefile --- ruby-imlib2.orig/Makefile 2011-04-18 12:13:16.000000000 +0100 +++ ruby-imlib2/Makefile 2011-04-18 12:29:36.000000000 +0100 @@ -30,6 +30,9 @@ PORTDOCS= * .endif +post-patch: + ${REINPLACE_CMD} -E -e 's|RSTRING\(([^)]+)\)->len|RSTRING_LEN(\1)|g' ${WRKSRC}/imlib2.c + post-install: .if !defined(NOPORTDOCS) ${MKDIR} ${RUBY_MODDOCDIR} >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201104192133.p3JLX78i017995>