Modified: trunk/dports/devel/qca/Portfile (145255 => 145256)
--- trunk/dports/devel/qca/Portfile 2016-01-29 21:13:41 UTC (rev 145255)
+++ trunk/dports/devel/qca/Portfile 2016-01-29 22:59:33 UTC (rev 145256)
@@ -85,6 +85,8 @@
}
}
+variant examples description {Include examples in install} {}
+
# set install directory for mkspec files
configure.args-append \
@@ -159,10 +161,7 @@
ln -s ${tf_full}/qca ${dr_libs_dir}/libqca.${qca_major}.${qca_minor}.dylib
ln -s ${tf_full}/qca ${dr_libs_dir}/libqca.${qca_major}.${qca_minor}.${qca_patch}.dylib
- }
-
- variant examples description {Include examples in install} {
- post-destroot {
+ if {[variant_isset examples]} {
xinstall -d -m 755 ${destroot}${prefix}/share/examples/${name}
eval file copy [glob ${worksrcpath}/examples/*] \
${destroot}${prefix}/share/examples/${name}