diff options
author | wiz <wiz@pkgsrc.org> | 2002-03-14 17:58:47 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2002-03-14 17:58:47 +0000 |
commit | d35d029ae334ef2507880d0ec20b66a2ab600305 (patch) | |
tree | d41ab4a2d107c38b0c5198fdb42bb530fd8918b2 /devel/py-readline | |
parent | e5764c6d54ccada378d634b011471c4fe861d2fa (diff) | |
download | pkgsrc-d35d029ae334ef2507880d0ec20b66a2ab600305.tar.gz |
Move py-readline from misc to devel, where all the other readline packages
live.
Closes pkg/15444.
Diffstat (limited to 'devel/py-readline')
-rw-r--r-- | devel/py-readline/DESCR | 2 | ||||
-rw-r--r-- | devel/py-readline/Makefile | 32 | ||||
-rw-r--r-- | devel/py-readline/PLIST | 2 | ||||
-rw-r--r-- | devel/py-readline/files/Setup.in | 5 | ||||
-rw-r--r-- | devel/py-readline/files/setup.py | 23 |
5 files changed, 64 insertions, 0 deletions
diff --git a/devel/py-readline/DESCR b/devel/py-readline/DESCR new file mode 100644 index 00000000000..2e171893d8c --- /dev/null +++ b/devel/py-readline/DESCR @@ -0,0 +1,2 @@ +This module adds line-editing features to Python. This is handy +mainly in interactive mode of Python. diff --git a/devel/py-readline/Makefile b/devel/py-readline/Makefile new file mode 100644 index 00000000000..35872de6e8b --- /dev/null +++ b/devel/py-readline/Makefile @@ -0,0 +1,32 @@ +# $NetBSD: Makefile,v 1.1 2002/03/14 17:58:49 wiz Exp $ +# + +PKGNAME= ${PYPKGPREFIX}-readline-0 +CATEGORIES= devel misc + +MAINTAINER= tsarna@netbsd.org +HOMEPAGE= http://www.python.org/doc/tut/interacting.html +COMMENT= line editing support for Python + +EXTRACT_ELEMENTS= ${PYSUBDIR}/Modules/readline.c + +USE_GNU_READLINE= # defined + +.include "../../devel/readline/buildlink.mk" + +PYDISTUTILSPKG= yes +PYBINMODULE= yes +PY_PATCHPLIST= yes +PY_SETUP_SUBST+= RLPREFIX=${BUILDLINK_DIR} +PY_SETUP_SUBST+= RLRTPREFIX=${BUILDLINK_PREFIX.readline} + +# ignore errors due to missing files (EXTRACT_ELEMENTS!) +do-patch: + (cd ${WRKSRC}; \ + for f in ${PATCHDIR}/patch-*;do \ + ${PATCH} --batch <$$f || true; \ + done) + +.include "../../lang/python/srcdist.mk" +.include "../../lang/python/extension.buildlink.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/devel/py-readline/PLIST b/devel/py-readline/PLIST new file mode 100644 index 00000000000..f3ee4a00467 --- /dev/null +++ b/devel/py-readline/PLIST @@ -0,0 +1,2 @@ +@comment $NetBSD: PLIST,v 1.1 2002/03/14 17:58:49 wiz Exp $ +${PYSITELIB}/readline.so diff --git a/devel/py-readline/files/Setup.in b/devel/py-readline/files/Setup.in new file mode 100644 index 00000000000..2d22d327cc9 --- /dev/null +++ b/devel/py-readline/files/Setup.in @@ -0,0 +1,5 @@ +# $NetBSD: Setup.in,v 1.1 2002/03/14 17:58:49 wiz Exp $ +# +*shared* +readline readline.c @BUILDLINK_LDFLAGS@ -R@LOCALBASE@/lib \ + @BUILDLINK_CPPFLAGS@ -lreadline -ltermcap diff --git a/devel/py-readline/files/setup.py b/devel/py-readline/files/setup.py new file mode 100644 index 00000000000..ca25194e5d4 --- /dev/null +++ b/devel/py-readline/files/setup.py @@ -0,0 +1,23 @@ +# $NetBSD: setup.py,v 1.1 2002/03/14 17:58:50 wiz Exp $ + +import distutils +from distutils.core import setup, Extension + +rlprefix = '@RLPREFIX@' +rlincl = rlprefix + '/include' +rllib = rlprefix + '/lib' +rlrtprefix = '@RLRTPREFIX@' +rlrtlib = rlrtprefix + '/lib' + +setup( + ext_modules = [ + Extension( + 'readline', + ['Modules/readline.c'], + include_dirs=[rlincl], + library_dirs=[rllib], + runtime_library_dirs=[rlrtlib], + libraries=['readline', 'termcap'] + ) + ] +) |