pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/x11/gtk2-sharp Fixed pkglint warnings by using SUBST.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6ab0a6917d2e
branches:  trunk
changeset: 539120:6ab0a6917d2e
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Thu Feb 28 11:25:37 2008 +0000

description:
Fixed pkglint warnings by using SUBST.

diffstat:

 x11/gtk2-sharp/Makefile |  16 ++++++----------
 1 files changed, 6 insertions(+), 10 deletions(-)

diffs (30 lines):

diff -r 31e5ac48339b -r 6ab0a6917d2e x11/gtk2-sharp/Makefile
--- a/x11/gtk2-sharp/Makefile   Thu Feb 28 09:16:29 2008 +0000
+++ b/x11/gtk2-sharp/Makefile   Thu Feb 28 11:25:37 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2008/02/20 18:44:27 drochner Exp $
+# $NetBSD: Makefile,v 1.12 2008/02/28 11:25:37 rillig Exp $
 #
 
 DISTNAME=              gtk-sharp-2.10.3
@@ -21,15 +21,11 @@
 PKGCONFIG_OVERRIDE+=   parser/gapi-2.0.pc.in
 PKGCONFIG_OVERRIDE+=   glade/glade-sharp-2.0.pc.in
 
-post-patch: substpcprefix
-# replace relative prefix in pkgconfig files
-substpcprefix:
-.for f in ${PKGCONFIG_OVERRIDE}
-       (cd ${WRKSRC}; \
-        ${SED} 's|$${pcfiledir}/../..|@prefix@|g' <$f >$f.tmp; \
-        ${MV} $f.tmp $f \
-       )
-.endfor
+SUBST_CLASSES+=                relprefix
+SUBST_MESSAGE.relprefix=Replacing relative prefix in pkg-config files.
+SUBST_STAGE.relprefix= post-patch
+SUBST_FILES.relprefix= ${PKGCONFIG_OVERRIDE}
+SUBST_SED.relprefix=   -e 's|$${pcfiledir}/../..|@prefix@|g'
 
 .include "../../devel/libglade/buildlink3.mk"
 .include "../../lang/mono/buildlink3.mk"



Home | Main Index | Thread Index | Old Index