Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Feb 2013 06:21:30 -0600
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        Steve Wills <swills@FreeBSD.org>
Cc:        svn-ports-head@freebsd.org, svn-ports-all@freebsd.org, ports-committers@freebsd.org
Subject:   Re: svn commit: r312861 - head/Mk
Message-ID:  <512A05CA.2090200@FreeBSD.org>
In-Reply-To: <201302240602.r1O6267A014644@svn.freebsd.org>
References:  <201302240602.r1O6267A014644@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
------enig2WGCRSVAHXDGHHMIJBNFW
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On 2/24/2013 12:02 AM, Steve Wills wrote:
> Author: swills
> Date: Sun Feb 24 06:02:06 2013
> New Revision: 312861
> URL: http://svnweb.freebsd.org/changeset/ports/312861
>=20
> Log:
>   - Add ability to patch rubygem- ports

Thanks! Maybe this will let us patch away those hard dependencies and
make porting these easier.

>=20
> Modified:
>   head/Mk/bsd.ruby.mk
>=20
> Modified: head/Mk/bsd.ruby.mk
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D
> --- head/Mk/bsd.ruby.mk	Sun Feb 24 02:21:00 2013	(r312860)
> +++ head/Mk/bsd.ruby.mk	Sun Feb 24 06:02:06 2013	(r312861)
> @@ -203,6 +203,8 @@ RUBY_DISTVERSION?=3D	${RUBY_RELVERSION}-p$
> =20
>  RUBY_WRKSRC=3D		${WRKDIR}/ruby-${RUBY_DISTVERSION}
> =20
> +GEM_ENV?=3D		LC_CTYPE=3DUTF-8
> +
>  RUBY_CONFIGURE_ARGS+=3D	--with-rubyhdrdir=3D"${PREFIX}/include/ruby-1.=
9/" \
>  			--with-rubylibprefix=3D"${PREFIX}/lib/ruby" \
>  			--docdir=3D"${RUBY_DOCDIR}" \
> @@ -387,8 +389,7 @@ EXTRACT_SUFX=3D	.gem
>  EXTRACT_ONLY=3D
>  DIST_SUBDIR=3D	rubygem
> =20
> -NO_BUILD=3D	yes
> -
> +EXTRACT_DEPENDS+=3D	${RUBYGEMBIN}:${PORTSDIR}/devel/ruby-gems
>  GEMS_BASE_DIR=3D	lib/ruby/gems/${RUBY_VER}
>  GEMS_DIR=3D	${GEMS_BASE_DIR}/gems
>  DOC_DIR=3D	${GEMS_BASE_DIR}/doc
> @@ -428,10 +429,21 @@ RUBYGEM_ARGS=3D-l --no-update-sources --no
>  RUBYGEM_ARGS+=3D	--no-rdoc
>  .endif
> =20
> +do-extract:
> +	@${SETENV} ${GEM_ENV} ${RUBYGEMBIN} unpack --target=3D${WRKDIR} ${DIS=
TDIR}/${DIST_SUBDIR}/${GEMFILES}
> +	@${TAR} -xOzf ${DISTDIR}/${DIST_SUBDIR}/${GEMFILES} metadata.gz | ${G=
ZCAT} > ${BUILD_WRKSRC}/${GEMFILES}spec
> +
> +do-build:
> +	@(cd ${BUILD_WRKSRC}; if ! ${SETENV} ${GEM_ENV} ${RUBYGEMBIN} build -=
-force ${GEMFILES}spec ; then \
> +		if [ x !=3D x${BUILD_FAIL_MESSAGE} ] ; then \
> +			${ECHO_MSG} "=3D=3D=3D> Compilation failed unexpectedly."; \
> +			(${ECHO_CMD} ${BUILD_FAIL_MESSAGE}) | ${FMT} 75 79 ; \
> +			fi; \
> +		${FALSE}; \
> +		fi)
> +
>  do-install:
> -.for _D in ${GEMFILES}
> -	${SETENV} ${GEM_ENV} ${RUBYGEMBIN} install ${RUBYGEM_ARGS} ${DISTDIR}=
/${DIST_SUBDIR}/${_D} -- --build-args ${CONFIGURE_ARGS}
> -.endfor
> +	@(cd ${BUILD_WRKSRC}; ${SETENV} ${GEM_ENV} ${RUBYGEMBIN} install ${RU=
BYGEM_ARGS} ${GEMFILES} -- --build-args ${CONFIGURE_ARGS})
> =20
>  . if defined(RUBYGEM_AUTOPLIST)
>  .  if !target(post-install-script)
>=20


--=20
Regards,
Bryan Drewery
bdrewery@freenode/EFNet


------enig2WGCRSVAHXDGHHMIJBNFW
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBAgAGBQJRKgXPAAoJEG54KsA8mwz5XC8P/R39a8VN0xzIFt0sJuOgti0R
nWnAiHGY4kWjYxSw0iGJ21ryh+f70KeSPMQr5MDn6zyalJsO3ByQYkaw6brkcOI5
5ErHug3BC6moSvImiuPzHGHMKeNjbtPEJpur+XHkuH3nXjn77XKY8a8v0sqCGbvz
p7KumoYO3txcgTuy3QX7gZ+bccWu3LGe7mvOpdSoobMycQ828wnKLi/4F3HWnA4t
ebjoQxsWNVwENjsXdctnNBOYHJP3xzINh56lpnqEno+kYJ21F+KHWiYjZ8GTH0Mx
yxLy/b8C1MMYOAMp0VBbpRs6NTz9iR6USXN/rxwU2/aapVfAQ0MH8aPHZhlmnwZ8
iy8P3NAg97NeUZLpWZLeHs1KSWC7/kIvAS1gvmWCz+K3IiQgbOLiRMLyO9ABHhqQ
CYiPVNTRtwiXWK0WfqgE+G9678IloIYHvAMfTDcE9VGBS/wF8YuG4aSGeaKehuQU
Ef1mXE4Xx2h3W5GiRkGm0bg/Nh1+7fQmBng2cDaWpGIy87SZ2PYB57pHyJ4gRMBD
c4P1Hwqa1zluvIXl4BkD4KrX0ZLRIgklsRVAyYXydqmGjdo2KudbCSUReHAhtwhT
HCuE3+ScP4agRRZA3hw8aX0/uXjMPmwzwF0g2Zxq/4xzpIB09B/fmDJ+LR9Tog8N
D7ZlcBkXoSq3CCDBU2LF
=VD5V
-----END PGP SIGNATURE-----

------enig2WGCRSVAHXDGHHMIJBNFW--



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