[72587] trunk/dports/devel/qtscriptgenerator/Portfile

André Kaplan ak.ml at laposte.net
Sun Oct 31 16:45:48 PDT 2010


Hi all,

In this changeset all occurrences of plugins were replaced with $ 
{qt_plugins_dir}, but the install failed for me.
With this patch it worked.

$ diff -u "`port file qtscriptgenerator`" Portfile
--- /opt/local/var/macports/sources/rsync.macports.org/release/ports/ 
devel/qtscriptgenerator/Portfile	2010-10-21 14:30:56.000000000 +0200
+++ Portfile	2010-10-31 22:13:18.000000000 +0100
@@ -34,5 +34,5 @@

destroot {
     xinstall -m 0755 -d ${destroot}${qt_plugins_dir}/script
-    eval xinstall -m 0644 [glob ${worksrcpath}/${qt_plugins_dir}/ 
script/*] ${destroot}${qt_plugins_dir}/script/
+    eval xinstall -m 0644 [glob ${worksrcpath}/plugins/script/*] $ 
{destroot}${qt_plugins_dir}/script/
}

Regards,
André Kaplan

> Revision: 72587
>          http://trac.macports.org/changeset/72587
> Author:   michaelld at macports.org
> Date:     2010-10-21 05:29:25 -0700 (Thu, 21 Oct 2010)
> Log Message:
> -----------
> Changes to use kde 1.1 portgroup.
>
> Modified Paths:
> --------------
>    trunk/dports/devel/qtscriptgenerator/Portfile
>
> Modified: trunk/dports/devel/qtscriptgenerator/Portfile
> ===================================================================
> --- trunk/dports/devel/qtscriptgenerator/Portfile	2010-10-21  
> 12:28:55 UTC (rev 72586)
> +++ trunk/dports/devel/qtscriptgenerator/Portfile	2010-10-21  
> 12:29:25 UTC (rev 72587)
> @@ -1,10 +1,11 @@
> -# $Id:$
> +# $Id$
>
> PortSystem          1.0
> +PortGroup           kde4 1.1
>
> name                qtscriptgenerator
> version             0.1.0
> -revision            1
> +revision            2
> categories          devel kde4
> maintainers         nomaintainer
> description         QtScript bindings generator.
> @@ -19,23 +20,19 @@
>                     sha1    eeae733106369e289f257b754822bc372fd6ba75 \
>                     rmd160  a02ce6fea2fbc3d3a6ae9e51c6b563ef4bcd51f3
>
> -depends_lib         port:qt4-mac
> -
> -set qtdir           ${prefix}/libexec/qt4-mac
> -
> 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"
> +            system "cd ${worksrcpath}/${dir} && export QTDIR=$ 
> {qt_dir} && ${qt_qmake_cmd} && make && ${worksrcpath}/${dir}/ 
> generator"
>         } else {
> -            system "cd ${worksrcpath}/${dir} && export QTDIR=$ 
> {qtdir} && PATH=${qtdir}/bin:$env(PATH) qmake && make"
> +            system "cd ${worksrcpath}/${dir} && export QTDIR=$ 
> {qt_dir} && ${qt_qmake_cmd} && make"
>         }
>     }
> }
>
> destroot {
> -    xinstall -m 0755 -d ${destroot}${qtdir}/plugins/script
> -    eval xinstall -m 0644 [glob ${worksrcpath}/plugins/script/*] $ 
> {destroot}${qtdir}/plugins/script/
> +    xinstall -m 0755 -d ${destroot}${qt_plugins_dir}/script
> +    eval xinstall -m 0644 [glob ${worksrcpath}/${qt_plugins_dir}/ 
> script/*] ${destroot}${qt_plugins_dir}/script/
> }




More information about the macports-dev mailing list