[52288] trunk/dports/devel
illogic-al at macports.org
illogic-al at macports.org
Sat Jun 13 09:33:55 PDT 2009
Revision: 52288
http://trac.macports.org/changeset/52288
Author: illogic-al at macports.org
Date: 2009-06-13 09:33:54 -0700 (Sat, 13 Jun 2009)
Log Message:
-----------
Qt Script Generator. An evil piece of software necessary for amarok > 2.1.
Added Paths:
-----------
trunk/dports/devel/qtscriptgenerator/
trunk/dports/devel/qtscriptgenerator/Portfile
Added: trunk/dports/devel/qtscriptgenerator/Portfile
===================================================================
--- trunk/dports/devel/qtscriptgenerator/Portfile (rev 0)
+++ trunk/dports/devel/qtscriptgenerator/Portfile 2009-06-13 16:33:54 UTC (rev 52288)
@@ -0,0 +1,50 @@
+# $Id:$
+
+PortSystem 1.0
+
+name qtscriptgenerator
+version 0.1.0
+categories devel kde4
+maintainers nomaintainer
+description QtScript bindings generator.
+long_description Qt Script Generator is a tool that generates \
+ Qt bindings for Qt Script. With the generated bindings you get \
+ access to substantial portions of the Qt API from within Qt Script.
+platforms darwin
+homepage http://labs.trolltech.com/page/Projects/QtScript/Generator
+distname ${name}-src-${version}
+master_sites http://qtscriptgenerator.googlecode.com/files/
+checksums md5 ca4046ad4bda36cd4e21649d4b98886d \
+ sha1 eeae733106369e289f257b754822bc372fd6ba75 \
+ rmd160 a02ce6fea2fbc3d3a6ae9e51c6b563ef4bcd51f3
+
+depends_lib path:libexec/qt4-mac/bin/qmake:qt4-kde
+
+set qt_variant { qt4-kde qt4-mac }
+foreach qt ${qt_variant} {
+# This sets qtdir for each version. The last one listed is actually used.
+ if { [file exists ${prefix}/libexec/${qt}] } {
+ set qtdir ${prefix}/libexec/${qt}
+ }
+}
+
+use_configure no
+
+build {
+ foreach dir {generator qtbindings} {
+ if { ${dir}=="generator" } {
+ system "cd ${worksrcpath}/${dir} && export QTDIR=${qtdir} && PATH=${qtdir}/bin:$env(PATH) qmake && make && ${worksrcpath}/${dir}/generator"
+ } else {
+ system "cd ${worksrcpath}/${dir} && export QTDIR=${qtdir} && PATH=${qtdir}/bin:$env(PATH) qmake && make"
+ }
+ }
+}
+
+destroot {
+ foreach qt ${qt_variant} {
+ if { [file exists ${prefix}/libexec/${qt}/plugins] } {
+ xinstall -m 0755 -d ${destroot}${prefix}/libexec/${qt}/plugins/script
+ eval xinstall -m 0644 [glob ${worksrcpath}/plugins/script/*] ${destroot}${prefix}/libexec/${qt}/plugins/script/
+ }
+ }
+}
Property changes on: trunk/dports/devel/qtscriptgenerator/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/20090613/9b4bc385/attachment.html>
More information about the macports-changes
mailing list