[62215] trunk/dports/devel/qca/Portfile
ryandesign at macports.org
ryandesign at macports.org
Thu Dec 31 16:12:53 PST 2009
Revision: 62215
http://trac.macports.org/changeset/62215
Author: ryandesign at macports.org
Date: 2009-12-31 16:12:50 -0800 (Thu, 31 Dec 2009)
Log Message:
-----------
qca: use branch and major variables instead of hardcoding those values, and don't use system to create symlinks
Modified Paths:
--------------
trunk/dports/devel/qca/Portfile
Modified: trunk/dports/devel/qca/Portfile
===================================================================
--- trunk/dports/devel/qca/Portfile 2009-12-31 23:54:37 UTC (rev 62214)
+++ trunk/dports/devel/qca/Portfile 2010-01-01 00:12:50 UTC (rev 62215)
@@ -3,6 +3,8 @@
PortSystem 1.0
name qca
version 2.0.0
+set branch [join [lrange [split ${version} .] 0 1] .]
+set major [lindex [split ${version} .] 0]
categories devel crypto security
maintainers rowue openmaintainer
description Qt Cryptographic Architecture
@@ -15,7 +17,7 @@
platforms darwin
homepage http://delta.affinix.com/qca/
-master_sites http://delta.affinix.com/download/qca/2.0/
+master_sites http://delta.affinix.com/download/qca/${branch}/
use_bzip2 yes
checksums md5 07d54358ef4880d05b3c6f56b629aa55 \
@@ -27,8 +29,8 @@
configure.args --qtdir=${prefix}/libexec/qt4-mac
post-build {
- system "install_name_tool -id ${prefix}/lib/libqca.2.dylib \
- ${worksrcpath}/lib/libqca.2.dylib"
+ system "install_name_tool -id ${prefix}/lib/libqca.${major}.dylib \
+ ${worksrcpath}/lib/libqca.${version}.dylib"
}
destroot {
@@ -39,12 +41,11 @@
${destroot}${prefix}/share/examples/${name} \
${destroot}${prefix}/include/QtCrypto
- xinstall -m 644 -W ${worksrcpath}/lib libqca.2.0.0.dylib \
+ xinstall -m 644 -W ${worksrcpath}/lib libqca.${version}.dylib \
${destroot}${prefix}/lib
- system "ln -sf libqca.2.0.0.dylib ${destroot}${prefix}/lib/libqca.dylib"
- system "ln -sf libqca.2.0.0.dylib ${destroot}${prefix}/lib/libqca.2.dylib"
- system "ln -sf libqca.2.0.0.dylib \
- ${destroot}${prefix}/lib/libqca.2.0.dylib"
+ ln -s libqca.${version}.dylib ${destroot}${prefix}/lib/libqca.dylib
+ ln -s libqca.${version}.dylib ${destroot}${prefix}/lib/libqca.${major}.dylib
+ ln -s libqca.${version}.dylib ${destroot}${prefix}/lib/libqca.${branch}.dylib
foreach f [glob ${worksrcpath}/include/QtCrypto/*] {
xinstall -m 644 $f ${destroot}${prefix}/include/QtCrypto
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091231/8b10254a/attachment.html>
More information about the macports-changes
mailing list