Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/p5-PkgConfig devel/p5-PkgConfig: Fix aboslute paths



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4b8243e82002
branches:  trunk
changeset: 438668:4b8243e82002
user:      otis <otis%pkgsrc.org@localhost>
date:      Mon Sep 07 22:07:14 2020 +0000

description:
devel/p5-PkgConfig: Fix aboslute paths

Fix absolute path to perl

diffstat:

 devel/p5-PkgConfig/Makefile |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r c87a4c22d2a1 -r 4b8243e82002 devel/p5-PkgConfig/Makefile
--- a/devel/p5-PkgConfig/Makefile       Mon Sep 07 21:06:33 2020 +0000
+++ b/devel/p5-PkgConfig/Makefile       Mon Sep 07 22:07:14 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2020/09/07 20:06:20 otis Exp $
+# $NetBSD: Makefile,v 1.2 2020/09/07 22:07:14 otis Exp $
 
 DISTNAME=              PkgConfig-0.24026
 PKGNAME=               p5-${DISTNAME}
@@ -10,6 +10,12 @@
 COMMENT=               Pure-Perl Core-Only replacement for pkg-config
 LICENSE=               ${PERL5_LICENSE}
 
+SUBST_CLASSES+=                paths
+SUBST_STAGE.paths=     post-extract
+SUBST_MESSAGE.paths=   Fixing absolute paths.
+SUBST_FILES.paths=     lib/PkgConfig.pm
+SUBST_SED.paths=       -e 's,/usr/bin,${PREFIX}/bin,g'
+
 PERL5_PACKLIST=                auto/PkgConfig/.packlist
 
 .include "../../lang/perl5/module.mk"



Home | Main Index | Thread Index | Old Index