summaryrefslogtreecommitdiff
path: root/devel/py-curses
diff options
context:
space:
mode:
authorsnj <snj>2004-04-27 03:43:53 +0000
committersnj <snj>2004-04-27 03:43:53 +0000
commitf1d71010f97935afd0ece14269ae80112c124238 (patch)
treed32c4f3dedbf2a493b63c45a26d4bca2d41517e6 /devel/py-curses
parentb832b97ecb58b5af03ded59f85fe7d658e821da6 (diff)
downloadpkgsrc-f1d71010f97935afd0ece14269ae80112c124238.tar.gz
Convert to buildlink3.
Diffstat (limited to 'devel/py-curses')
-rw-r--r--devel/py-curses/Makefile6
-rw-r--r--devel/py-curses/buildlink2.mk13
-rw-r--r--devel/py-curses/buildlink3.mk22
3 files changed, 25 insertions, 16 deletions
diff --git a/devel/py-curses/Makefile b/devel/py-curses/Makefile
index 6640cd86de9..184963ff0ab 100644
--- a/devel/py-curses/Makefile
+++ b/devel/py-curses/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.22 2004/03/28 13:15:56 darcy Exp $
+# $NetBSD: Makefile,v 1.23 2004/04/27 03:43:53 snj Exp $
#
PKGNAME= ${PYPKGPREFIX}-curses-0
@@ -9,7 +9,7 @@ MAINTAINER= tsarna@NetBSD.org
HOMEPAGE= http://www.python.org/doc/current/lib/module-curses.html
COMMENT= Curses module for Python
-USE_BUILDLINK2= yes
+USE_BUILDLINK3= yes
USE_NCURSES= # filter getsyx getwin has_key immedok mvwinsnstr mvwinsstr ...
# noqiflush pechochar putp putwin qiflush redrawwin setsyx syncok termattrs
# termname tigetflag tigetnum tigetstr tparm typeahead use_env wcursyncup
@@ -33,5 +33,5 @@ do-patch:
.include "../../lang/python/extension.mk"
.include "../../lang/python/srcdist.mk"
-.include "../../devel/ncurses/buildlink2.mk"
+.include "../../devel/ncurses/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/devel/py-curses/buildlink2.mk b/devel/py-curses/buildlink2.mk
deleted file mode 100644
index cb2f9a40df2..00000000000
--- a/devel/py-curses/buildlink2.mk
+++ /dev/null
@@ -1,13 +0,0 @@
-# $NetBSD: buildlink2.mk,v 1.2 2004/03/29 05:05:38 jlam Exp $
-
-.if !defined(PYCURSES_BUILDLINK2_MK)
-PYCURSES_BUILDLINK2_MK= # defined
-
-.include "../../lang/python/pyversion.mk"
-
-BUILDLINK_PACKAGES+= pycurses
-BUILDLINK_PKGBASE.pycurses?= ${PYPKGPREFIX}-curses
-BUILDLINK_DEPENDS.pycurses?= ${PYPKGPREFIX}-curses-[0-9]*
-BUILDLINK_PKGSRCDIR.pycurses?= ../../devel/py-curses
-
-.endif # PYCURSES_BUILDLINK2_MK
diff --git a/devel/py-curses/buildlink3.mk b/devel/py-curses/buildlink3.mk
new file mode 100644
index 00000000000..bd86d034f65
--- /dev/null
+++ b/devel/py-curses/buildlink3.mk
@@ -0,0 +1,22 @@
+# $NetBSD: buildlink3.mk,v 1.1 2004/04/27 03:43:53 snj Exp $
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+PY_CURSES_BUILDLINK3_MK:= ${PY_CURSES_BUILDLINK3_MK}+
+
+.include "../../lang/python/pyversion.mk"
+
+.if !empty(BUILDLINK_DEPTH:M+)
+BUILDLINK_DEPENDS+= pycurses
+.endif
+
+BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Npycurses}
+BUILDLINK_PACKAGES+= pycurses
+
+.if !empty(PY_CURSES_BUILDLINK3_MK:M+)
+BUILDLINK_DEPENDS.pycurses+= ${PYPKGPREFIX}-curses-[0-9]*
+BUILDLINK_PKGSRCDIR.pycurses?= ../../devel/py-curses
+.endif # PY_CURSES_BUILDLINK3_MK
+
+.include "../../devel/ncurses/buildlink3.mk"
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}