#19425: Add libdbi port ---------------------------+------------------------------------------------ Reporter: mta@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Port Submissions Component: ports | Version: 1.7.1 Keywords: | Port: libdbi libdbi-drivers ---------------------------+------------------------------------------------ Changes (by blb@…): * port: libdbi => libdbi libdbi-drivers Comment: libdbi added in r50096, thanks; two changes made to the port: - removed {{{:libdbi}}} from master_sites since the port's name is the default - used obfuscated form of maintainers libdbi-drivers needs some changes first: - don't hardcode /opt/local, use ${prefix} instead - the database variants will need to have a dependency on the proper database, and they should be named for the version to use; for example, instead of postgresql call it postgresql83 and add the following to it: {{{ depends_lib-append port:postgresql83 }}} then do the same for the other variants. - since building the port without any variants selected causes this to install nothing, which would causes issues and confusion, you should select a default if none is selected; I suggest sqlite3 since it's lightweight, so added the following: {{{ if {![variant_isset mysql5] && ![variant_isset postgresql83] && ![variant_isset sqlite] && ![variant_isset sqlite3]} { default_variants +sqlite3 } }}} Obviously add other variants you add if you want to also have support for other databases. - There is no port for msql currently, so that should be removed -- Ticket URL: <http://trac.macports.org/ticket/19425#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS