ports/111811: [NEW PORT] net/ruby-rrdtool: A Ruby interface to rrdtool

Cheng-Lung Sung clsung at tw.freebsd.org
Mon Apr 23 05:46:02 UTC 2007


Hi Jonathan,

   Is it possible to put ${SETENV} ${GEM_ENV} before ${RUBYGEMBIN}?
   Since Konstantin's new port required passing 

   MAKEFLAGS="CPPFLAGS=-I/${LOCALBASE}/include"

   to the gem build/install environment.

Regards,

=== begin ===
RCS file: /home/pcvs/ports/devel/ruby-gems/Makefile.common,v
retrieving revision 1.8
diff -u -r1.8 Makefile.common
--- devel/ruby-gems/Makefile.common 9 Mar 2007 03:16:12 -0000  1.8
+++ devel/ruby-gems/Makefile.common 23 Apr 2007 05:26:43 -0000
@@ -49,5 +49,5 @@
 
do-install:
.for _D in ${GEMFILES}
- ${RUBYGEMBIN} install --no-ri --install-dir ${PREFIX}/lib/ruby/gems/${REV} ${DISTDIR}/${DIST_SUBDIR}/${_D}
+ ${SETENV} ${GEM_ENV} ${RUBYGEMBIN} install --no-ri --install-dir ${PREFIX}/lib/ruby/gems/${REV} ${DISTDIR}/${DIST_SUBDIR}/${_D}
.endfor

=== end ===

On Fri, Apr 20, 2007 at 05:23:10PM +0200, Konstantin Saurbier wrote:
> 
>  Am 19.04.2007 um 12:25 schrieb Konstantin Saurbier:
> 
> >
> > Am 19.04.2007 um 06:02 schrieb Cheng-Lung Sung:
> >
> >> Hi,
> >> 	How about make it as rubygem-rrdtool? Since it depends on
> >> 	rubygem-hoe, and rubyforge also provide RubyRRDtool-0.6.0.gem.
> >
> > I have tried it, but I don't know how to change the include-path for cc.
> > This port needs to include the /usr/local/include/rrd.h but rubygem doesn't
> > add the -I /usr/local/include option.
> > If you know how to fix this, I will change this port to rubygem-rrdtool.
> 
>  I have changed the port to rubygem, but I had to change the gem call in
>  devel/rub-gems/Makefile.common. Instead of
> 
>  ${RUBYGEMBIN} install --no-ri --install-dir ${PREFIX}/lib/ruby/gems/${REV} 
>  ${DISTDIR}/${DIST_SUBDIR}/${_D}
> 
>  I needed
> 
>  ${GEM_ENV}  ${RUBYGEMBIN} install --no-ri --install-dir ${PREFIX}/lib/rub
>  y/gems/${REV} ${DISTDIR}/${DIST_SUBDIR}/${_D}
> 
>  Now I can set
> 
>  GEM_ENV=        MAKEFLAGS="CPPFLAGS=-I/usr/local/include"
> 
>  in my port and the compilation of rubyrrdtool will succeed.
>  I will send the fixed port in a few minutes, after i have created the 
>  appropriate
>  pkg-plist.
>  Maybe you can tell me a better way to add the -I/usr/local/include flag to
>  make resp. cc. Without gem it is possible to add --with-opt-dir=/usr/local 
>  to
>  the ruby extconf.rb call.
> 


-- 
Alan Cheng-Lung Sung - clsung@
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20070423/5d175ff3/attachment.pgp


More information about the freebsd-ports mailing list