Changeset 129703 for trunk/dports/print


Ignore:
Timestamp:
Dec 18, 2014, 11:24:11 PM (5 years ago)
Author:
larryv@…
Message:

pdflib: Rearrange and reformat

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/print/pdflib/Portfile

    r106659 r129703  
    22# $Id$
    33
    4 PortSystem 1.0
     4PortSystem          1.0
    55
    6 name                    pdflib
    7 version                 7.0.5
    8 revision                1
    9 categories              print
    10 license                 Restrictive
    11 platforms               darwin
    12 maintainers             nomaintainer
    13 use_parallel_build      yes
    14 description                     PDFlib Lite (Source Code) is a subset of PDFlib
    15 long_description        \
    16     ${description},     a library of C routines that allow to programmatically\
    17     generate PDF, the Adobe's Portable Document File format.
     6name                pdflib
     7version             7.0.5
     8revision            1
     9categories          print
     10platforms           darwin
     11license             Restrictive
     12maintainers         nomaintainer
    1813
    19 homepage                http://www.pdflib.com/download/free-software/pdflib-lite-7/
    20 master_sites    http://www.pdflib.com/binaries/PDFlib/[string map {"." ""} [strsed ${version} s/\[^0-9.\].*$//]]/
    21 distname                PDFlib-Lite-${version}
     14description         PDFlib Lite (Source Code) is a subset of PDFlib
     15long_description    ${description}, a library of C routines that allow \
     16                    to programmatically generate PDF, the Adobe's \
     17                    Portable Document File format.
     18homepage            http://www.pdflib.com/download/free-software/pdflib-lite-7/
    2219
     20master_sites        http://www.pdflib.com/binaries/PDFlib/[string map {"." ""} [strsed ${version} s/\[^0-9.\].*$//]]/
     21distname            PDFlib-Lite-${version}
    2322checksums           md5     34a1cc89e2cfdc1e43ba57019e442a90 \
    2423                    sha1    5b2bf5edc49dba3da0997ade0e191511a37fae01 \
    2524                    rmd160  7f3862e70e2f74cf3143ea61e051c30e518ab2eb
    2625
    27 patchfiles              \
    28     patch-perl_Makefile.diff \
    29     patch-libtool.diff
    30 
    31 test.run        yes
    32 
    33 configure.args  --without-java --without-perl --without-py --without-tcl --without-ruby
    34 configure.ccache        no
    35 
    36 # The existence of tiff header files interferes with PDFLib (#11789).
    37 configure.cppflags-delete -I${prefix}/include
    38 configure.cppflags-append -isystem${prefix}/include
     26patchfiles          patch-perl_Makefile.diff \
     27                    patch-libtool.diff
    3928
    4029post-patch {
    41         reinplace "s/PYTHONLIBDIR=`cat << EOF | python/PYTHONLIBDIR=`cat << EOF | \$PYTHONBIN/g" \
     30    reinplace "s/PYTHONLIBDIR=`cat << EOF | python/PYTHONLIBDIR=`cat << EOF | \$PYTHONBIN/g" \
    4231        ${worksrcpath}/configure
    4332}
    4433
     34configure.ccache    no
     35configure.args      --without-java \
     36                    --without-perl \
     37                    --without-py \
     38                    --without-ruby \
     39                    --without-tcl
     40
     41# The existence of tiff header files interferes with PDFLib (#11789).
     42configure.cppflags-delete   -I${prefix}/include
     43configure.cppflags-append   -isystem${prefix}/include
     44
     45use_parallel_build  yes
     46
     47test.run            yes
     48
    4549post-destroot {
    46         xinstall -m 755 -d ${destroot}${prefix}/share/doc/
    47         file copy ${worksrcpath}/doc/pdflib ${destroot}${prefix}/share/doc/${name}
     50    xinstall -m 755 -d ${destroot}${prefix}/share/doc/
     51    file copy ${worksrcpath}/doc/pdflib ${destroot}${prefix}/share/doc/${name}
    4852}
    4953
    5054variant java description {Enable Java language binding} {
    51         configure.args-delete   --without-java
    52         configure.args-append   --with-java=yes
     55    configure.args-delete   --without-java
     56    configure.args-append   --with-java=yes
    5357}
    5458
    5559variant perl description {Enable Perl language binding} {
    56         depends_lib                             path:bin/perl:perl5
    57         configure.args-delete   --without-perl
    58         configure.args-append   --with-perl=${prefix}/bin/perl
     60    depends_lib             path:bin/perl:perl5
     61    configure.args-delete   --without-perl
     62    configure.args-append   --with-perl=${prefix}/bin/perl
    5963}
    6064
    6165variant python24 description {Enable Python language binding using version 2.4} conflicts python25 python26 {
    62         set pyversion           2.4
    63         depends_lib-append                      port:python[strsed ${pyversion} {g/[.]//}]
    64         configure.args-delete   --without-py
    65         configure.args-append   --with-py=${prefix} --with-pyincl=${prefix}/include/python${pyversion}
    66         configure.env-append    PYTHONBIN=${prefix}/bin/python${pyversion}
    67    
    68         post-destroot {
    69                 # ${frameworks_dir}/Python.framework/Versions/2.4/lib/python2.4/ is a link, which MacPorts can not install into
    70                 xinstall -d -m 755 ${destroot}${prefix}/lib/python2.4/
    71                 foreach file [ glob ${destroot}${frameworks_dir}/Python.framework/Versions/2.4/lib/python2.4/* ] {
    72                         file rename ${file} ${destroot}${prefix}/lib/python2.4/
    73                 }
    74         }
     66    set pyversion 2.4
     67    depends_lib-append      port:python[strsed ${pyversion} {g/[.]//}]
     68    configure.args-delete   --without-py
     69    configure.args-append   --with-py=${prefix} \
     70                            --with-pyincl=${prefix}/include/python${pyversion}
     71    configure.env-append    PYTHONBIN=${prefix}/bin/python${pyversion}
     72
     73    post-destroot {
     74        # ${frameworks_dir}/Python.framework/Versions/2.4/lib/python2.4/ is a link, which MacPorts can not install into
     75        xinstall -d -m 755 ${destroot}${prefix}/lib/python2.4/
     76        foreach file [ glob ${destroot}${frameworks_dir}/Python.framework/Versions/2.4/lib/python2.4/* ] {
     77            file rename ${file} ${destroot}${prefix}/lib/python2.4/
     78        }
     79    }
    7580}
    7681
    7782variant python25 description {Enable Python language binding using version 2.5} conflicts python24 python26 python27 {
    78         set pyversion          2.5
    79         depends_lib-append                      port:python[strsed ${pyversion} {g/[.]//}]
    80         configure.args-delete   --without-py
    81         configure.args-append   --with-py=${prefix} --with-pyincl=${prefix}/include/python${pyversion}
    82         configure.env-append    PYTHONBIN=${prefix}/bin/python${pyversion}
    83    
    84         post-destroot {
    85                 # ${frameworks_dir}/Python.framework/Versions/2.5/lib/python2.5/ is a link, which MacPorts can not install into
    86                 xinstall -d -m 755 ${destroot}${prefix}/lib/python2.5/
    87                 foreach file [ glob ${destroot}${frameworks_dir}/Python.framework/Versions/2.5/lib/python2.5/* ] {
    88                         file rename ${file} ${destroot}${prefix}/lib/python2.5/
    89                 }
    90         }
     83    set pyversion 2.5
     84    depends_lib-append      port:python[strsed ${pyversion} {g/[.]//}]
     85    configure.args-delete   --without-py
     86    configure.args-append   --with-py=${prefix} --with-pyincl=${prefix}/include/python${pyversion}
     87    configure.env-append    PYTHONBIN=${prefix}/bin/python${pyversion}
     88
     89    post-destroot {
     90        # ${frameworks_dir}/Python.framework/Versions/2.5/lib/python2.5/ is a link, which MacPorts can not install into
     91        xinstall -d -m 755 ${destroot}${prefix}/lib/python2.5/
     92        foreach file [ glob ${destroot}${frameworks_dir}/Python.framework/Versions/2.5/lib/python2.5/* ] {
     93            file rename ${file} ${destroot}${prefix}/lib/python2.5/
     94        }
     95    }
    9196}
    9297
    9398variant python26 description {Enable Python language binding using version 2.6} conflicts python24 python25 python27 {
    94         set pyversion           2.6
    95         depends_lib-append                      port:python[strsed ${pyversion} {g/[.]//}]
    96         configure.args-delete   --without-py
    97         configure.args-append \
    98         --with-py=${frameworks_dir}/Python.framework/Versions/${pyversion} \
    99         --with-pyincl=${frameworks_dir}/Python.framework/Versions/${pyversion}/include/python${pyversion}
    100         configure.env-append    PYTHONBIN=${prefix}/bin/python${pyversion}
     99    set pyversion 2.6
     100    depends_lib-append      port:python[strsed ${pyversion} {g/[.]//}]
     101    configure.args-delete   --without-py
     102    configure.args-append   --with-py=${frameworks_dir}/Python.framework/Versions/${pyversion} \
     103                            --with-pyincl=${frameworks_dir}/Python.framework/Versions/${pyversion}/include/python${pyversion}
     104    configure.env-append    PYTHONBIN=${prefix}/bin/python${pyversion}
    101105}
    102106
    103107variant python27 description {Enable Python language binding using version 2.7} conflicts python24 python25 python26 {
    104         set pyversion           2.7
    105         depends_lib-append                      port:python[strsed ${pyversion} {g/[.]//}]
    106         configure.args-delete   --without-py
    107         configure.args-append \
    108         --with-py=${frameworks_dir}/Python.framework/Versions/${pyversion} \
    109         --with-pyincl=${frameworks_dir}/Python.framework/Versions/${pyversion}/include/python${pyversion}
    110         configure.env-append    PYTHONBIN=${prefix}/bin/python${pyversion}
     108    set pyversion 2.7
     109    depends_lib-append      port:python[strsed ${pyversion} {g/[.]//}]
     110    configure.args-delete   --without-py
     111    configure.args-append   --with-py=${frameworks_dir}/Python.framework/Versions/${pyversion} \
     112                            --with-pyincl=${frameworks_dir}/Python.framework/Versions/${pyversion}/include/python${pyversion}
     113    configure.env-append    PYTHONBIN=${prefix}/bin/python${pyversion}
    111114}
    112115
    113116variant tcl description {Enable Tcl language binding} {
    114         depends_lib-append                      path:bin/tclsh:tcl
    115         configure.args-delete   --without-tcl
    116         configure.args-append   --with-tcl=${prefix}/bin/tclsh
     117    depends_lib-append      path:bin/tclsh:tcl
     118    configure.args-delete   --without-tcl
     119    configure.args-append   --with-tcl=${prefix}/bin/tclsh
    117120}
    118121
    119122variant ruby description {Enable Ruby language binding} {
    120         depends_lib-append                      port:ruby
    121         pre-configure {
     123    depends_lib-append          port:ruby
     124    pre-configure {
    122125        set rubyIncl [file dirname [glob ${prefix}/lib/ruby/*/*/ruby.h]]
    123         configure.args-delete   --without-ruby
    124         configure.args-append   --with-ruby=${prefix} --with-rubyincl=${rubyIncl}
    125         }
     126        configure.args-delete   --without-ruby
     127        configure.args-append   --with-ruby=${prefix} --with-rubyincl=${rubyIncl}
     128    }
    126129}
    127130
    128131if {[variant_isset universal]} {
    129     depends_build-append port:libtool
     132    depends_build-append    port:libtool
    130133    post-configure {
    131134        file copy -force ${prefix}/bin/glibtool ${worksrcpath}/libtool
     
    135138# The web page says “Note that PDFlib Lite is no longer maintained by PDFlib GmbH”
    136139# and that they “will not release new and updated versions”.
    137 livecheck.type      none
     140livecheck.type              none
Note: See TracChangeset for help on using the changeset viewer.