[MacPorts] #30937: intltool @0.40.6_1 Enhancement to support perl5 variants

MacPorts noreply at macports.org
Sun Aug 12 02:31:19 PDT 2012


#30937: intltool @0.40.6_1 Enhancement to support perl5 variants
----------------------------------+-----------------------------------------
 Reporter:  ccarey@…              |       Owner:  macports-tickets@…                   
     Type:  enhancement           |      Status:  new                                  
 Priority:  Normal                |   Milestone:                                       
Component:  ports                 |     Version:  2.0.1                                
 Keywords:  haspatch              |        Port:  intltool                             
----------------------------------+-----------------------------------------

Comment(by nonstop.server@…):

 Replying to [comment:2 dports@…]:

 Using this code in a pre-configure block to figure out what version of
 perl was used for intltool at build-time works very well.[[BR]]
 I was able to install port VLC and all its dependencies this way using
 perl5.16 only.
 {{{
 pre-configure {
     # the perl executable should be the one explicitly required by
 intltool
     if { [file exists "${prefix}/bin/intltool-prepare"] == 1 } {
         set channel [open "${prefix}/bin/intltool-prepare"]
         set line [gets ${channel}]
         close ${channel}
         configure.env-append INTLTOOL_PERL=[string trim [string trimright
 \
             [string trimleft ${line} #!] -w]]
     } else {
         configure.env-append
 INTLTOOL_PERL=${prefix}/bin/perl${perl5.major}
     }
 }
 }}}
 I added PortGroup perl5 to some ports (including non-perl) to get access
 to variable perl5.major averting the need to set the variable by hand, but
 I'm not sure if this is acceptable for non-perl ports.[[BR]][[BR]]
 The following 16 ports have the INTLTOOL_PERL variable set in their
 Portfile:
 {{{
 ./databases/libgda3/Portfile:configure.env-append
 INTLTOOL_PERL=${configure.perl}
 ./databases/libgda4/Portfile:configure.env-append
 INTLTOOL_PERL=${configure.perl}
 ./databases/libgda5/Portfile:configure.env-append
 INTLTOOL_PERL=${configure.perl}
 ./devel/shared-mime-info/Portfile:configure.env-append
 INTLTOOL_PERL=${prefix}/bin/perl5.12
 ./gnome/gnome-doc-utils/Portfile:configure.env-append
 INTLTOOL_PERL=${prefix}/bin/perl5.12
 ./gnome/gnome-mime-data/Portfile:configure.env-append
 INTLTOOL_PERL=${prefix}/bin/perl
 ./gnome/libbonobo/Portfile:configure.env-append
 INTLTOOL_PERL=${prefix}/bin/perl5.12
 ./gnome/libgnomecanvas/Portfile:configure.env-append
 INTLTOOL_PERL=${prefix}/bin/perl
 ./gnome/oaf/Portfile:
 ac_cv_path_INTLTOOL_PERL=${prefix}/bin/perl5 \
 ./xfce/xfce-utils/Portfile:
 INTLTOOL_PERL=${prefix}/bin/perl5.12
 ./xfce/xfce4-appfinder/Portfile:configure.env
 INTLTOOL_PERL=${prefix}/bin/perl5.12
 ./xfce/xfce4-session/Portfile:configure.env
 INTLTOOL_PERL=${prefix}/bin/perl5.12
 ./xfce/xfce4-settings/Portfile:configure.env
 INTLTOOL_PERL=${prefix}/bin/perl5.12
 ./xfce/xfdesktop/Portfile:configure.env
 INTLTOOL_PERL=${prefix}/bin/perl5.12
 ./xfce/xfprint/Portfile:configure.env
 INTLTOOL_PERL=${prefix}/bin/perl5.12
 ./xfce/xfwm4/Portfile:configure.env   INTLTOOL_PERL=${prefix}/bin/perl5.12
 }}}
 Hopefully this will help to get intltool and intltool-using programs
 separated from a specific perl version.

-- 
Ticket URL: <https://trac.macports.org/ticket/30937#comment:4>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list