pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/buildlink3 Don't spew files in the package director...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2719913186af
branches:  trunk
changeset: 469045:2719913186af
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Thu Feb 19 07:41:44 2004 +0000

description:
Don't spew files in the package directory if the BUILDLINK_DEPENDS.<pkg>
uses {} to list several "or" dependencies.

diffstat:

 mk/buildlink3/bsd.buildlink3.mk |  13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diffs (35 lines):

diff -r 0eba14d0594d -r 2719913186af mk/buildlink3/bsd.buildlink3.mk
--- a/mk/buildlink3/bsd.buildlink3.mk   Thu Feb 19 07:11:16 2004 +0000
+++ b/mk/buildlink3/bsd.buildlink3.mk   Thu Feb 19 07:41:44 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.buildlink3.mk,v 1.94 2004/02/18 19:16:52 jlam Exp $
+# $NetBSD: bsd.buildlink3.mk,v 1.95 2004/02/19 07:41:44 jlam Exp $
 #
 # An example package buildlink3.mk file:
 #
@@ -133,8 +133,8 @@
 # see if it satisfies them all.  The key fact is the the strictest
 # dependency, when converted to a pkg name, will satisfy every dependency.
 #
-_BLNK_DEPENDS.${_pkg_}=                ${BUILDLINK_DEPENDS.${_pkg_}:N*>=[0-9]*}
-_BLNK_GE_DEPENDS.${_pkg_}=     ${BUILDLINK_DEPENDS.${_pkg_}:M*>=[0-9]*}
+_BLNK_DEPENDS.${_pkg_}=                # empty
+_BLNK_GE_DEPENDS.${_pkg_}=     ${BUILDLINK_DEPENDS.${_pkg_}:N*{*:M*>=[0-9]*}
 _BLNK_STRICTEST_DEPENDS.${_pkg_}?=     none
 .      for _depend_ in ${_BLNK_GE_DEPENDS.${_pkg_}}
 .        for _dep2pkg_ in ${_depend_:S/>=/-/}
@@ -161,8 +161,13 @@
 # If the dependencies simply conflict, then pass them on through to the
 # normal dependency handling code.
 #
-_BLNK_DEPENDS.${_pkg_}=                ${BUILDLINK_DEPENDS.${_pkg_}}
+_BLNK_DEPENDS.${_pkg_}+=       ${BUILDLINK_DEPENDS.${_pkg_}}
 .      else
+.        for _depend_ in ${BUILDLINK_DEPENDS.${_pkg_}}
+.          if empty(_BLNK_GE_DEPENDS.${_pkg_}:M${_depend_})
+_BLNK_DEPENDS.${_pkg_}+=       ${_depend_}
+.          endif
+.        endfor
 _BLNK_DEPENDS.${_pkg_}+=       ${_BLNK_STRICTEST_DEPENDS.${_pkg_}}
 .      endif
 #



Home | Main Index | Thread Index | Old Index