Opened 20 years ago
Last modified 9 years ago
#2040 closed enhancement
Adding readline support to python23. — at Initial Version
Reported by: | tigran@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.0 |
Keywords: | Cc: | ||
Port: | python23 |
Description
Python can have readline style support. THere are number of ways to accomplish this, but the most functional and easiest to use appears to be the readline support that comes with Python. This also requires the GNU readline library to be available. I've modified my Portfile for this. I think the fix for adding this variant should be something like this. YMMV, but it's working for me! (p.s. I already had readline installed, so the depend_lib-append is somewhat questionable, but the configure portion certainly works)
Index: Portfile =============================================================== ==== RCS file: /Volumes/src/cvs/od/proj/darwinports/dports/lang/python23/Portfile,v retrieving revision 1.12 diff -u -r1.12 Portfile --- Portfile 6 Jun 2004 07:05:06 -0000 1.12 +++ Portfile 11 Jul 2004 14:34:24 -0000 @@ -46,6 +46,11 @@
configure.args-append --with-pydebug
}
+variant readline { + depends_lib-append lib:libreadline:readline + configure.args-append --with-readline +} +
variant darwin {
patchfiles-append patch-Modules_getpath.c if {![variant_isset puredarwin]} {