Ticket #50117: Portfile-ipe-tools.diff

File Portfile-ipe-tools.diff, 4.9 KB (added by m7.thon@…, 8 years ago)
  • Portfile

    old new  
    22# $Id: Portfile 143695 2015-12-18 04:14:52Z devans@macports.org $
    33
    44PortSystem 1.0
     5PortGroup               github 1.0
    56
    6 name                    ipe-tools
    7 version                 20140303
    8 revision                14
     7github.setup            otfried ipe-tools e5b23399a83d69fd5bb5d4645ef7325b4b57435b
     8version                 20151202
    99categories              graphics
    10 maintainers             jacobs-university.de:m.thon \
     10maintainers             gmail.com:m7.thon \
    1111                        gmx.de:Torsten.Maehne \
    1212                        openmaintainer
    1313platforms               darwin
     
    2020                        svgtoipe, pdftoipe, figtoipe, ipe5toxml
    2121
    2222homepage                http://ipe.otfried.org/
    23 master_sites            sourceforge:project/ipe7/tools
    2423
    25 set svgtoipe-vers       20131107
    26 set pdftoipe-vers       20140303
    27 set figtoipe-vers       20091205
    28 set ipe5toxml-vers      20051114
    29 
    30 distfiles               svgtoipe-${svgtoipe-vers}${extract.suffix} \
    31                         pdftoipe-${pdftoipe-vers}-src${extract.suffix} \
    32                         figtoipe-${figtoipe-vers}${extract.suffix} \
    33                         ipe5toxml-${ipe5toxml-vers}${extract.suffix}
    34 
    35 checksums               svgtoipe-${svgtoipe-vers}${extract.suffix} \
    36                             sha1    3a702dcd5bce542e7479d197f7e8b7a71d6a8fec \
    37                             rmd160  841f690fe3b9f9e6c00139c90606eaaf9f7c67b7 \
    38                         pdftoipe-${pdftoipe-vers}-src${extract.suffix} \
    39                             sha1    d6de3d6a2bad7e97cb3c545665dec40d5d9708f0 \
    40                             rmd160  9744f49d18b7bd72e610122c68d12230e457def5 \
    41                         figtoipe-${figtoipe-vers}${extract.suffix} \
    42                             sha1    b81f2f0cc568e165bdedb618ced9384ebfcb19a3 \
    43                             rmd160  cc1615b55313ab8c151565bdb498fff8ba945029 \
    44                         ipe5toxml-${ipe5toxml-vers}${extract.suffix} \
    45                             sha1    23cb8b40f1aa8a9bc4904d295b08fe0293cda7fc \
    46                             rmd160  44c22367e3ef3cb4607310d15af51f527b006be0
     24checksums               sha1    a650856f7123fe68499f20bbe66695cb040306f7 \
     25                        rmd160  9ee6d4eb84455d55a36d24e2233de9f6a25a21f7
    4726
    48 worksrcdir              .
    49 
    50 patchfiles              patch-svgtoipe-python_path.diff
     27patchfiles              patch-svgtoipe-svgtoipe.py.diff
    5128post-patch {
    52     reinplace "s|__MP_PYTHON_BIN__|${prefix}/bin/python2.7|" ${workpath}/svgtoipe-${svgtoipe-vers}/svgtoipe.py
     29    reinplace "s|__MP_PYTHON_BIN__|${prefix}/bin/python2.7|" ${worksrcpath}/svgtoipe/svgtoipe.py
    5330}
    5431
    5532set python.pkgd ${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages
     
    6744                        CC=${configure.cc} CXX=${configure.cxx}
    6845
    6946build {
    70         system "cd ${workpath}/figtoipe-${figtoipe-vers} && ${build.env} ${build.cmd} ${build.target} CXX=${configure.cxx}"
    71         system "cd ${workpath}/ipe5toxml && ${build.env} ${build.cmd}"
    72         system "cd ${workpath}/pdftoipe-${pdftoipe-vers}-src && ${build.env} CC=${configure.cxx} ${build.cmd} ${build.target}"
     47        system "cd ${worksrcpath}/figtoipe && ${build.env} ${build.cmd} ${build.target} CXX=${configure.cxx}"
     48        system "cd ${worksrcpath}/ipe5toxml && ${build.env} ${build.cmd}"
     49        system "cd ${worksrcpath}/pdftoipe && ${build.env} CC=${configure.cxx} ${build.cmd} ${build.target}"
    7350}
    7451
    7552destroot {
    76         xinstall -m 755 ${workpath}/figtoipe-${figtoipe-vers}/figtoipe ${destroot}${prefix}/bin
    77         xinstall -m 644 ${workpath}/figtoipe-${figtoipe-vers}/figtoipe.1 ${destroot}${prefix}/share/man/man1
    78         xinstall -m 755 ${workpath}/ipe5toxml/ipe5toxml ${destroot}${prefix}/bin
    79         xinstall -m 755 ${workpath}/pdftoipe-${pdftoipe-vers}-src/pdftoipe ${destroot}${prefix}/bin
    80         xinstall -m 644 ${workpath}/pdftoipe-${pdftoipe-vers}-src/pdftoipe.1 ${destroot}${prefix}/share/man/man1
    81         xinstall -m 755 ${workpath}/svgtoipe-${svgtoipe-vers}/svgtoipe.py ${destroot}${prefix}/bin
     53        xinstall -m 755 ${worksrcpath}/figtoipe/figtoipe ${destroot}${prefix}/bin
     54        xinstall -m 644 ${worksrcpath}/figtoipe/figtoipe.1 ${destroot}${prefix}/share/man/man1
     55        xinstall -m 755 ${worksrcpath}/ipe5toxml/ipe5toxml ${destroot}${prefix}/bin
     56        xinstall -m 644 ${worksrcpath}/ipe5toxml/ipe5toxml.1 ${destroot}${prefix}/share/man/man1
     57        xinstall -m 755 ${worksrcpath}/pdftoipe/pdftoipe ${destroot}${prefix}/bin
     58        xinstall -m 644 ${worksrcpath}/pdftoipe/pdftoipe.1 ${destroot}${prefix}/share/man/man1
     59        xinstall -m 755 ${worksrcpath}/svgtoipe/svgtoipe.py ${destroot}${prefix}/bin
    8260}
    83 
    84 livecheck.type  regex
    85 livecheck.url   http://sourceforge.net/projects/ipe7/files/tools/
    86 livecheck.regex "to(?:ipe|xml)-(\[0-9\]*)"