[96675] trunk/dports/aqua
pixilla at macports.org
pixilla at macports.org
Thu Aug 16 19:57:11 PDT 2012
Revision: 96675
https://trac.macports.org/changeset/96675
Author: pixilla at macports.org
Date: 2012-08-16 19:57:09 -0700 (Thu, 16 Aug 2012)
Log Message:
-----------
aqua/qt4-mac-mysql55-plugin:
- Add qt4-mac mysql plugin ports.
aqua/qt4-mac-postgresql91-plugin:
- Add qt4-mac postgres plugin ports.
Added Paths:
-----------
trunk/dports/aqua/qt4-mac-mysql55-plugin/
trunk/dports/aqua/qt4-mac-mysql55-plugin/Portfile
trunk/dports/aqua/qt4-mac-postgresql91-plugin/
trunk/dports/aqua/qt4-mac-postgresql91-plugin/Portfile
Added: trunk/dports/aqua/qt4-mac-mysql55-plugin/Portfile
===================================================================
--- trunk/dports/aqua/qt4-mac-mysql55-plugin/Portfile (rev 0)
+++ trunk/dports/aqua/qt4-mac-mysql55-plugin/Portfile 2012-08-17 02:57:09 UTC (rev 96675)
@@ -0,0 +1,93 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+
+# use the qt4 group; set 'building_qt4' so that the portgroup
+# does not include certain parts
+set building_qt4 1
+PortGroup qt4 1.0
+PortGroup xcodeversion 1.0
+
+name qt4-mac-mysql55-plugin
+version 4.8.2
+categories aqua databases
+platforms macosx
+maintainers michaelld pixilla openmaintainer
+license {LGPL-2.1 GPL-3}
+
+homepage http://qt.nokia.com/
+
+master_sites trolltech
+distname qt-everywhere-opensource-src-${version}
+
+
+checksums sha1 e1e2edef1d63ed677d6534d32800c2e1f7ad0e73 \
+ rmd160 6a15077aee1e84076380787127b80c7bb97ebe86
+
+dist_subdir qt4-mac
+depends_lib-append port:qt4-mac
+
+set DB mysql
+set DRIVER src/sql/drivers/${DB}
+set PLUGIN src/plugins/sqldrivers/${DB}
+
+extract.post_args | tar -xf - \
+ ${distname}/${DRIVER} \
+ ${distname}/${PLUGIN} \
+ ${distname}/src/plugins/sqldrivers/qsqldriverbase.pri \
+ ${distname}/src/plugins/qpluginbase.pri \
+ ${distname}/src/qt_targets.pri
+
+configure.dir ${worksrcpath}/${PLUGIN}
+configure.env-append \
+ QMAKESPEC=${qt_mkspecs_dir}/macx-g++
+configure.cmd ${qt_qmake_cmd}
+configure.pre_args PREFIX=${prefix}
+
+if {[variant_isset universal]} {
+
+ configure.universal_args-delete --disable-dependency-tracking
+}
+
+set mp.ports {mysql5 mysql51 mysql55 mariadb percona}
+foreach mp.port ${mp.ports} {
+
+ lappend mp.names "qt4-mac-${mp.port}-plugin"
+}
+foreach mp.name ${mp.names} {
+
+ set idx [lsearch ${mp.names} ${mp.name}]
+ set mp.port [lindex ${mp.ports} $idx]
+ set mp.conflicts [lreplace ${mp.names} $idx $idx]
+
+ description Qt MySQL database plugin for ${mp.port}
+ long_description ${description}
+
+ if {[string compare ${mp.name} ${name}] == 0 && [string compare ${mp.name} ${subport}] == 0} {
+
+ conflicts-append ${mp.conflicts}
+ depends_lib-append port:${mp.port}
+ configure.args INCLUDEPATH+="${prefix}/include ${prefix}/include/${mp.port}/mysql ${prefix}/include/Qt" \
+ LIBS+="-L${prefix}/lib -L${prefix}/lib/${mp.port} -L${prefix}/lib/${mp.port}/mysql -lmysqlclient_r" \
+ mysql.pro
+ } else {
+
+ subport ${mp.name} {
+
+ conflicts-append ${mp.conflicts}
+ depends_lib-append port:${mp.port}
+ configure.args INCLUDEPATH+="${prefix}/include ${prefix}/include/${mp.port}/mysql ${prefix}/include/Qt" \
+ LIBS+="-L${prefix}/lib -L${prefix}/lib/${mp.port} -L${prefix}/lib/${mp.port}/mysql -lmysqlclient_r" \
+ mysql.pro
+ }
+
+ }
+}
+
+build.dir ${worksrcpath}/${PLUGIN}
+build.target {}
+
+livecheck.type regex
+livecheck.url http://get.qt.nokia.com/qt/source/
+livecheck.regex "qt-everywhere-opensource-src-(\[0-9a-z.-\]+)${extract.suffix}"
Property changes on: trunk/dports/aqua/qt4-mac-mysql55-plugin/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/aqua/qt4-mac-postgresql91-plugin/Portfile
===================================================================
--- trunk/dports/aqua/qt4-mac-postgresql91-plugin/Portfile (rev 0)
+++ trunk/dports/aqua/qt4-mac-postgresql91-plugin/Portfile 2012-08-17 02:57:09 UTC (rev 96675)
@@ -0,0 +1,93 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+
+# use the qt4 group; set 'building_qt4' so that the portgroup
+# does not include certain parts
+set building_qt4 1
+PortGroup qt4 1.0
+PortGroup xcodeversion 1.0
+
+name qt4-mac-postgresql91-plugin
+version 4.8.2
+categories aqua databases
+platforms macosx
+maintainers michaelld pixilla openmaintainer
+license {LGPL-2.1 GPL-3}
+
+homepage http://qt.nokia.com/
+
+master_sites trolltech
+distname qt-everywhere-opensource-src-${version}
+
+
+checksums sha1 e1e2edef1d63ed677d6534d32800c2e1f7ad0e73 \
+ rmd160 6a15077aee1e84076380787127b80c7bb97ebe86
+
+dist_subdir qt4-mac
+depends_lib-append port:qt4-mac
+
+set DB psql
+set DRIVER src/sql/drivers/${DB}
+set PLUGIN src/plugins/sqldrivers/${DB}
+
+extract.post_args | tar -xf - \
+ ${distname}/${DRIVER} \
+ ${distname}/${PLUGIN} \
+ ${distname}/src/plugins/sqldrivers/qsqldriverbase.pri \
+ ${distname}/src/plugins/qpluginbase.pri \
+ ${distname}/src/qt_targets.pri
+
+configure.dir ${worksrcpath}/${PLUGIN}
+configure.env-append \
+ QMAKESPEC=${qt_mkspecs_dir}/macx-g++
+configure.cmd ${qt_qmake_cmd}
+configure.pre_args PREFIX=${prefix}
+
+if {[variant_isset universal]} {
+
+ configure.universal_args-delete --disable-dependency-tracking
+}
+
+set mp.ports {postgresql80 postgresql81 postgresql82 postgresql83 postgresql84 postgresql90 postgresql91 postgresql92}
+foreach mp.port ${mp.ports} {
+
+ lappend mp.names "qt4-mac-${mp.port}-plugin"
+}
+foreach mp.name ${mp.names} {
+
+ set idx [lsearch ${mp.names} ${mp.name}]
+ set mp.port [lindex ${mp.ports} $idx]
+ set mp.conflicts [lreplace ${mp.names} $idx $idx]
+
+ if {[string compare ${mp.name} ${name}] == 0 && [string compare ${mp.name} ${subport}] == 0} {
+
+ description Qt PostgreSQL database plugin for ${mp.port}
+ long_description ${description}
+ conflicts-append ${mp.conflicts}
+ depends_lib-append port:${mp.port}
+ configure.args INCLUDEPATH+="${prefix}/include ${prefix}/include/${mp.port} ${prefix}/include/${mp.port}/server ${prefix}/include/Qt" \
+ LIBS+="-L${prefix}/lib -L${prefix}/lib/${mp.port} -lQtSql -lpq" \
+ psql.pro
+ } else {
+
+ subport ${mp.name} {
+
+ description Qt PostgreSQL database plugin for ${mp.port}
+ long_description ${description}
+ conflicts-append ${mp.conflicts}
+ depends_lib-append port:${mp.port}
+ configure.args INCLUDEPATH+="${prefix}/include ${prefix}/include/${mp.port} ${prefix}/include/${mp.port}/server ${prefix}/include/Qt" \
+ LIBS+="-L${prefix}/lib -L${prefix}/lib/${mp.port} -lQtSql -lpq" \
+ psql.pro
+ }
+ }
+}
+
+build.dir ${worksrcpath}/${PLUGIN}
+build.target {}
+
+livecheck.type regex
+livecheck.url http://get.qt.nokia.com/qt/source/
+livecheck.regex "qt-everywhere-opensource-src-(\[0-9a-z.-\]+)${extract.suffix}"
Property changes on: trunk/dports/aqua/qt4-mac-postgresql91-plugin/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120816/38b40fd4/attachment-0001.html>
More information about the macports-changes
mailing list