Commits

Joshua Root authored 38c82c300de
ntl: fix quoting of configure and destroot args (https://trac.macports.org/ticket/22025, maintainer timeout)

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@60245 d073be05-634f-4543-b044-5fe20cf6d1d6
No tags

math/ntl/Portfile

Modified
17 17 homepage http://shoup.net/ntl/
18 18 master_sites ${homepage}
19 19 checksums md5 0aac5c680eee09a19732e1601b237a0b \
20 20 sha1 0250461a5e205663f7e446211c9571b6aad249e9 \
21 21 rmd160 5657f4f3b18281787b85f561b184c757254f656f
22 22
23 23 depends_build path:bin/perl:perl5
24 24
25 25 test.run no
26 26
27 -configure.pre_args "PREFIX=${prefix} DOCDIR=${prefix}/share/doc"
28 -configure.args "NTL_STD_CXX=on"
29 -configure.args-append "CC=\$CC CXX=\$CXX CFLAGS=\$CFLAGS CXXFLAGS=\$CXXFLAGS"
27 +configure.pre_args PREFIX=\"${prefix}\" DOCDIR=\"${prefix}/share/doc\"
28 +configure.args NTL_STD_CXX=on \
29 + CC=\"\$CC\" CXX=\"\$CXX\" CFLAGS=\"\$CFLAGS\" CXXFLAGS=\"\$CXXFLAGS\"
30 30
31 31 worksrcdir ${name}-${version}/src
32 32
33 -destroot.destdir "PREFIX=${destroot}${prefix} DOCDIR=${destroot}${prefix}/share/doc"
33 +destroot.destdir PREFIX=\"${destroot}${prefix}\" DOCDIR=\"${destroot}${prefix}/share/doc\"
34 34
35 35 post-patch {
36 36 # Ensure that the correct perl is used
37 37 reinplace "s|perl DoConfig|${prefix}/bin/perl DoConfig|g" ${worksrcpath}/configure
38 38 }
39 39
40 40 variant gmp {
41 41 depends_lib-append port:gmp
42 - configure.args-append "NTL_GMP_LIP=on GMP_PREFIX=${prefix}"
42 + configure.args-append NTL_GMP_LIP=on GMP_PREFIX=\"${prefix}\"
43 43 }
44 44
45 45 post-destroot {
46 46 system "cd ${destroot}${prefix}/share/doc && mv NTL tmp && mv tmp ntl"
47 47 xinstall -m 0644 ${worksrcpath}/../README \
48 48 ${destroot}${prefix}/share/doc/${name}
49 49 xinstall -m 0644 ${worksrcpath}/../doc/copying.txt \
50 50 ${destroot}${prefix}/share/doc/${name}/LICENSE
51 51 }
52 52

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut