[MacPorts] #2040: Adding readline support to python23.

MacPorts noreply at macports.org
Thu Mar 24 05:32:32 PDT 2016


#2040: Adding readline support to python23.
--------------------------+--------------------------------
  Reporter:  tigran@…     |      Owner:  macports-tickets@…
      Type:  enhancement  |     Status:  closed
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:  1.0
Resolution:  fixed        |   Keywords:
      Port:  python23     |
--------------------------+--------------------------------
Changes (by ryandesign@…):

 * port:   => python23


Old 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]} {

New 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]} {
 }}}

--

-- 
Ticket URL: <https://trac.macports.org/ticket/2040#comment:2>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list