[MacPorts] #17150: add postgresql83 to the system path

MacPorts noreply at macports.org
Sat Nov 8 21:17:48 PST 2008


#17150: add postgresql83 to the system path
---------------------------------+------------------------------------------
 Reporter:  dweber at macports.org  |       Owner:  macports-tickets at lists.macosforge.org
     Type:  enhancement          |      Status:  new                                  
 Priority:  Normal               |   Milestone:  Port Enhancements                    
Component:  ports                |     Version:  1.6.0                                
 Keywords:  path postgresql      |        Port:  postgresql83                         
---------------------------------+------------------------------------------
 Modify post-destroot to

 {{{

 post-destroot {
     foreach contrib ${contribs} {
         system "echo contrib: \"${contrib}\""
         system "cd ${worksrcpath}/contrib/${contrib}/ && \
             ${destroot.cmd} install ${destroot.destdir} && touch DONE"
     }
     system "cd ${destroot}${prefix}/bin && ln -sf ${libdir}/bin/psql
 psql83"
     file delete -force ${destroot}${prefix}/share/doc/${name} \
         ${destroot}${prefix}/share/man

     # Add /opt/local/lib/postgresql83/bin to the system path
     mkdir ${destroot}/etc/paths.d
     echo "${prefix}/lib/postgresql83/bin" >
 ${destroot}/etc/paths.d/postgresql83
 }

 }}}

-- 
Ticket URL: <http://trac.macports.org/ticket/17150>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list