[64342] trunk/dports/math/gnudatalanguage/Portfile
takeshi at macports.org
takeshi at macports.org
Wed Mar 3 01:14:15 PST 2010
Revision: 64342
http://trac.macports.org/changeset/64342
Author: takeshi at macports.org
Date: 2010-03-03 01:14:11 -0800 (Wed, 03 Mar 2010)
Log Message:
-----------
gnudatalanguage: added CMSVLIB
Modified Paths:
--------------
trunk/dports/math/gnudatalanguage/Portfile
Modified: trunk/dports/math/gnudatalanguage/Portfile
===================================================================
--- trunk/dports/math/gnudatalanguage/Portfile 2010-03-03 02:54:06 UTC (rev 64341)
+++ trunk/dports/math/gnudatalanguage/Portfile 2010-03-03 09:14:11 UTC (rev 64342)
@@ -5,6 +5,7 @@
name gnudatalanguage
version 0.9rc4
+revision 1
categories math science
maintainers takeshi igf.fuw.edu.pl:slayoo
license GPLv2
@@ -14,12 +15,22 @@
A free IDL (Interactive Data Language) compatible \
incremental compiler (ie. runs IDL programs).
homepage http://gnudatalanguage.sourceforge.net/
-master_sites sourceforge
-distname gdl-${version}
+# cmsvlib homepage http://www.physics.wisc.edu/~craigm/idl/cmsave.html
+master_sites sourceforge::gdl \
+ http://www.physics.wisc.edu/~craigm/idl/down/:cmsvlib
+set gdl gdl-${version}.tar.gz
+set cmsvlib cmsvlib.tar.gz
+distfiles ${gdl}:gdl \
+ ${cmsvlib}:cmsvlib
+worksrcdir gdl-${version}
-checksums md5 dcef0d75308a13856a799d12755c80a3 \
- sha1 ffd133b9bc213613c89952f341defb447a87bf1d \
- rmd160 504f072d4dbf30403a2e9e0ed18223537619f01a
+# checksums for cmsvlib 20090505
+checksums ${gdl} md5 dcef0d75308a13856a799d12755c80a3 \
+ ${gdl} sha1 ffd133b9bc213613c89952f341defb447a87bf1d \
+ ${gdl} rmd160 504f072d4dbf30403a2e9e0ed18223537619f01a \
+ ${cmsvlib} md5 23ce60315ba271735f73b15ff14e171a \
+ ${cmsvlib} sha1 f9992dd40812e7bee81dd6933010ebdcb78af723 \
+ ${cmsvlib} rmd160 bd0c4f777afb4dfc7e63a0188f385ccf19a7e18a
depends_lib port:zlib \
port:gsl \
@@ -41,9 +52,8 @@
# both patches are included in the GDL CVS version - will not be needed for >0.9rc4
reinplace "s|lib_LIBRARIES|noinst_LIBRARIES|" ${worksrcpath}/src/antlr/Makefile.am
reinplace "s|GDLLexer lexer(istr, \"\")|GDLLexer lexer(istr, \"\", GDLParser::NONE)|" ${worksrcpath}/src/widget.cpp;
-}
-
-post-patch {
+ # add the CMSVLIB installation path
+ reinplace {s|dicom"|dicom" GDLDATADIR "/lib/cmsvlib"|} ${worksrcpath}/src/gdl.cpp
# Avoid using heimdal's broken fnmatch.h
reinplace "s|<\\(fnmatch\.h\\)>|\"/usr/include/\\1\"|" ${worksrcpath}/src/file.cpp
}
@@ -86,17 +96,24 @@
xinstall -m 755 -d ${destroot}${prefix}/share/${name}
xinstall -m 755 -d ${destroot}${prefix}/share/${name}/py
eval xinstall -m 644 [glob ${worksrcpath}/src/py/*.py] ${destroot}${prefix}/share/${name}/py
- xinstall -m 755 -d ${destroot}${prefix}/share/${name}/pro
+ xinstall -m 755 -d ${destroot}${prefix}/share/${name}/lib
xinstall -m 644 -W ${worksrcpath}/src/pro README.txt STATUS UrgentNeed.txt \
- ${destroot}${prefix}/share/${name}/pro
+ ${destroot}${prefix}/share/${name}/lib
eval xinstall -m 644 [glob ${worksrcpath}/src/pro/*.pro] \
- ${destroot}${prefix}/share/${name}/pro
- xinstall -m 755 -d ${destroot}${prefix}/share/${name}/pro/dicom
+ ${destroot}${prefix}/share/${name}/lib
+ xinstall -m 755 -d ${destroot}${prefix}/share/${name}/lib/dicom
eval xinstall -m 644 [glob ${worksrcpath}/src/pro/dicom/*.pro] \
- ${destroot}${prefix}/share/${name}/pro/dicom
+ ${destroot}${prefix}/share/${name}/lib/dicom
xinstall -m 755 -d ${destroot}${prefix}/share/${name}/testsuite
eval xinstall -m 644 [glob ${worksrcpath}/testsuite/*.pro] \
${destroot}${prefix}/share/${name}/testsuite
+# install cmsvlib
+ xinstall -m 755 -d ${destroot}${prefix}/share/${name}/lib/cmsvlib
+ eval xinstall -m 644 [glob ${workpath}/*.pro] ${destroot}${prefix}/share/${name}/lib/cmsvlib/
+ xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/cmsvlib
+ xinstall -m 644 ${workpath}/LICENSE.RSI ${destroot}${prefix}/share/doc/${name}/cmsvlib/
+ eval xinstall -m 644 [glob ${workpath}/*.html] ${destroot}${prefix}/share/doc/${name}/cmsvlib/
+ eval xinstall -m 644 [glob ${workpath}/savefmt.*] ${destroot}${prefix}/share/doc/${name}/cmsvlib/
}
variant mpich description {build with support for MPICH (experimental)} {
@@ -124,9 +141,3 @@
configure.compiler macports-gcc-4.3
depends_build-append port:gcc43
}
-
-post-install {
- ui_msg "* The SAVE and RESTORE routines require auxiliary files from the free CMSVLIB:"
- ui_msg "* http://www.physics.wisc.edu/~craigm/idl/cmsave.html"
- ui_msg ""
-}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100303/eb490f32/attachment-0001.html>
More information about the macports-changes
mailing list