New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 81302


Ignore:
Timestamp:
07/28/11 22:38:23 (4 years ago)
Author:
ryandesign@…
Message:

pgplot: do not use ".." in patchfile paths; see #30219

Location:
trunk/dports/graphics/pgplot
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/graphics/pgplot/Portfile

    r79101 r81302  
    2525 
    2626distname                        ${name}[join [split ${version} .] ""] 
    27  
    28 worksrcdir                      build 
    29 set srcdir          ${workpath}/${name} 
     27worksrcdir                      ${name} 
     28configure.dir           ${workpath}/build 
     29build.dir                       ${configure.dir} 
    3030 
    3131checksums \ 
     
    4343set compat_version  [join [lrange [split ${version} .] 0 0] .] 
    4444 
    45 pre-patch { 
    46     file mkdir ${worksrcpath} 
     45post-extract { 
     46    file mkdir ${build.dir} 
    4747} 
    4848 
    4949post-patch { 
    5050    # Ensure MacPorts libraries are being used. 
    51     reinplace "s|\\(-L\\\\`pwd\\\\`\\)|\\1 -L${prefix}/lib|" ${srcdir}/makemake 
     51    reinplace "s|\\(-L\\\\`pwd\\\\`\\)|\\1 -L${prefix}/lib|" ${worksrcpath}/makemake 
    5252 
    5353    # Look in the correct place for run-time data files. 
    54     reinplace "s|/usr/local/pgplot/|${prefix}/share/${name}/|" ${srcdir}/src/grgfil.f 
     54    reinplace "s|/usr/local/pgplot/|${prefix}/share/${name}/|" ${worksrcpath}/src/grgfil.f 
    5555 
    5656    # /usr/local/bin/perl may not exist. 
    57     reinplace "s|#!/usr/local/bin/perl|#!/usr/bin/env perl|" ${srcdir}/makehtml ${srcdir}/maketex 
    58  
    59     copy ${srcdir}/drivers.list ${worksrcpath} 
     57    reinplace "s|#!/usr/local/bin/perl|#!/usr/bin/env perl|" ${worksrcpath}/makehtml ${worksrcpath}/maketex 
     58 
     59    copy ${worksrcpath}/drivers.list ${build.dir} 
    6060 
    6161    set drivers  "GIF VGIF LATEX PNG TPNG PS VPS CPS VCPS" 
     
    7171 
    7272    foreach driver ${drivers} { 
    73         reinplace "s|!\\(.*/${driver} .*\\)| \\1|" ${worksrcpath}/drivers.list 
     73        reinplace "s|!\\(.*/${driver} .*\\)| \\1|" ${build.dir}/drivers.list 
    7474    } 
    7575} 
     
    9595 
    9696    # Create configuration file. 
    97     #    For a description of options, see ${srcdir}/sys_linux/g77_gcc.conf 
     97    #    For a description of options, see ${worksrcpath}/sys_linux/g77_gcc.conf 
    9898    lappend options  XINCL            "${configure.cppflags}" 
    9999    lappend options  MOTIF_INCL       "" 
     
    125125    lappend options  CSHARED_LD       "${configure.fc} ${shlib_opts} ${configure.ldflags} ${x11Libs} -install_name ${prefix}/lib/libcpgplot${compat_version}.dylib" 
    126126 
    127     file mkdir ${srcdir}/sys_darwin 
     127    file mkdir ${worksrcpath}/sys_darwin 
    128128    foreach {var val} ${options} { 
    129         system "/bin/echo \"   ${var}=\\\"${val}\\\"\" >> ${srcdir}/sys_darwin/marcports.conf" 
     129        system "/bin/echo \"   ${var}=\\\"${val}\\\"\" >> ${worksrcpath}/sys_darwin/marcports.conf" 
    130130    } 
    131131 
    132132    # Create optional routine which makemake will find and compile. 
    133     system "/bin/echo \"int iand_ (int *a, int *b) { return *a & *b;}\" >> ${srcdir}/sys_darwin/iand.c" 
    134 } 
    135  
    136 configure.cmd       ${srcdir}/makemake 
     133    system "/bin/echo \"int iand_ (int *a, int *b) { return *a & *b;}\" >> ${worksrcpath}/sys_darwin/iand.c" 
     134} 
     135 
     136configure.cmd       ${worksrcpath}/makemake 
    137137configure.pre_args 
    138 configure.args      ${srcdir} ${os.platform} 
     138configure.args      ${worksrcpath} ${os.platform} 
    139139 
    140140# When linking against fortran code, PG_PPU gets number of underscores correct. 
     
    147147    # pgxwin_server is only built if the X11 drivers are requested. 
    148148    # pgdisp is only built if the XDISP driver is requested. 
    149     foreach fl [glob -directory ${worksrcpath} -nocomplain pgxwin_server pgdisp] { 
     149    foreach fl [glob -directory ${destroot.dir} -nocomplain pgxwin_server pgdisp] { 
    150150        xinstall -m 755 ${fl} ${destroot}${prefix}/bin 
    151151    } 
    152152 
    153     foreach fl [glob -directory ${worksrcpath} -nocomplain *.dylib] { 
     153    foreach fl [glob -directory ${destroot.dir} -nocomplain *.dylib] { 
    154154        xinstall -m 755 ${fl} ${destroot}${prefix}/lib 
    155155    } 
    156156 
    157     foreach fl [glob -directory ${worksrcpath} -nocomplain *.a] { 
     157    foreach fl [glob -directory ${destroot.dir} -nocomplain *.a] { 
    158158        xinstall -m 644 ${fl} ${destroot}${prefix}/lib 
    159159    } 
    160160 
    161     foreach fl [glob -directory ${worksrcpath} -nocomplain *.h] { 
     161    foreach fl [glob -directory ${destroot.dir} -nocomplain *.h] { 
    162162        xinstall -m 644 ${fl} ${destroot}${prefix}/include 
    163163    } 
     
    165165    # Install run-time data files. 
    166166    xinstall -d -m 755 ${destroot}${prefix}/share/${name} 
    167     foreach fl [glob -directory ${worksrcpath} -nocomplain *.dat *.txt] { 
     167    foreach fl [glob -directory ${destroot.dir} -nocomplain *.dat *.txt] { 
    168168        xinstall -m 644 ${fl} ${destroot}${prefix}/share/${name} 
    169169    } 
     
    171171    # Install docs. 
    172172    xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name} 
    173     xinstall -m 644 ${srcdir}/copyright.notice ${destroot}${prefix}/share/doc/${name} 
    174     foreach fl [glob -directory ${worksrcpath} -nocomplain *.doc *.html *.pdf] { 
     173    xinstall -m 644 ${worksrcpath}/copyright.notice ${destroot}${prefix}/share/doc/${name} 
     174    foreach fl [glob -directory ${destroot.dir} -nocomplain *.doc *.html *.pdf] { 
    175175        xinstall -m 644 ${fl} ${destroot}${prefix}/share/doc/${name} 
    176176    } 
     
    178178    # Install examples. 
    179179    xinstall -d -m 755 ${destroot}${prefix}/share/${name}/examples 
    180     foreach fl [glob -directory ${srcdir} examples/pgdemo*.f cpg/cpgdemo*.c drivers/*/pg*demo.*] { 
     180    foreach fl [glob -directory ${worksrcpath} examples/pgdemo*.f cpg/cpgdemo*.c drivers/*/pg*demo.*] { 
    181181        xinstall -m 644 ${fl} ${destroot}${prefix}/share/${name}/examples 
    182182    } 
    183     foreach fl [glob -directory ${worksrcpath} *demo*] { 
     183    foreach fl [glob -directory ${destroot.dir} *demo*] { 
    184184        xinstall -m 755 ${fl} ${destroot}${prefix}/share/${name}/examples 
    185185    } 
     
    208208 
    209209    post-extract { 
    210         copy ${prefix}/share/aquaterm/adapters/pgplot/aqdriv.m ${srcdir}/drivers 
     210        copy ${prefix}/share/aquaterm/adapters/pgplot/aqdriv.m ${worksrcpath}/drivers 
    211211    } 
    212212} 
     
    244244 
    245245    post-build { 
    246         system "cd ${worksrcpath} && pdflatex pgplot-routines.tex && pdflatex pgplot-routines.tex" 
    247     } 
    248 } 
     246        system "cd ${build.dir} && pdflatex pgplot-routines.tex && pdflatex pgplot-routines.tex" 
     247    } 
     248} 
  • trunk/dports/graphics/pgplot/files/patch-drivers.list.patch

    r47677 r81302  
    1 --- ../pgplot/drivers.list.orig 1999-05-04 01:02:15.000000000 -0400 
    2 +++ ../pgplot/drivers.list      2009-02-28 13:23:46.000000000 -0500 
     1--- drivers.list.orig   1999-05-04 01:02:15.000000000 -0400 
     2+++ drivers.list        2009-02-28 13:23:46.000000000 -0500 
    33@@ -5,6 +5,7 @@ 
    44 ! available on selected operating systems only. 
  • trunk/dports/graphics/pgplot/files/patch-makemake.diff

    r47644 r81302  
    1 --- ../pgplot/makemake.orig     2009-02-28 16:57:42.000000000 -0500 
    2 +++ ../pgplot/makemake  2009-02-28 16:58:30.000000000 -0500  
     1--- makemake.orig       2009-02-28 16:57:42.000000000 -0500 
     2+++ makemake    2009-02-28 16:58:30.000000000 -0500  
    33@@ -100,6 +100,7 @@ 
    44 #----------------------------------------------------------------------- 
  • trunk/dports/graphics/pgplot/files/patch-proccom.c.diff

    r47644 r81302  
    1 --- ../pgplot/pgdispd/proccom.c.orig    1994-08-22 16:33:35.000000000 -0400 
    2 +++ ../pgplot/pgdispd/proccom.c 2009-02-28 13:37:38.000000000 -0500 
     1--- pgdispd/proccom.c.orig      1994-08-22 16:33:35.000000000 -0400 
     2+++ pgdispd/proccom.c   2009-02-28 13:37:38.000000000 -0500 
    33@@ -93,10 +93,12 @@ 
    44 #include <sys/types.h> 
Note: See TracChangeset for help on using the changeset viewer.