summaryrefslogtreecommitdiff
path: root/lang/python21
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2002-10-09 23:46:14 +0000
committerjlam <jlam@pkgsrc.org>2002-10-09 23:46:14 +0000
commitf2eb380771e129139d768be1c9d48f165b77a545 (patch)
tree2924adff8f1ebee85fad8db83de245c2670c33a9 /lang/python21
parentb7cce96b95636061feec80cf2eb9e9504ad26beb (diff)
downloadpkgsrc-f2eb380771e129139d768be1c9d48f165b77a545.tar.gz
Use BUILDLINK_PLIST_CMD instead of grepping the PLIST, which for some of
these python packages is empty.
Diffstat (limited to 'lang/python21')
-rw-r--r--lang/python21/buildlink2.mk10
1 files changed, 6 insertions, 4 deletions
diff --git a/lang/python21/buildlink2.mk b/lang/python21/buildlink2.mk
index e18c85798af..045907cf446 100644
--- a/lang/python21/buildlink2.mk
+++ b/lang/python21/buildlink2.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink2.mk,v 1.3 2002/10/09 11:40:41 jlam Exp $
+# $NetBSD: buildlink2.mk,v 1.4 2002/10/09 23:46:15 jlam Exp $
.if !defined(PYTHON21_BUILDLINK2_MK)
PYTHON21_BUILDLINK2_MK= # defined
@@ -6,6 +6,7 @@ PYTHON21_BUILDLINK2_MK= # defined
.include "../../mk/bsd.prefs.mk"
BUILDLINK_PACKAGES+= python21
+BUILDLINK_PKGBASE.python21?= python21
BUILDLINK_DEPENDS.python21?= python21>=2.1
BUILDLINK_PKGSRCDIR.python21?= ../../lang/python21
@@ -15,9 +16,10 @@ BUILDLINK_DEPMETHOD.python21?= ${BUILDLINK_DEPMETHOD.python}
EVAL_PREFIX+= BUILDLINK_PREFIX.python21=python21
BUILDLINK_PREFIX.python21_DEFAULT= ${LOCALBASE}
-BUILDLINK_FILES.python21!= \
- ${GREP} "^include/" ${.CURDIR}/${BUILDLINK_PKGSRCDIR.python21}/PLIST
-BUILDLINK_FILES.python21+= lib/python2.1/config/libpython2.1.*
+_PY21_BLNK_FILES= \
+ ${BUILDLINK_PLIST_CMD.python21} | \
+ ${GREP} '^\(include\|lib.*/lib[^/]*$$\)'
+BUILDLINK_FILES.python21= `${_PY21_BLNK_FILES}`
BUILDLINK_TRANSFORM+= l:python:python2.1
BUILDLINK_CPPFLAGS.python21+= \