[MacPorts] #60551: db-browser-for-sqlite installs a symlink at post-activate

MacPorts noreply at macports.org
Mon May 25 03:33:28 UTC 2020


#60551: db-browser-for-sqlite installs a symlink at post-activate
------------------------+-----------------------------------
 Reporter:  ryandesign  |      Owner:  i0ntempest
     Type:  defect      |     Status:  assigned
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:  2.6.2
 Keywords:              |       Port:  db-browser-for-sqlite
------------------------+-----------------------------------
 db-browser-for-sqlite creates a symlink in a post-activate block and
 removes it in a post-deactivate block:

 {{{
 post-activate {
         ln -s "${applications_dir}/DB Browser for
 SQLite.app/Contents/MacOS/DB Browser for SQLite"
 ${prefix}/bin/sqlitebrowser
 }
 post-deactivate {
         delete ${prefix}/bin/sqlitebrowser
 }
 }}}

 Why not create it in post-destroot so that it is registered to the port?
 Then MacPorts will automatically install it at activate time and remove it
 at deactivate time along with all the port's other files.

 {{{
 post-destroot {
     ln -s "${applications_dir}/DB Browser for SQLite.app/Contents/MacOS/DB
 Browser for SQLite" ${destroot}${prefix}/bin/sqlitebrowser
 }
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/60551>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list