From f846bf1141fe294eae944f234022576916cbf8e9 Mon Sep 17 00:00:00 2001 From: jperkin Date: Wed, 25 Nov 2015 12:47:32 +0000 Subject: Remove mk/find-prefix.mk usage from the archivers category. The find-prefix infrastructure was required in a pkgviews world where packages installed from pkgsrc could have different installation prefixes, and this was a way for a dependency prefix to be determined. Now that pkgviews has been removed there is no longer any need for the overhead of this infrastructure. Instead we use BUILDLINK_PREFIX.pkg for dependencies pulled in via buildlink, or LOCALBASE/PREFIX where the dependency is coming from pkgsrc. Provides a reasonable performance win due to the reduction of `pkg_info -qp` calls, some of which were redundant anyway as they were duplicating the same information provided by BUILDLINK_PREFIX.pkg. --- archivers/ruby-xz/Makefile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'archivers/ruby-xz') diff --git a/archivers/ruby-xz/Makefile b/archivers/ruby-xz/Makefile index 54ce8a05e67..7b14683d9bf 100644 --- a/archivers/ruby-xz/Makefile +++ b/archivers/ruby-xz/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.11 2015/05/31 15:21:44 taca Exp $ +# $NetBSD: Makefile,v 1.12 2015/11/25 12:47:32 jperkin Exp $ DISTNAME= ruby-xz-0.2.1 PKGNAME= ${RUBY_PKGPREFIX}-${DISTNAME:S/ruby-//} @@ -13,12 +13,10 @@ DEPENDS+= xz-[0-9]*:../../archivers/xz DEPENDS+= ${RUBY_PKGPREFIX}-ffi-[0-9]*:../../devel/ruby-ffi DEPENDS+= ${RUBY_PKGPREFIX}-io-like-[0-9]*:../../devel/ruby-io-like -EVAL_PREFIX+= XZ_PREFIX=xz - SUBST_CLASSES+= path SUBST_STAGE.path= pre-configure SUBST_FILES.path= lib/xz/lib_lzma.rb -SUBST_SED.path= -e "s,@LOCALBASE@,${XZ_PREFIX},g" +SUBST_SED.path+= -e "s,@LOCALBASE@,${LOCALBASE},g" SUBST_SED.path+= -e "s,@SHLIB_EXT@,${RUBY_SLEXT},g" .include "../../lang/ruby/gem.mk" -- cgit v1.2.3