Date: Mon, 23 Apr 2007 13:31:19 +0800 From: Cheng-Lung Sung <clsung@tw.freebsd.org> To: Konstantin Saurbier <saurbier@math.uni-bielefeld.de>, jw@innerewut.de Cc: freebsd-ports@FreeBSD.org Subject: Re: ports/111811: [NEW PORT] net/ruby-rrdtool: A Ruby interface to rrdtool Message-ID: <20070423053119.GA14635@FreeBSD.csie.nctu.edu.tw> In-Reply-To: <F7AB5688-2C4C-4340-8D8C-55D32927444D@math.uni-bielefeld.de> References: <20070418083307.ED2CB4AC1A@xdf02.math.uni-bielefeld.de> <20070419040231.GA87134@FreeBSD.csie.nctu.edu.tw> <E9717F35-18EE-4337-8DEB-7D98B3F59F7D@math.uni-bielefeld.de> <F7AB5688-2C4C-4340-8D8C-55D32927444D@math.uni-bielefeld.de>
next in thread | previous in thread | raw e-mail | index | archive | help
--M9NhX3UHpAaciwkO Content-Type: text/plain; charset=big5 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Jonathan, Is it possible to put ${SETENV} ${GEM_ENV} before ${RUBYGEMBIN}? Since Konstantin's new port required passing=20 MAKEFLAGS=3D"CPPFLAGS=3D-I/${LOCALBASE}/include" to the gem build/install environment. Regards, =3D=3D=3D begin =3D=3D=3D 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 @@ =20 do-install: =2Efor _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} =2Eendfor =3D=3D=3D end =3D=3D=3D On Fri, Apr 20, 2007 at 05:23:10PM +0200, Konstantin Saurbier wrote: >=20 > Am 19.04.2007 um 12:25 schrieb Konstantin Saurbier: >=20 > > > > 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 doe= sn't > > add the -I /usr/local/include option. > > If you know how to fix this, I will change this port to rubygem-rrdtool. >=20 > I have changed the port to rubygem, but I had to change the gem call in > devel/rub-gems/Makefile.common. Instead of >=20 > ${RUBYGEMBIN} install --no-ri --install-dir ${PREFIX}/lib/ruby/gems/${RE= V}=20 > ${DISTDIR}/${DIST_SUBDIR}/${_D} >=20 > I needed >=20 > ${GEM_ENV} ${RUBYGEMBIN} install --no-ri --install-dir ${PREFIX}/lib/rub > y/gems/${REV} ${DISTDIR}/${DIST_SUBDIR}/${_D} >=20 > Now I can set >=20 > GEM_ENV=3D MAKEFLAGS=3D"CPPFLAGS=3D-I/usr/local/include" >=20 > 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=20 > 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=3D/usr/l= ocal=20 > to > the ruby extconf.rb call. >=20 --=20 Alan Cheng-Lung Sung - clsung@ --M9NhX3UHpAaciwkO Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGLESm+AeJ85Vui8ERApg8AKCUHkugXT5/Nzi5kS0UCr0xAPY0bgCgia2K qzAQWiZUjIZENM+i3F00vFY= =rPtG -----END PGP SIGNATURE----- --M9NhX3UHpAaciwkO--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070423053119.GA14635>