pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/textproc/intltool Rework the way intltool is overriden...
details: https://anonhg.NetBSD.org/pkgsrc/rev/bf0cbf04e7dd
branches: trunk
changeset: 481353:bf0cbf04e7dd
user: jmmv <jmmv%pkgsrc.org@localhost>
date: Sat Oct 02 13:58:58 2004 +0000
description:
Rework the way intltool is overriden in packages that use it. Up until now
we were running intltoolize before the configure stage, which replaced all
intltool-*.in files with symlinks to the ones installed by this package.
However, the new version of intltool, 0.31.3, has added new substitution
patterns to the scripts, which must be replaced by configure scripts at
configuration time. The problem is that old configure scripts (pre-0.31.3)
do not know about these patterns, which results in them not being substituted,
thus causing build failures.
So, to fix this issue, replace all intltool-* files _after_ the configure
stage, just like we do with libtool. Additional patters might be added
through the INTLTOOL_OVERRIDE variable, but I doubt this will be needed).
While here, update the dependency to 0.31.3 (has no other effect, as this
package is only used at build time by other packages).
diffstat:
textproc/intltool/buildlink3.mk | 19 ++++++++++++-------
1 files changed, 12 insertions(+), 7 deletions(-)
diffs (43 lines):
diff -r 178cf73e4ad3 -r bf0cbf04e7dd textproc/intltool/buildlink3.mk
--- a/textproc/intltool/buildlink3.mk Sat Oct 02 12:09:10 2004 +0000
+++ b/textproc/intltool/buildlink3.mk Sat Oct 02 13:58:58 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.4 2004/06/27 17:27:12 jmmv Exp $
+# $NetBSD: buildlink3.mk,v 1.5 2004/10/02 13:58:58 jmmv Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
INTLTOOL_BUILDLINK3_MK:= ${INTLTOOL_BUILDLINK3_MK}+
@@ -11,7 +11,7 @@
BUILDLINK_PACKAGES+= intltool
.if !empty(INTLTOOL_BUILDLINK3_MK:M+)
-BUILDLINK_DEPENDS.intltool+= intltool>=0.31
+BUILDLINK_DEPENDS.intltool+= intltool>=0.31.3
BUILDLINK_PKGSRCDIR.intltool?= ../../textproc/intltool
BUILDLINK_DEPMETHOD.intltool?= build
.endif # INTLTOOL_BUILDLINK3_MK
@@ -23,14 +23,19 @@
.if !empty(INTLTOOL_BUILDLINK3_MK:M+)
CONFIGURE_ENV+= INTLTOOL_PERL="${PERL5}"
INTLTOOLIZE= ${BUILDLINK_PREFIX.intltool}/bin/intltoolize
-
-_CONFIGURE_PREREQ+= intltoolize
+INTLTOOL_OVERRIDE?= intltool-* */intltool-*
-.PHONY: intltoolize
-intltoolize:
+_CONFIGURE_POSTREQ+= override-intltool
+
+.PHONY: override-intltool
+override-intltool:
${_PKG_SILENT}${_PKG_DEBUG} \
${ECHO} "=> Overriding intltool."
- @cd ${WRKSRC} && ${INTLTOOLIZE} --force >/dev/null 2>&1
+ @cd ${WRKSRC} && for f in ${INTLTOOL_OVERRIDE}; do \
+ if ${TEST} -f ${BUILDLINK_PREFIX.intltool}/bin/${f}; then \
+ ${CP} ${BUILDLINK_PREFIX.intltool}/bin/${f} ${f}; \
+ fi; \
+ done
.endif # INTLTOOL_BUILDLINK3_MK
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
Home |
Main Index |
Thread Index |
Old Index