[56939] trunk/dports/editors/sigil/Portfile
krischik at macports.org
krischik at macports.org
Thu Sep 3 10:27:48 PDT 2009
Revision: 56939
http://trac.macports.org/changeset/56939
Author: krischik at macports.org
Date: 2009-09-03 10:27:45 -0700 (Thu, 03 Sep 2009)
Log Message:
-----------
New Version
Modified Paths:
--------------
trunk/dports/editors/sigil/Portfile
Modified: trunk/dports/editors/sigil/Portfile
===================================================================
--- trunk/dports/editors/sigil/Portfile 2009-09-03 17:24:27 UTC (rev 56938)
+++ trunk/dports/editors/sigil/Portfile 2009-09-03 17:27:45 UTC (rev 56939)
@@ -5,7 +5,7 @@
PortSystem 1.0
name sigil
-version 0.1.2
+version 0.1.3
#epoch 20090114
revision 0
platforms darwin
@@ -20,11 +20,11 @@
master_sites googlecode
distfiles Sigil_code_${version}.zip
-worksrcdir Sigil_code_${version}
+worksrcdir build
-checksums md5 5a51565fd12234b381eecabe728b5376 \
- sha1 f9fd494558e477c3ab966bf5756c202ec4a4cf9e \
- rmd160 274a7897c1d698b7ff8bcc4cad7349a5f018ba73
+checksums md5 60ba640201420704ce3b500c7d96f6fd \
+ sha1 83349aec2f5dcfb066e85651e66e16b259c23d4f \
+ rmd160 616abfc8d6c770cc38d03a106a2de981cd1c6270
use_zip yes
use_parallel_build yes
@@ -33,51 +33,42 @@
bin:gmake:gmake
depends_lib port:qt4-mac
-configure.env PATH="$env(PATH):${prefix}/libexec/qt4-mac/bin"
-build.env PATH="$env(PATH):${prefix}/libexec/qt4-mac/bin"
+configure.env PATH="${prefix}/libexec/qt4-mac/bin:$env(PATH)"
+configure.cmd "cmake"
+configure.args "-G \"Unix Makefiles\" ${workpath}/Sigil_code_${version}"
+build.env PATH="${prefix}/libexec/qt4-mac/bin:$env(PATH)"
+build.cmd "gmake"
+build.args ""
+build.target "Sigil"
+
platform x86_64 {
pre-configure {
- reinplace "s|ppc;i386|x86_64|g" ${worksrcpath}/CMakeLists.txt
+ reinplace "s|ppc;i386|x86_64|g" ${workpath}/Sigil_code_${version}/CMakeLists.txt
}
}
platform powerpc {
pre-configure {
- reinplace "s|ppc;i386|ppc|g" ${worksrcpath}/CMakeLists.txt
+ reinplace "s|ppc;i386|ppc|g" ${workpath}/Sigil_code_${version}/CMakeLists.txt
}
}
platform i386 {
pre-configure {
- reinplace "s|ppc;i386|i386|g" ${worksrcpath}/CMakeLists.txt
+ reinplace "s|ppc;i386|i386|g" ${workpath}/Sigil_code_${version}/CMakeLists.txt
}
}
-configure {
- system "
- PATH=$env(PATH):${prefix}/libexec/qt4-mac/bin
- mkdir -p ${workpath}/build;
- pushd ${workpath}/build;
- cmake -G \"Unix Makefiles\" ${workpath}/${worksrcdir};
- popd;
- "
+pre-configure {
+ file mkdir ${worksrcpath}
}
-build {
- system "
- PATH=$env(PATH):${prefix}/libexec/qt4-mac/bin
- pushd ${workpath}/build;
- gmake Sigil;
- popd;
- "
-}
-
destroot {
xinstall -d ${destroot}${applications_dir}
copy \
- ${workpath}/build/bin/Sigil.app \
+ ${worksrcpath}/bin/Sigil.app \
${destroot}${applications_dir}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090903/0ea7de15/attachment.html>
More information about the macports-changes
mailing list