Ticket #12768: cups-headers-1.1.23.diff

File cups-headers-1.1.23.diff, 2.8 KB (added by nox@…, 17 years ago)
  • files/README.cups-headers.txt

     
    1 The cups-headers port is a placeholder port that is only really meaningful
    2 on Mac OS X 10.3.x (Jaguar).
    3 
    4 If you have ports on other versions of Mac OS X that break on bad cups headers
    5 or library files, then this port should be uninstalled.
    6 
    7 This port should only install this readme file on versions of Mac OS X other
    8 than Jaguar.
  • Portfile

     
    33PortSystem      1.0
    44
    55name            cups-headers
    6 version         1.1.15
    7 revision        1
     6version         1.1.23
    87categories      devel
    98platforms       darwin
    109maintainers     nomaintainer
     
    1312long_description \
    1413    ${description}
    1514
    16 master_sites    http://www.opensource.apple.com/projects/cups/
    17 distname        cups
     15homepage        http://www.cups.org/
     16master_sites    macports
     17use_bzip2       yes
     18
     19checksums       md5 349757b62a6602d4487c749e2b71b6c4 \
     20                sha1 51ec33d88843bd1fb0be1d83762b8025bbf19a52 \
     21                rmd160 e88c0e222850660cce8474babd817931b9cdf1f0
    1822
    19 checksums       md5 b2aed0b50372687a56f4e665fdd85bee
     23build {}
    2024
    21 configure {}
     25platform darwin 7 {
     26    configure {
     27        copy /usr/bin/cups-config ${worksrcpath}
     28        reinplace -E "/^includedir/s|/usr|${prefix}|" ${worksrcpath}/cups-config
     29    }
    2230
    23 build {}
     31    destroot.target installhdrs
     32    destroot.args   PREFIX=${prefix}
    2433
    25 destroot {
    26     file mkdir ${destroot}${prefix}/share/doc
    27     file copy ${filespath}/README.cups-headers.txt ${destroot}${prefix}/share/doc
     34        post-destroot {
     35        xinstall ${worksrcpath}/cups-config ${destroot}${prefix}/bin
     36    }
    2837}
    2938
    30 platform darwin 7 {
    31     build {
    32         system "perl -pi -e 's,includedir=/usr/include,includedir=${prefix}/include,' '${workpath}/${worksrcdir}/cups-config'"
    33     }
     39platform darwin 8 {
     40    use_configure   no
    3441
    35         destroot {
    36         system "install -d -m 755 '${destroot}${prefix}/bin'"
    37         system "install -c -m 755 '${workpath}/${worksrcdir}/cups-config' '${destroot}${prefix}/bin/'cups-config"
    38         system "cd '${workpath}/${worksrcdir}' && make installhdrs INCLUDEDIR='${destroot}${prefix}/include'"
    39         file mkdir ${destroot}${prefix}/share/doc/
    40         file copy ${filespath}/README.cups-headers.txt ${destroot}${prefix}/share/doc
     42    destroot {
     43        set docdir ${prefix}/share/doc/${name}-${version}
     44        xinstall -d ${destroot}${docdir}
     45        xinstall -m 0644 ${worksrcpath}/README.Not.Panther ${destroot}${docdir}/README
    4146    }
    4247}
    4348
     49universal_variant   no
     50