Changeset 45086 for trunk/dports/print


Ignore:
Timestamp:
Jan 8, 2009, 10:52:45 AM (11 years ago)
Author:
mcalhoun@…
Message:

pdflib: Fix python24 and pthon25 variants.
Add python26 variant.
Add test.run.

File:
1 edited

Legend:

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

    r41808 r45086  
    2626depends_build   port:libtool
    2727
     28test.run        yes
     29
    2830configure.args  --without-java --without-perl --without-py --without-tcl --without-ruby
    2931configure.ccache        no
     
    5052}
    5153
    52 variant python24 description {Enable Python language binding using vervion 2.4} conflicts python25 {
     54variant python24 description {Enable Python language binding using vervion 2.4} conflicts python25 python26 {
    5355        set pyversion           2.4
    5456        depends_lib-append                      port:python[strsed ${pyversion} {g/[.]//}]
     
    5658        configure.args-append   --with-py=${prefix} --with-pyincl=${prefix}/include/python${pyversion}
    5759        configure.env-append    PYTHONBIN=${prefix}/bin/python${pyversion}
     60
     61        post-destroot {
     62                # Python requires .so extension
     63                ln -s pdflib_py.dylib ${destroot}${frameworks_dir}/Python.framework/Versions/2.4/lib/python2.4/pdflib_py.so
     64                # ${frameworks_dir}/Python.framework/Versions/2.4/lib/python2.4/ is a link, which MacPorts can not install into
     65                xinstall -d -m 755 ${destroot}${prefix}/lib/python2.4/
     66                foreach file [ glob ${destroot}${frameworks_dir}/Python.framework/Versions/2.4/lib/python2.4/* ] {
     67                        file rename ${file} ${destroot}${prefix}/lib/python2.4/
     68                }
     69        }
    5870}
    5971
    60 variant python25 description {Enable Python language binding using vervion 2.5} conflicts python24 {
     72variant python25 description {Enable Python language binding using vervion 2.5} conflicts python24 python26 {
    6173        set pyversion           2.5
    6274        depends_lib-append                      port:python[strsed ${pyversion} {g/[.]//}]
     
    6476        configure.args-append   --with-py=${prefix} --with-pyincl=${prefix}/include/python${pyversion}
    6577        configure.env-append    PYTHONBIN=${prefix}/bin/python${pyversion}
     78
     79        post-destroot {
     80                # Python requires .so extension
     81                ln -s pdflib_py.dylib ${destroot}${frameworks_dir}/Python.framework/Versions/2.5/lib/python2.5/pdflib_py.so
     82                # ${frameworks_dir}/Python.framework/Versions/2.5/lib/python2.5/ is a link, which MacPorts can not install into
     83                xinstall -d -m 755 ${destroot}${prefix}/lib/python2.5/
     84                foreach file [ glob ${destroot}${frameworks_dir}/Python.framework/Versions/2.5/lib/python2.5/* ] {
     85                        file rename ${file} ${destroot}${prefix}/lib/python2.5/
     86                }
     87        }
     88}
     89
     90variant python26 description {Enable Python language binding using vervion 2.6} conflicts python24 python25 {
     91        set pyversion           2.6
     92        depends_lib-append                      port:python[strsed ${pyversion} {g/[.]//}]
     93        configure.args-delete   --without-py
     94        configure.args-append   --with-py=${frameworks_dir}/Python.framework/Versions/${pyversion}
     95        configure.env-append    PYTHONBIN=${prefix}/bin/python${pyversion}
     96
     97        post-destroot {
     98                # Python requires .so extension
     99                ln -s pdflib_py.dylib ${destroot}${frameworks_dir}/Python.framework/Versions/2.6/lib/python2.6/pdflib_py.so
     100        }
    66101}
    67102
Note: See TracChangeset for help on using the changeset viewer.