;ò
Úºô@c           @   s°  d  k  Z  d  k Z d  k Z d  k Z h  d d <d d <d d <d d <d	 d
 <d d <d d <d d <d d <d d <d d <d e <d d <d d <d d <d d <d  d <d! d <d" d# <d$ d% <Z h  d& d <d' d( <d) d* <d+ d, <d- d. <d/ d <d0 d <d1 d <d2 d <d3 d <d4 d <d5 d <d6 d <d7 d <d8 d9 <d: d <d; d <d< d= <d> d <d? d <d@ d <dA dB <dC d) <dD dE <dF d. <dG d <dH d <dI d <dJ d <dK d <dL d <dM d <dN d <dO d <dP d <dQ d <dR d <dS d= <dT d <dU d <dV d <dW dX <dY d <dZ d[ <d\ d[ <d] d <d^ d_ <d` da <db d <dc d <dd d <de d <df d <dg d <dh di <dj d <dk d <dl d <dm d <dn d <do dp <dq dp <dr d <ds dt <du d <dv d <dw dx <dy dz <d{ d <d| d} <d~ d <d€ d <d d‚ <dƒ d„ <d… d <d† d‡ <dˆ d‰ <dŠ d <Z g  a d‹ f  dŒ „  ƒ  YZ d f  dŽ „  ƒ  YZ	 d f  d „  ƒ  YZ
 d‘ f  d’ „  ƒ  YZ d“ e f d” „  ƒ  YZ d• e f d– „  ƒ  YZ d— e f d˜ „  ƒ  YZ d™ e f dš „  ƒ  YZ d› „  Z dœ „  Z e e d „ Z dž dŸ „ Z d  „  Z d¡ „  Z d¢ „  Z d£ „  Z d¤ d¥ d¦ „ Z d  S(§   Ns   default_bin_dirs   /usr/pkg/bins   default_mod_dirs$   /usr/pkg/lib/python2p3/site-packagess   default_sip_dirs   /usr/pkg/share/sip2p3s
   py_inc_dirs   /usr/pkg/include/python2p3s
   py_lib_dirs   /usr/pkg/lib/python2p3/configs
   py_versioni s   qt_dirs   /usr/pkg/qt3s
   qt_editions   frees
   qt_inc_dirs   /usr/pkg/qt3/includes   qt_libs   qt-mts
   qt_lib_dirs   /usr/pkg/qt3/libs   qt_prl_libss   qt_threadedi   s
   qt_versioni s   qt_winconfigs    s   sip_bins   /usr/pkg/bin/sip2p3s   sip_inc_dirs   sip_mod_dirs   sip_versioni   s   sip_version_strs   4.0rc3s	   AIX_SHLIBs   ARs   ar rus   CCs   ccs   CFLAGSs@   -O -DGLX_GLXEXT_LEGACY -I/usr/pkg/include -I/usr/openwin/includes   CFLAGS_DEBUGs   -gs   CFLAGS_EXCEPTIONS_OFFs   CFLAGS_EXCEPTIONS_ONs	   CFLAGS_MTs   CFLAGS_MT_DBGs   CFLAGS_MT_DLLs   CFLAGS_MT_DLLDBGs   CFLAGS_RELEASEs   CFLAGS_RTTI_OFFs   CFLAGS_RTTI_ONs   CFLAGS_SHLIBs   -fPICs   CFLAGS_STL_OFFs   CFLAGS_STL_ONs   CFLAGS_THREADs   -D_REENTRANTs   CFLAGS_WARN_OFFs   CFLAGS_WARN_ONs   CHK_DIR_EXISTSs   COPYs   cp -fs   CXXs   CXXFLAGSsU   -O -DGLX_GLXEXT_LEGACY -I/usr/pkg/include -I/usr/openwin/include -DQ_TRAILING_DIR_SEPs   CXXFLAGS_DEBUGs   CXXFLAGS_EXCEPTIONS_OFFs   CXXFLAGS_EXCEPTIONS_ONs   CXXFLAGS_MTs   CXXFLAGS_MT_DBGs   CXXFLAGS_MT_DLLs   CXXFLAGS_MT_DLLDBGs   CXXFLAGS_RELEASEs   CXXFLAGS_RTTI_OFFs   CXXFLAGS_RTTI_ONs   CXXFLAGS_SHLIBs   CXXFLAGS_STL_OFFs   CXXFLAGS_STL_ONs   CXXFLAGS_THREADs   CXXFLAGS_WARN_OFFs   CXXFLAGS_WARN_ONs   DEFINESs   DEL_FILEs   rm -fs   EXTENSION_SHLIBs   INCDIRs   /usr/pkg/includes   INCDIR_OPENGLs	   INCDIR_QTs
   INCDIR_X11s   /usr/openwin/includes   LFLAGSsu   -Wl,-R/usr/pkg/qt3/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/openwin/lib -Wl,-R/usr/openwin/lib -L/usr/pkg/qt3/libs   LFLAGS_CONSOLEs   LFLAGS_CONSOLE_DLLs   LFLAGS_DEBUGs   LFLAGS_OPENGLs   LFLAGS_PLUGINs   LFLAGS_RELEASEs   LFLAGS_SHLIBs   -shareds   LFLAGS_SONAMEs   LFLAGS_THREADs   LFLAGS_WINDOWSs   LFLAGS_WINDOWS_DLLs   LIBs   LIBDIRs   /usr/pkg/libs   LIBDIR_OPENGLs	   LIBDIR_QTs
   LIBDIR_X11s   /usr/openwin/libs   LIBSs   LIBS_CONSOLEs   LIBS_OPENGLs   -lGLU -lGL -lXmus   LIBS_THREADs	   -lpthreads   LIBS_WINDOWSs   LIBS_X11s-   -lXext -lX11 -lm -lresolv -lsocket -lnsl -lrts   LINKs   libtool --mode=link CCs
   LINK_SHLIBs   LINK_SHLIB_CMDsÅ   libtool --mode=link CC  		-o , 			), 			))                 ,                         -version-info .,,):.,,),                         -module -avoid-version) 		   		-rpath , 			/lib, 			/plugins,))s   MAKEFILE_GENERATORs   UNIXs   MKDIRs   MOCs   /usr/pkg/qt3/bin/mocs   RANLIBs   trues   RPATHs   Configurationc           B   s#   t  Z d  Z e d „ Z d „  Z RS(   s8   The class that represents SIP configuration values.
    c         C   s.   | o
 | } n g  } | i t ƒ | a d S(   s˜   Initialise an instance of the class.

        sub_cfg is the list of sub-class configurations.  It should be None
        when called normally.
        N(   s   sub_cfgs   cfgs   appends   _pkg_configs   _config_stack(   s   selfs   sub_cfgs   cfg(    (    s1   /usr/pkg/lib/python2p3/site-packages/sipconfig.pys   __init__‡   s     
 c         C   sD   x0 t  D]( } y | | SWq t j
 o q Xq Wt d | ‚ d S(   s¦   Allow configuration values and user options to be handled as
        instance variables.

        name is the name of the configuration value or user option.
        s6   "%s" is not a valid configuration value or user optionN(   s   _config_stacks   cfgs   names   KeyErrors   AttributeError(   s   selfs   names   cfg(    (    s1   /usr/pkg/lib/python2p3/site-packages/sipconfig.pys   __getattr__—   s      	(   s   __name__s
   __module__s   __doc__s   Nones   __init__s   __getattr__(    (    (    s1   /usr/pkg/lib/python2p3/site-packages/sipconfig.pys   Configuration„   s    s   _UniqueListc           B   s5   t  Z d  Z e d „ Z d „  Z d „  Z d „  Z RS(   s=   A limited list that ensures all its elements are unique.
    c         C   s'   | t j o g  |  _ n
 | |  _ d S(   sR   Initialise the instance.

        value is the initial value of the list.
        N(   s   values   Nones   selfs   _list(   s   selfs   value(    (    s1   /usr/pkg/lib/python2p3/site-packages/sipconfig.pys   __init__©   s     c         C   s(   | |  i j o |  i i | ƒ n d S(   sg   Append a value to the list if it isn't already present.

        value is the value to append.
        N(   s   values   selfs   _lists   append(   s   selfs   value(    (    s1   /usr/pkg/lib/python2p3/site-packages/sipconfig.pys   append³   s     c         C   s"   x | D] } |  i | ƒ q Wd S(   sˆ   Append each element of a value to a list if it isn't already
        present.

        value is the list of elements to append.
        N(   s   values   els   selfs   append(   s   selfs   values   el(    (    s1   /usr/pkg/lib/python2p3/site-packages/sipconfig.pys   extend»   s      c         C   s   |  i Sd S(   s'   Return the list as a raw list.
        N(   s   selfs   _list(   s   self(    (    s1   /usr/pkg/lib/python2p3/site-packages/sipconfig.pys   as_listÄ   s     (   s   __name__s
   __module__s   __doc__s   Nones   __init__s   appends   extends   as_list(    (    (    s1   /usr/pkg/lib/python2p3/site-packages/sipconfig.pys   _UniqueList¦   s
    
			s   _Macroc           B   s;   t  Z d  Z d „  Z d „  Z d „  Z d „  Z d „  Z RS(   s/   A macro that can be manipulated as a list.
    c         C   s   | |  _ |  i | ƒ d S(   sz   Initialise the instance.

        name is the name of the macro.
        value is the initial value of the macro.
        N(   s   names   selfs   _names   sets   value(   s   selfs   names   value(    (    s1   /usr/pkg/lib/python2p3/site-packages/sipconfig.pys   __init__Í   s     	c         C   sa   g  |  _ t | t ƒ o | i ƒ  } n t | ƒ t i j o |  i	 | ƒ n |  i
 | ƒ d S(   sš   Explicitly set the value of the macro.

        value is the new value.  It may be a string, a list of strings or a
        _UniqueList instance.
        N(   s   selfs   _macros
   isinstances   values   _UniqueLists   as_lists   types   typess   ListTypes   extends   append(   s   selfs   value(    (    s1   /usr/pkg/lib/python2p3/site-packages/sipconfig.pys   setÖ   s     	c         C   s   | o |  i i | ƒ n d S(   sL   Append a value to the macro.

        value is the value to append.
        N(   s   values   selfs   _macros   append(   s   selfs   value(    (    s1   /usr/pkg/lib/python2p3/site-packages/sipconfig.pys   appendæ   s     c         C   s"   x | D] } |  i | ƒ q Wd S(   sg   Append each element of a value to the macro.

        value is the list of elements to append.
        N(   s   values   els   selfs   append(   s   selfs   values   el(    (    s1   /usr/pkg/lib/python2p3/site-packages/sipconfig.pys   extendî   s      c         C   s   |  i Sd S(   s$   Return the macro as a list.
        N(   s   selfs   _macro(   s   self(    (    s1   /usr/pkg/lib/python2p3/site-packages/sipconfig.pys   as_listö   s     (   s   __name__s
   __module__s   __doc__s   __init__s   sets   appends   extends   as_list(    (    (    s1   /usr/pkg/lib/python2p3/site-packages/sipconfig.pys   _MacroÊ   s    					s   Makefilec           B   s¿   t  Z d  Z d d d d d e d e d e d „
 Z d „  Z d „  Z d d „ Z d „  Z d	 „  Z	 d
 „  Z
 d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z RS(   s9   The base class for the different types of Makefiles.
    i    s   Makefilec         C   s_  | o | i d j o t d ƒ n | |  _ | |  _ | |  _ | |  _	 | |  _ | |  _ |	 |  _ |
 |  _ | |  _ d |  _ | o | i o d |  _ n
 | |  _ | t j o* | i d j o d |  _ qæ d |  _ n
 | |  _ x† t i ƒ  D]x } y t | | ƒ } Wn t! j
 o t | } n X| d d d f j o t" i# | ƒ } n t$ | | ƒ |  i% | <qó W|  i& d d	 ƒ |  _' g  |  _( g  |  _) g  |  _* g  |  _+ g  |  _, g  |  _- g  |  _. |  i' d	 j o d
 } d } d } d } n d } d } d } d } |  i& d | ƒ |  _3 |  i& d | ƒ |  _4 |  i& d | ƒ |  _5 |  i& d | ƒ |  _6 d S(   sþ  Initialise an instance of the target.  All the macros are left
        unchanged allowing scripts to manipulate them at will.

        configuration is the current configuration.
        console is set if the target is a console (rather than windows) target.
        qt is set if the target uses Qt.
        opengl is set if the target uses OpenGL.
        python is set if the target #includes Python.h.
        debug is set to generated a debugging version of the target.
        threaded is set if the target requires thread support.  It is
        automatically set if the target uses Qt and Qt has thread support
        enabled.
        warnings is set if compiler warning messages are required.  The default
        of None means that warnings are enabled for SIP v4 and later,
        otherwise they are disabled.
        debug is set if debugging symbols should be generated.
        dir is the directory for build files and Makefiles.
        makefile is the name of the Makefile.
        installs is a list of extra install targets.  Each element is a two
        part list, the first of which is the source and the second is the
        destination.  If the source is another list then it is a set of source
        files and the destination is a directory.
        i    s>   The target uses Qt but SIP was built with Qt support disabled.i   i   s   DEFINESs   INCDIRs   LIBDIRs   MAKEFILE_GENERATORs   UNIXs   copys   dels   mkdirs   if not exists   cp -fs   rm -fs   mkdir -ps   test -ds   COPYs   DEL_FILEs   MKDIRs   CHK_DIR_EXISTSN(7   s   qts   configurations
   qt_versions   errors   selfs   configs   consoles   _qts   opengls   _opengls   pythons   _pythons   debugs   _debugs   dirs   _dirs   makefiles	   _makefiles   installss	   _installss
   _finaliseds   qt_threadeds	   _threadeds   threadeds   warningss   Nones   sip_versions	   _warningss   _default_macross   keyss   ms   getattrs   vals   AttributeErrors   strings   splits   _Macros   __dict__s   optional_strings	   generators   extra_cflagss   extra_cxxflagss   extra_definess   extra_include_dirss   extra_lflagss   extra_lib_dirss
   extra_libss   def_copys   def_rms	   def_mkdirs   def_chk_dir_existss   copys   rms   mkdirs   chkdir(   s   selfs   configurations   consoles   qts   opengls   pythons   threadeds   warningss   debugs   dirs   makefiles   installss   vals   def_copys   def_rms	   def_mkdirs   def_chk_dir_existss   m(    (    s1   /usr/pkg/lib/python2p3/site-packages/sipconfig.pys   __init__ÿ   sf     												 							
c         C   sx  |  i o[ t i |  i i ƒ } d | j } d | j } d | j }	 d | j } |  i i t j	 } n d } d } d }	 d } d } t ƒ  } | i |  i ƒ | i |  i d ƒ ƒ t ƒ  } | i |  i ƒ | i |  i d ƒ ƒ t ƒ  } | i |  i ƒ | i |  i d	 ƒ ƒ t d
 g ƒ } | i |  i ƒ | i |  i d ƒ ƒ t ƒ  } | i |  i ƒ | i |  i d ƒ ƒ t ƒ  } | i |  i ƒ | i |  i d ƒ ƒ g  } x' |  i D] } | i  |  i! | ƒ ƒ q³W| i |  i d ƒ ƒ t ƒ  } xD |  i D]9 } t# i$ i% | ƒ d d
 d f j o | i  | ƒ qüqüW|  i& ov | i  |  i i' ƒ |  i( d j oO | i  |  i i) ƒ | i  |  i! d |  i i* d ?|  i i* d ?d @f ƒ ƒ q¹n |  i( d j oñ | o d } d } n d } d } | i |  i | ƒ ƒ | i |  i | ƒ ƒ |	 o d } d } n d } d } | i |  i | ƒ ƒ | i |  i | ƒ ƒ | o d } d } n d  } d! } | i |  i | ƒ ƒ | i |  i | ƒ ƒ n |  i1 o9 | o d" } d# } n d$ } d% } d& } d' } d( } n6 | o d) } d* } n d+ } d, } d- } d. } d/ } |  i( d j o |  i7 o0 | i |  i | ƒ ƒ | i |  i | ƒ ƒ n | i |  i | ƒ ƒ | i |  i | ƒ ƒ | i |  i | ƒ ƒ |  i8 o d0 } d1 }
 n d2 } d3 }
 | i |  i | ƒ ƒ | i |  i |
 ƒ ƒ |  i7 oF | i |  i d4 ƒ ƒ | i |  i d5 ƒ ƒ | i |  i d6 ƒ ƒ n |  i; o | i |  i d7 ƒ ƒ n | o | i |  i d8 ƒ ƒ n |  i o|  i( d j o | o | i  d9 ƒ n |  i1 o | i  d: ƒ n |  i7 o | i  d; ƒ n | i |  i d< ƒ ƒ |  i d= ƒ } | i | ƒ | i | ƒ |  i i= } t> i? d> j o | o) | t i@ tA |  i iB ƒ d
 d ƒ } n | i  |  i! | ƒ ƒ n |  iC oh | i |  i d? ƒ ƒ | i |  i d@ ƒ ƒ | o0 | i |  i dA ƒ ƒ | i |  i dB ƒ ƒ q&n |  i p |  iC oR | i |  i dC ƒ ƒ | o0 | i |  i dD ƒ ƒ | i |  i dE ƒ ƒ qŒn |  i7 o | o | i |  i dF ƒ ƒ n | o  | i t i |  i i ƒ ƒ n | i |  iD | iE ƒ  ƒ ƒ |  iF iG | ƒ |  iH iG | ƒ |  iI iG | ƒ |  iJ iG | ƒ |  iK iG | ƒ |  iL iG | ƒ |  iM iG | ƒ d |  _N dG S(H   sb   Finalise the macros by doing any consolidation that isn't specific
        to a Makefile.
        s   shareds
   exceptionss   rttis   stli   i    s   CFLAGSs   CXXFLAGSs   DEFINESs   .s   INCDIRs   LFLAGSs   LIBDIRs   LIBSs    s   ..s   UNIXs
   python%u%ui   i   iÿ   s   CFLAGS_EXCEPTIONS_ONs   CXXFLAGS_EXCEPTIONS_ONs   CFLAGS_EXCEPTIONS_OFFs   CXXFLAGS_EXCEPTIONS_OFFs   CFLAGS_RTTI_ONs   CXXFLAGS_RTTI_ONs   CFLAGS_RTTI_OFFs   CXXFLAGS_RTTI_OFFs   CFLAGS_STL_ONs   CXXFLAGS_STL_ONs   CFLAGS_STL_OFFs   CXXFLAGS_STL_OFFs   CFLAGS_MT_DLLDBGs   CXXFLAGS_MT_DLLDBGs   CFLAGS_MT_DBGs   CXXFLAGS_MT_DBGs   CFLAGS_DEBUGs   CXXFLAGS_DEBUGs   LFLAGS_DEBUGs   CFLAGS_MT_DLLs   CXXFLAGS_MT_DLLs	   CFLAGS_MTs   CXXFLAGS_MTs   CFLAGS_RELEASEs   CXXFLAGS_RELEASEs   LFLAGS_RELEASEs   CFLAGS_WARN_ONs   CXXFLAGS_WARN_ONs   CFLAGS_WARN_OFFs   CXXFLAGS_WARN_OFFs   CFLAGS_THREADs   CXXFLAGS_THREADs   LFLAGS_THREADs   LIBS_CONSOLEs   LIBS_WINDOWSs   QT_DLLs   QT_NO_DEBUGs   QT_THREAD_SUPPORTs	   INCDIR_QTs	   LIBDIR_QTs   win32s   INCDIR_OPENGLs   LFLAGS_OPENGLs   LIBDIR_OPENGLs   LIBS_OPENGLs
   INCDIR_X11s
   LIBDIR_X11s   LIBS_X11s   LIBS_THREADN(O   s   selfs   _qts   strings   splits   configs   qt_winconfigs   wcfgs
   win_shareds   win_exceptionss   win_rttis   win_stls   qt_prl_libss   Nones   use_prls   _UniqueLists   cflagss   extends   extra_cflagss   optional_lists   cxxflagss   extra_cxxflagss   definess   extra_definess   incdirs   extra_include_dirss   lflagss   extra_lflagss   libdirs   extra_lib_dirss   libss
   extra_libss   ls   appends   platform_libs   rpathss   oss   paths   dirnames   _pythons
   py_inc_dirs	   generators
   py_lib_dirs
   py_versions   cflags_exceptionss   cxxflags_exceptionss   cflags_rttis   cxxflags_rttis
   cflags_stls   cxxflags_stls   _debugs	   cflags_mts   cxxflags_mts   cflags_debugs   cxxflags_debugs   lflags_debugs	   _threadeds	   _warningss   cflags_warns   cxxflags_warns   consoles	   libdir_qts   qt_libs   syss   platforms   replaces   version_to_strings
   qt_versions   _opengls   _platform_rpathss   as_lists   CFLAGSs   sets   CXXFLAGSs   DEFINESs   INCDIRs   LFLAGSs   LIBDIRs   LIBSs
   _finalised(   s   selfs   cxxflags_debugs   win_stls
   cflags_stls	   libdir_qts   use_prls   rpathss   cflags_debugs   definess   win_rttis   cxxflags_warns   cxxflags_mts   libdirs   cxxflags_rttis
   win_shareds   cxxflags_exceptionss   qt_libs   cflags_warns	   cflags_mts   win_exceptionss   cflags_exceptionss   cflags_rttis   cxxflagss   cflagss   libss   lflags_debugs   incdirs   cxxflags_stls   ls   lflagss   wcfg(    (    s1   /usr/pkg/lib/python2p3/site-packages/sipconfig.pys   finalised  s"    
					
 	
 "
@












)
 c         C   s   |  i | i ƒ  Sd S(   s]   Return an optional Makefile macro as a list.

        name is the name of the macro.
        N(   s   selfs   __dict__s   names   as_list(   s   selfs   name(    (    s1   /usr/pkg/lib/python2p3/site-packages/sipconfig.pys   optional_list6  s     s    c         C   s2   t  i |  i | ƒ ƒ } | o
 | } n | Sd S(   s„   Return an optional Makefile macro as a string.

        name is the name of the macro.
        default is the default value
        N(   s   strings   joins   selfs   optional_lists   names   ss   default(   s   selfs   names   defaults   s(    (    s1   /usr/pkg/lib/python2p3/site-packages/sipconfig.pys   optional_string=  s
     
c         C   s0   |  i | ƒ } | o t d | ‚ n | Sd S(   s^   Return a required Makefile macro as a string.

        name is the name of the macro.
        s    "%s" must have a non-empty valueN(   s   selfs   optional_strings   names   ss
   ValueError(   s   selfs   names   s(    (    s1   /usr/pkg/lib/python2p3/site-packages/sipconfig.pys   required_stringJ  s
     c         C   sP   g  } |  i d ƒ } | o, x) | D] } | i t | | ƒ ƒ q# Wn | Sd S(   sj   Return a list of platform specific rpath flags.

        rpaths is the cannonical list of rpaths.
        s   RPATHN(   s   flagss   selfs   optional_strings   prefixs   rpathss   rs   appends   _quote(   s   selfs   rpathss   prefixs   rs   flags(    (    s1   /usr/pkg/lib/python2p3/site-packages/sipconfig.pys   _platform_rpathsV  s      c         C   s0   |  i d j o | d } n d | } | Sd S(   sm   Return a library name in platform specific form.

        clib is a library name in cannonical form.
        s   UNIXs   .libs   -lN(   s   selfs	   generators   clibs   plib(   s   selfs   clibs   plib(    (    s1   /usr/pkg/lib/python2p3/site-packages/sipconfig.pys   platform_libd  s
     
c         C   s¼  |  i o t i i |  i | ƒ } n | } h  } y t | d ƒ } Wn) t
 j
 o } t d | | f ƒ n Xd } | i ƒ  } x¬ | o¤ t i | ƒ } | o | d d j oc t i | d ƒ } | d j o t d | | f ƒ n t i | | d ƒ | t i | |  ƒ <n | d } | i ƒ  } q† W| i ƒ  xJ d d	 f D]< } y | | WqIt j
 o t d
 | | f ƒ qIXqIWx@ d d f D]2 } y | | Wq–t j
 o d | | <q–Xq–W|  i d j o
 d }
 n d }
 g  } xD t i | d	 ƒ D]/ } t i i | ƒ \ } }	 | i | |
 ƒ qWxe t i | d ƒ D]P } |  i o t d | ƒ n t i i | ƒ \ } }	 | i d | |
 ƒ qMWt i | ƒ | d <| Sd S(   s~   
        Parse a build file and return the corresponding dictionary.

        filename is the name of the build file.
        s   rs   Unable to open "%s": %si   i    s   #s   =s?   "%s" line %d: Line must be in the form 'name = value value...'.s   targets   sourcess   "%s" is missing from "%s".s   headerss   moc_headerss    s   UNIXs   .objs   .os/   "%s" defines "moc_headers" for a non-Qt module.s   moc_s   objectsN(    s   selfs   _dirs   oss   paths   joins   filenames   bfnames   dicts   opens   fs   IOErrors   details   errors   line_nrs   readlines   lines   strings   strips   finds   eqs   closes   is   KeyErrors	   generators   exts   olists   splits   splitexts   roots   discards   appends   _qt(   s   selfs   filenames   olists   eqs   bfnames   is   fs   details   roots   discards   exts   dicts   line_nrs   line(    (    s1   /usr/pkg/lib/python2p3/site-packages/sipconfig.pys   parse_build_filep  sd     
 ,

  
  c         C   s    | i d |  i ƒ x5 t i | d ƒ D]  } | i d |  i | f ƒ q( WxM t i | d ƒ D]8 } t i	 i
 | ƒ \ } } | i d |  i | f ƒ q` Wd S(   sƒ   Generate the clean target.

        mfile is the file object.
        build is the dictionary created from the build file.
        s   	-%s $(TARGET)
s   objectss   	-%s %s
s   moc_headerss   	-%s moc_%s.cpp
N(   s   mfiles   writes   selfs   rms   strings   splits   builds   fs   oss   paths   splitexts   roots   discard(   s   selfs   mfiles   builds   fs   discards   root(    (    s1   /usr/pkg/lib/python2p3/site-packages/sipconfig.pys   clean_build_file_objectsº  s       c         C   s   |  i o |  i ƒ  n d S(   s.   The Makefile is now ready to be used.
        N(   s   selfs
   _finaliseds   finalise(   s   self(    (    s1   /usr/pkg/lib/python2p3/site-packages/sipconfig.pys   readyÉ  s     c         C   s$  |  i ƒ  |  i o t i i |  i |  i ƒ } n
 |  i } y t | d ƒ } Wn) t
 j
 o } t d | | f ƒ n X|  i | ƒ |  i | ƒ |  i | ƒ |  i o] t |  i ƒ t i j o |  i g |  _ n x. |  i D] \ } } |  i | | | ƒ qâ Wn |  i | ƒ | i ƒ  d S(   s   Generate the Makefile.
        s   ws   Unable to create "%s": %sN(   s   selfs   readys   _dirs   oss   paths   joins	   _makefiles   mfnames   opens   mfiles   IOErrors   details   errors   generate_macros_and_ruless   generate_target_defaults   generate_target_installs	   _installss   types   typess   ListTypes   srcs   dsts   install_files   generate_target_cleans   close(   s   selfs   srcs   details   mfiles   dsts   mfname(    (    s1   /usr/pkg/lib/python2p3/site-packages/sipconfig.pys   generateÏ  s(     

	

 c         C   sÿ  | i d |  i d ƒ ƒ | i d |  i d ƒ ƒ | i d |  i d ƒ ƒ g  } x( |  i d ƒ D] } | i d | ƒ qd Wx. |  i d	 ƒ D] } | i d
 t | ƒ ƒ q W| i d t	 i
 | ƒ ƒ | i d |  i d ƒ ƒ | i d |  i d ƒ ƒ | i d |  i d ƒ ƒ g  } |  i d j o
 d } n d } x. |  i d ƒ D] } | i | t | ƒ ƒ qNW| i |  i d ƒ ƒ | i d t	 i
 | ƒ ƒ |  i o$ | i d t |  i d ƒ ƒ ƒ n |  i d j o | i d ƒ n | i d ƒ d S(   sj   The default implementation of the macros and rules generation.

        mfile is the file object.
        s   CC = %s
s   CCs	   CXX = %s
s   CXXs
   LINK = %s
s   LINKs   DEFINESs   -Ds   INCDIRs   -Is   CPPFLAGS = %s
s   CFLAGS = %s
s   CFLAGSs   CXXFLAGS = %s
s   CXXFLAGSs   LFLAGS = %s
s   LFLAGSs   UNIXs	   /LIBPATH:s   -Ls   LIBDIRs   LIBSs
   LIBS = %s
s	   MOC = %s
s   MOCsg  
.SUFFIXES: .c .cpp .cc .cxx .C

{.}.cpp{}.obj::
	$(CXX) -c $(CXXFLAGS) $(CPPFLAGS) -Fo @<<
	$<
<<

{.}.cc{}.obj::
	$(CXX) -c $(CXXFLAGS) $(CPPFLAGS) -Fo @<<
	$<
<<

{.}.cxx{}.obj::
	$(CXX) -c $(CXXFLAGS) $(CPPFLAGS) -Fo @<<
	$<
<<

{.}.C{}.obj::
	$(CXX) -c $(CXXFLAGS) $(CPPFLAGS) -Fo @<<
	$<
<<

{.}.c{}.obj::
	$(CC) -c $(CFLAGS) $(CPPFLAGS) -Fo @<<
	$<
<<
s$  
.SUFFIXES: .c .o .cpp .cc .cxx .C

.cpp.o:
	$(CXX) -c $(CXXFLAGS) $(CPPFLAGS) -o $@ $<

.cc.o:
	$(CXX) -c $(CXXFLAGS) $(CPPFLAGS) -o $@ $<

.cxx.o:
	$(CXX) -c $(CXXFLAGS) $(CPPFLAGS) -o $@ $<

.C.o:
	$(CXX) -c $(CXXFLAGS) $(CPPFLAGS) -o $@ $<

.c.o:
	$(CC) -c $(CFLAGS) $(CPPFLAGS) -o $@ $<
N(   s   mfiles   writes   selfs   required_strings   cppflagss   optional_lists   fs   appends   _quotes   strings   joins   optional_strings   libss	   generators   libdir_prefixs   lds   extends   _qt(   s   selfs   mfiles   cppflagss   lds   fs   libdir_prefixs   libs(    (    s1   /usr/pkg/lib/python2p3/site-packages/sipconfig.pys   generate_macros_and_rulesí  s:       
 
$c         C   s   | i d ƒ d S(   s]   The default implementation of the default target.

        mfile is the file object.
        s   
all:
N(   s   mfiles   write(   s   selfs   mfile(    (    s1   /usr/pkg/lib/python2p3/site-packages/sipconfig.pys   generate_target_defaultF  s     c         C   s   | i d ƒ d S(   s]   The default implementation of the install target.

        mfile is the file object.
        s
   
install:
N(   s   mfiles   write(   s   selfs   mfile(    (    s1   /usr/pkg/lib/python2p3/site-packages/sipconfig.pys   generate_target_installM  s     c         C   s   | i d ƒ d S(   s[   The default implementation of the clean target.

        mfile is the file object.
        s   
clean:
N(   s   mfiles   write(   s   selfs   mfile(    (    s1   /usr/pkg/lib/python2p3/site-packages/sipconfig.pys   generate_target_cleanT  s     c      
   C   sç   d | } | i d |  i t | ƒ f ƒ |  i d j o | i d ƒ n | i d |  i t | ƒ f ƒ t | ƒ t
 i j o | g } n xR | D]J } | i d |  i t | ƒ t t i i | t i i | ƒ ƒ ƒ f ƒ q• Wd S(   sõ   Install one or more files in a directory.

        mfile is the file object.
        src is the name of a single file to install, or the list of a number of
        files to install.
        dst is the name of the destination directory.
        s
   $(DESTDIR)s   	@%s %s s   UNIXs   || s   %s %s
s
   	%s %s %s
N(   s   dsts   mfiles   writes   selfs   chkdirs   _quotes	   generators   mkdirs   types   srcs   typess   ListTypes   sfs   copys   oss   paths   joins   basename(   s   selfs   mfiles   srcs   dsts   sf(    (    s1   /usr/pkg/lib/python2p3/site-packages/sipconfig.pys   install_file[  s     
   (   s   __name__s
   __module__s   __doc__s   Nones   __init__s   finalises   optional_lists   optional_strings   required_strings   _platform_rpathss   platform_libs   parse_build_files   clean_build_file_objectss   readys   generates   generate_macros_and_ruless   generate_target_defaults   generate_target_installs   generate_target_cleans   install_file(    (    (    s1   /usr/pkg/lib/python2p3/site-packages/sipconfig.pys   Makefileü   s"    'e	Ò					J				Y			s   ParentMakefilec           B   sP   t  Z d  Z e d e d „ Z d „  Z d „  Z d „  Z d „  Z d d „ Z	 RS(	   s1   The class that represents a parent Makefile.
    s   Makefilec      	   C   s/   t  i |  | d | d | d | ƒ| |  _ d S(   si   Initialise an instance of a parent Makefile.

        subdirs is the sequence of subdirectories.
        s   dirs   makefiles   installsN(	   s   Makefiles   __init__s   selfs   configurations   dirs   makefiles   installss   subdirss   _subdirs(   s   selfs   configurations   subdirss   dirs   makefiles   installs(    (    s1   /usr/pkg/lib/python2p3/site-packages/sipconfig.pys   __init__w  s     "c         C   s   d S(   sJ   Generate the macros and rules.

        mfile is the file object.
        N(    (   s   selfs   mfile(    (    s1   /usr/pkg/lib/python2p3/site-packages/sipconfig.pys   generate_macros_and_rules  s     c         C   s   |  i | ƒ d S(   sH   Generate the default target.

        mfile is the file object.
        N(   s   selfs   _subdir_targets   mfile(   s   selfs   mfile(    (    s1   /usr/pkg/lib/python2p3/site-packages/sipconfig.pys   generate_target_default‰  s     c         C   s   |  i | d ƒ d S(   sH   Generate the install target.

        mfile is the file object.
        s   installN(   s   selfs   _subdir_targets   mfile(   s   selfs   mfile(    (    s1   /usr/pkg/lib/python2p3/site-packages/sipconfig.pys   generate_target_install  s     c         C   s   |  i | d ƒ d S(   sF   Generate the clean target.

        mfile is the file object.
        s   cleanN(   s   selfs   _subdir_targets   mfile(   s   selfs   mfile(    (    s1   /usr/pkg/lib/python2p3/site-packages/sipconfig.pys   generate_target_clean—  s     s   allc         C   s¨   | d j o
 d } n d | } | i d | d ƒ xk |  i D]` } |  i d j o3 | i d | ƒ | i d | ƒ | i d	 ƒ q@ | i d
 | | f ƒ q@ Wd S(   s„   Create a target for a list of sub-directories.

        mfile is the file object.
        target is the name of the target.
        s   alls    s    s   
s   :
s   UNIXs   	cd %s
s   	$(MAKE)%s
s   	@cd ..
s   	@(cd %s; $(MAKE)%s)
N(   s   targets   tnames   mfiles   writes   selfs   _subdirss   ds	   generator(   s   selfs   mfiles   targets   tnames   d(    (    s1   /usr/pkg/lib/python2p3/site-packages/sipconfig.pys   _subdir_targetž  s     


 (
   s   __name__s
   __module__s   __doc__s   Nones   __init__s   generate_macros_and_ruless   generate_target_defaults   generate_target_installs   generate_target_cleans   _subdir_target(    (    (    s1   /usr/pkg/lib/python2p3/site-packages/sipconfig.pys   ParentMakefilet  s    
				s   ModuleMakefilec           B   sn   t  Z d  Z e d d d d d e d e d e d „ Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d	 „  Z
 RS(
   sA   The class that represents a Python extension module Makefile
    i    s   Makefilec         C   sÕ   t  i |  | | | | d | |	 |
 | | | ƒ |  i | ƒ |  _ | |  _ | |  _ |  i d |  _ |  i i d j  o\ |  i d j o8 |  i d |  _ t i d j o |  i d |  _ q½ n d |  i |  _ n d	 S(
   s  Initialise an instance of a module Makefile.

        build_file is the file containing the target specific information.
        install_dir is the directory the target will be installed in.
        static is set if the module should be built as a static library.
        i   s   targeti   s   sips   cs   win32s   modules   libN(   s   Makefiles   __init__s   selfs   configurations   consoles   qts   opengls   threadeds   warningss   debugs   dirs   makefiles   installss   parse_build_files
   build_files   _builds   install_dirs   _install_dirs   statics   _targets   configs   sip_versions   syss   platform(   s   selfs   configurations
   build_files   install_dirs   statics   consoles   qts   opengls   threadeds   warningss   debugs   dirs   makefiles   installs(    (    s1   /usr/pkg/lib/python2p3/site-packages/sipconfig.pys   __init__·  s     .		c         C   ss  |  i o |  i o
 d } qd } nå |  i i |  i d ƒ ƒ |  i i |  i d ƒ ƒ |  i o
 d } n d } |  i i	 d j o> |  i d ƒ } | o |  i d	 ƒ } n |  i i | ƒ nH |  i i |  i d	 ƒ ƒ |  i d
 ƒ } | o |  i i | d ƒ n |  i i |  i | ƒ ƒ t i d j o |  i i d ƒ n t i |  ƒ |  i o|  i d ƒ oÐ |  i d ƒ o[ |  i i	 d j o+ d d d |  i d d |  i i g } q-d d d |  i i g } nR |  i i	 d j o( d d |  i d d |  i i g } n d d |  i i g } |  i i | ƒ qo|  i d ƒ } | o |  i i | ƒ qon d S(   s<   Finalise the macros common to all module Makefiles.
        s   LFLAGS_CONSOLEs   LFLAGS_WINDOWSs   CFLAGS_SHLIBs   CXXFLAGS_SHLIBs   LFLAGS_CONSOLE_DLLs   LFLAGS_WINDOWS_DLLi   s   LFLAGS_PLUGINs   LFLAGS_SHLIBs   LFLAGS_SONAMEs	   $(TARGET)s   darwins   -framework Pythons	   AIX_SHLIBs   LINK_SHLIB_CMDs
   -qmkshrobjs
   -bnoexpalls	   -e init%ss   targets   -bI:%s/python.exps   -Gs   -Wl,-bnoexpalls   -Wl,"-e init%s"s   -Wl,-bI:%s/python.exps   -Wl,-Gs
   LINK_SHLIBN(   s   selfs   statics   consoles   lflags_consoles   CFLAGSs   extends   optional_lists   CXXFLAGSs   configs   sip_versions   lflags_plugins   LFLAGSs   optional_strings   sonames   appends   syss   platforms   Makefiles   finalises   _builds
   py_lib_dirs
   aix_lflagss
   link_shlibs   LINKs   set(   s   selfs   sonames
   aix_lflagss   lflags_plugins   lflags_consoles
   link_shlib(    (    s1   /usr/pkg/lib/python2p3/site-packages/sipconfig.pys   finaliseÓ  sH     





+	(c         C   s   |  i i d j o t d ‚ n | d j o, | d } t i d j o | d } qY n t i d j o d | } n | Sd S(	   s»   Return the name of a SIP v3.x module when it is used as a library.
        This will raise an exception when used with SIP v4.x modules.

        mname is the name of the module.
        i   s.   module_as_lib() can only be used with SIP v3.xs   sips   cs   win32s   modules   libN(   s   selfs   configs   sip_versions
   ValueErrors   mnames   syss   platform(   s   selfs   mname(    (    s1   /usr/pkg/lib/python2p3/site-packages/sipconfig.pys   module_as_lib(  s     
c         C   sx  |  i o$ t i d j o
 d } qt d } nG t i d j o
 d } n- t i d j o
 d } n |  i d d ƒ } | i d |  i d	 | ƒ | i d
 |  i	 d ƒ | i d |  i	 d |  i	 d f ƒ | i d ƒ |  i o€ |  i
 d j o | i d |  i d ƒ ƒ qd| i d |  i d ƒ ƒ |  i d ƒ |  _ |  i o | i d |  i ƒ qdn t i |  | ƒ d S(   sU   Generate the macros and rules generation.

        mfile is the file object.
        s   win32s   libs   as   pyds   darwins   sos   EXTENSION_SHLIBs   TARGET = %s
s   .s   OFILES = %s
s   objectss   HFILES = %s %s
s   headerss   moc_headerss   
s   UNIXs	   LIB = %s
s   LIBs   AR = %s
s   ARs   RANLIBs   RANLIB = %s
N(   s   selfs   statics   syss   platforms   exts   optional_strings   mfiles   writes   _targets   _builds	   generators   required_strings   _ranlibs   Makefiles   generate_macros_and_rules(   s   selfs   mfiles   ext(    (    s1   /usr/pkg/lib/python2p3/site-packages/sipconfig.pys   generate_macros_and_rules=  s,     




%

c         C   sZ  | i d ƒ |  i d j o` |  i o+ | i d ƒ | i d ƒ | i d ƒ qÔ | i d ƒ | i d ƒ | i d ƒ nX |  i o@ | i d |  i ƒ | i d	 ƒ |  i o | i d
 ƒ qÔ n | i d ƒ | i d ƒ xr t i |  i	 d ƒ D]Z } t i i | ƒ \ } } d | d } | i d | | f ƒ | i d | | f ƒ qø Wd S(   sH   Generate the default target.

        mfile is the file object.
        s   
$(TARGET): $(OFILES)
s   UNIXs   	$(LIB) /OUT:$(TARGET) @<<
s   	  $(OFILES)
s   <<
s&   	$(LINK) $(LFLAGS) /OUT:$(TARGET) @<<
s   	  $(OFILES) $(LIBS)
s   	-%s $(TARGET)
s   	$(AR) $(TARGET) $(OFILES)
s   	$(RANLIB) $(TARGET)
s2   	$(LINK) $(LFLAGS) -o $(TARGET) $(OFILES) $(LIBS)
s   
$(OFILES): $(HFILES)
s   moc_headerss   moc_s   .cpps   
%s: %s
s   	$(MOC) -o %s %s
N(   s   mfiles   writes   selfs	   generators   statics   rms   _ranlibs   strings   splits   _builds   mfs   oss   paths   splitexts   roots   discards   cpp(   s   selfs   mfiles   mfs   cpps   discards   root(    (    s1   /usr/pkg/lib/python2p3/site-packages/sipconfig.pys   generate_target_defaulta  s.     


 c         C   s¶   |  i t j o |  i i |  _ n | i d ƒ |  i | d |  i ƒ |  i d j o |  i i	 d j  o |  i
 o> |  i | |  i d |  i ƒ |  i | |  i d |  i ƒ n d S(   sH   Generate the install target.

        mfile is the file object.
        s   
install: $(TARGET)
s	   $(TARGET)s   UNIXi   s   .libs   .expN(   s   selfs   _install_dirs   Nones   configs   default_mod_dirs   mfiles   writes   install_files	   generators   sip_versions   statics   _target(   s   selfs   mfile(    (    s1   /usr/pkg/lib/python2p3/site-packages/sipconfig.pys   generate_target_install„  s     .c         C   s$   | i d ƒ |  i | |  i ƒ d S(   sF   Generate the clean target.

        mfile is the file object.
        s   
clean:
N(   s   mfiles   writes   selfs   clean_build_file_objectss   _build(   s   selfs   mfile(    (    s1   /usr/pkg/lib/python2p3/site-packages/sipconfig.pys   generate_target_clean“  s     (   s   __name__s
   __module__s   __doc__s   Nones   __init__s   finalises   module_as_libs   generate_macros_and_ruless   generate_target_defaults   generate_target_installs   generate_target_clean(    (    (    s1   /usr/pkg/lib/python2p3/site-packages/sipconfig.pys   ModuleMakefile´  s    *	U		$	#	s   SIPModuleMakefilec           B   s   t  Z d  Z d „  Z RS(   s?   The class that represents a SIP generated module Makefile.
    c         C   s¥   |  i i d j  ok |  i o |  i d j o |  i i d ƒ n |  i i |  i i ƒ |  i	 i |  i
 |  i d ƒ ƒ ƒ n |  i i |  i i ƒ t i |  ƒ d S(   sA   Finalise the macros for a SIP generated module Makefile.
        i   s   UNIXs   SIP_MAKE_MODULE_DLLs   sipN(   s   selfs   configs   sip_versions   statics	   generators   DEFINESs   appends   LIBDIRs   sip_mod_dirs   LIBSs   platform_libs   module_as_libs   INCDIRs   sip_inc_dirs   ModuleMakefiles   finalise(   s   self(    (    s1   /usr/pkg/lib/python2p3/site-packages/sipconfig.pys   finaliseŸ  s     &(   s   __name__s
   __module__s   __doc__s   finalise(    (    (    s1   /usr/pkg/lib/python2p3/site-packages/sipconfig.pys   SIPModuleMakefileœ  s    s   ProgramMakefilec           B   sq   t  Z d  Z e e d d d d d e d e d e d „ Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d	 „  Z
 RS(
   s2   The class that represents a program Makefile.
    i    s   Makefilec         C   sa   t  i |  | | | | | | |	 |
 | | | ƒ | |  _ | o |  i | ƒ |  _ n
 t |  _ d S(   sÈ   Initialise an instance of a program Makefile.

        build_file is the file containing the target specific information.
        install_dir is the directory the target will be installed in.
        N(   s   Makefiles   __init__s   selfs   configurations   consoles   qts   opengls   pythons   threadeds   warningss   debugs   dirs   makefiles   installss   install_dirs   _install_dirs
   build_files   parse_build_files   _builds   None(   s   selfs   configurations
   build_files   install_dirs   consoles   qts   opengls   pythons   threadeds   warningss   debugs   dirs   makefiles   installs(    (    s1   /usr/pkg/lib/python2p3/site-packages/sipconfig.pys   __init__±  s     .	c         C   s£  |  i ƒ  t i i | ƒ \ } } t i	 d j o | d } n g  } | i |  i d ƒ ƒ x( |  i d ƒ D] } | i d | ƒ ql Wx. |  i d ƒ D] } | i d t | ƒ ƒ q— W| i |  i d ƒ ƒ | i | ƒ |  i d	 j o$ | i d
 ƒ | i d ƒ d } n! | i d ƒ | i | ƒ d } | i |  i d ƒ ƒ x. |  i d ƒ D] } | i | t | ƒ ƒ qUW| i |  i d ƒ ƒ | t i | ƒ f Sd S(   sº   Create a command line that will build an executable.  Returns a
        tuple of the name of the executable and the command line.

        source is the name of the source file.
        s   win32s   .exes   CXXs   DEFINESs   -Ds   INCDIRs   -Is   CXXFLAGSs   UNIXs   -Fes   /links	   /LIBPATH:s   -os   -Ls   LFLAGSs   LIBDIRs   LIBSN(   s   selfs   readys   oss   paths   splitexts   sources   exes   ignores   syss   platforms   builds   appends   required_strings   optional_lists   fs   _quotes   extends	   generators   libdir_prefixs   lds   strings   join(   s   selfs   sources   lds   exes   fs   ignores   builds   libdir_prefix(    (    s1   /usr/pkg/lib/python2p3/site-packages/sipconfig.pys   build_commandÃ  s8     
  
 c         C   sh   |  i d j o |  i i d ƒ n |  i o
 d } n d } |  i i |  i | ƒ ƒ t i	 |  ƒ d S(   s4   Finalise the macros for a program Makefile.
        s   UNIXs   /INCREMENTAL:NOs   LFLAGS_CONSOLEs   LFLAGS_WINDOWSN(
   s   selfs	   generators   LFLAGSs   appends   consoles   lflags_consoles   extends   optional_lists   Makefiles   finalise(   s   selfs   lflags_console(    (    s1   /usr/pkg/lib/python2p3/site-packages/sipconfig.pys   finaliseò  s     

c         C   s¥   |  i o t d ‚ n |  i d } t i d j o | d } n | i d | ƒ | i d |  i d ƒ | i d |  i d	 ƒ | i d
 ƒ t i	 |  | ƒ d S(   sU   Generate the macros and rules generation.

        mfile is the file object.
        s8   pass a filename as build_file when generating a Makefiles   targets   win32s   .exes   TARGET = %s
s   OFILES = %s
s   objectss   HFILES = %s
s   headerss   
N(
   s   selfs   _builds
   ValueErrors   targets   syss   platforms   mfiles   writes   Makefiles   generate_macros_and_rules(   s   selfs   mfiles   target(    (    s1   /usr/pkg/lib/python2p3/site-packages/sipconfig.pys   generate_macros_and_rules  s     c         C   sf   | i d ƒ |  i d j o+ | i d ƒ | i d ƒ | i d ƒ n | i d ƒ | i d ƒ d S(	   sH   Generate the default target.

        mfile is the file object.
        s   
$(TARGET): $(OFILES)
s   UNIXs&   	$(LINK) $(LFLAGS) /OUT:$(TARGET) @<<
s   	  $(OFILES) $(LIBS)
s   <<
s2   	$(LINK) $(LFLAGS) -o $(TARGET) $(OFILES) $(LIBS)
s   
$(OFILES): $(HFILES)
N(   s   mfiles   writes   selfs	   generator(   s   selfs   mfile(    (    s1   /usr/pkg/lib/python2p3/site-packages/sipconfig.pys   generate_target_default  s     c         C   sJ   |  i t j o |  i i |  _ n | i d ƒ |  i | d |  i ƒ d S(   sH   Generate the install target.

        mfile is the file object.
        s   
install: $(TARGET)
s	   $(TARGET)N(   s   selfs   _install_dirs   Nones   configs   default_bin_dirs   mfiles   writes   install_file(   s   selfs   mfile(    (    s1   /usr/pkg/lib/python2p3/site-packages/sipconfig.pys   generate_target_install%  s
     c         C   s$   | i d ƒ |  i | |  i ƒ d S(   sF   Generate the clean target.

        mfile is the file object.
        s   
clean:
N(   s   mfiles   writes   selfs   clean_build_file_objectss   _build(   s   selfs   mfile(    (    s1   /usr/pkg/lib/python2p3/site-packages/sipconfig.pys   generate_target_clean0  s     (   s   __name__s
   __module__s   __doc__s   Nones   __init__s   build_commands   finalises   generate_macros_and_ruless   generate_target_defaults   generate_target_installs   generate_target_clean(    (    (    s1   /usr/pkg/lib/python2p3/site-packages/sipconfig.pys   ProgramMakefile®  s    -	/				c         C   s3   t  i |  d ƒ d j o d |  d }  n |  Sd S(   s^   Return a string surrounded by double quotes it if contains a space.

    s is the string.
    s    i    s   "N(   s   strings   finds   s(   s   s(    (    s1   /usr/pkg/lib/python2p3/site-packages/sipconfig.pys   _quote9  s     c         C   s)   d |  d ?d @|  d ?d @|  d @f Sd S(   sT   Convert a 3 part version number encoded as a hexadecimal value to a
    string.
    s   %u.%u.%ui   iÿ   i   N(   s   v(   s   v(    (    s1   /usr/pkg/lib/python2p3/site-packages/sipconfig.pys   version_to_stringD  s     c         C   s§  | t j	 } | t j	 }	 t } t } t |  ƒ } | i
 ƒ  } x*| o | p |	 ot i | ƒ }
 t |
 ƒ d j o |
 d d j oÑ | o |
 d | j o‚ |
 d } | d d !d j o t i | d ƒ } nE t | ƒ } | d } | d d	 } | d	 } | d >| d
 >| } d } n |	 o |
 d | j o |
 d d d !} d }	 qXn | i
 ƒ  } q? W| i ƒ  | p |	 o t d | |  f ƒ n | | f Sd S(   s  Read the version information for a package from a file.  The information
    is specified as #defines of a numeric (hexadecimal or decimal) value and/or
    a string value.

    filename is the name of the file.
    description is the descriptive name of the package.
    numdefine is the name of the #define of the numeric version.  It is ignored
    if it is None.
    strdefine is the name of the #define of the string version.  It is ignored
    if it is None.

    Returns a tuple of the version as a number and as a string.
    i   i    s   #definei   i   s   0xi   id   i
   i   iÿÿÿÿs<   The %s version number could not be determined by parsing %s.N(   s	   numdefines   Nones   need_nums	   strdefines   need_strs   verss   versstrs   opens   filenames   fs   readlines   ls   strings   splits   wls   lens   vs   atois   ints   decs   majs   mins   bugs   closes   errors   description(   s   filenames   descriptions	   numdefines	   strdefines   vs   verss   mins   need_nums   versstrs   need_strs   wls   majs   bugs   fs   ls   dec(    (    s1   /usr/pkg/lib/python2p3/site-packages/sipconfig.pys   read_versionK  s:      $




s   _pkg_configc   	      C   s¶  | d } |  i ƒ  } | i ƒ  d } x1 | D]) } t | ƒ } | | j  o
 | } q- q- WxG| D]?} |  | } t
 | ƒ } | t j o
 d } n© | t i j o d t i | ƒ d } n~ | t i j o d | d } n\ | t i j o7 t i | d ƒ d j o d | } q<t | ƒ } n d t | ƒ d } | d | d d	 | t | ƒ d
 t i | d d ƒ } | | d j o | d } n | d } qa W| d } | Sd S(   sM  Convert a dictionary to a string (typically to use as the content to a
    call to create_config_module()).  Dictionary values that are strings are
    quoted.  Dictionary values that are lists are converted to quoted strings.

    dict is the dictionary.
    dictname is the name of the dictionary in the string representation.
    s    = {
i    s   Nones   's   versions   0x%06xs       's   ':s    i   s   \s   \\iÿÿÿÿs   ,s   
s   }

N(   s   dictnames   contents   dicts   keyss   sorts   widths   ks   lens   klens   vals   types   vtypes   Nones   typess   ListTypes   strings   joins
   StringTypes   IntTypes   finds   strs   replace(	   s   dicts   dictnames   vtypes   vals   keyss   ks   klens   contents   width(    (    s1   /usr/pkg/lib/python2p3/site-packages/sipconfig.pys   create_content  s>     

  

;
c         C   s­   t  | ƒ t i j o t | ƒ } n d d d } t |  d ƒ } t | d ƒ } | i ƒ  } xH | o@ t i | | ƒ d j o
 | } n | i | ƒ | i ƒ  } qa Wd S(   sh  Create a configuration module by replacing "@" followed by
    "SIP_CONFIGURATION" followed by "@" in a template file with a content
    string.

    module is the name of the module file.
    template is the name of the template file.
    content is the content string.  If it is a dictionary it is first converted
    to a string using create_content().
    s   @s   SIP_CONFIGURATIONs   ws   ri    N(   s   types   contents   typess   DictTypes   create_contents   keys   opens   modules   dfs   templates   sfs   readlines   lines   strings   finds   write(   s   modules   templates   contents   keys   dfs   lines   sf(    (    s1   /usr/pkg/lib/python2p3/site-packages/sipconfig.pys   create_config_module·  s    	  
c         C   s•   t  } | i ƒ  } | i ƒ  |  d j  o | | d } nS x* | D]" } |  | j  o | | } PqB qB W| t  j o t d | |  f ƒ n | Sd S(   s  Convert a version number to a SIP tag.

    version is the version number.  If it is negative then the latest version
    is assumed.  (This is typically useful if a snapshot is indicated by a
    negative version number.)
    tags is the dictionary of tags keyed by version number.  The tag used is
    the one with the smallest key (ie. earliest version) that is greater than
    the given version number.
    description is the descriptive name of the package used for error messages.

    Returns the corresponding tag.
    i    iÿÿÿÿs   Unsupported %s version: 0x%06x.N(
   s   Nones   tags   tagss   keyss   vls   sorts   versions   vs   errors   description(   s   versions   tagss   descriptions   vls   vs   tag(    (    s1   /usr/pkg/lib/python2p3/site-packages/sipconfig.pys   version_to_sip_tagÔ  s     
 
	c         C   s/   t  i i t d |  ƒ d ƒ t  i d ƒ d S(   sW   Display an error message and terminate.

    msg is the text of the error message.
    s   Error: s   
i   N(   s   syss   stderrs   writes   formats   msgs   exit(   s   msg(    (    s1   /usr/pkg/lib/python2p3/site-packages/sipconfig.pys   errorõ  s     c         C   s   t  i i t |  ƒ d ƒ d S(   sO   Display an information message.

    msg is the text of the error message.
    s   
N(   s   syss   stdouts   writes   formats   msg(   s   msg(    (    s1   /usr/pkg/lib/python2p3/site-packages/sipconfig.pys   informþ  s     i    iN   c         C   s±   | } d | } x– t i |  ƒ D]… } t | ƒ } | | j o | | | j o | d d | } | } n | | j o | d } | d } n | | } | | } q  W| Sd S(   sõ   Format a message by inserting line breaks at appropriate places.

    msg is the text of the message.
    leftmargin is the position of the left margin.
    rightmargin is the position of the right margin.

    Return the formatted message.
    s    s   
i   N(
   s
   leftmargins   curss   fmsgs   strings   splits   msgs   ws   lens   ls   rightmargin(   s   msgs
   leftmargins   rightmargins   curss   fmsgs   ls   w(    (    s1   /usr/pkg/lib/python2p3/site-packages/sipconfig.pys   format  s     
 


(   s   syss   oss   strings   typess   Nones   _pkg_configs   _default_macross   _config_stacks   Configurations   _UniqueLists   _Macros   Makefiles   ParentMakefiles   ModuleMakefiles   SIPModuleMakefiles   ProgramMakefiles   _quotes   version_to_strings   read_versions   create_contents   create_config_modules   version_to_sip_tags   errors   informs   format(   s   Makefiles   ModuleMakefiles   ProgramMakefiles   _default_macross   version_to_strings   Configurations   strings   formats   create_contents   _pkg_configs   syss   _UniqueLists   SIPModuleMakefiles   typess   create_config_modules   _quotes   read_versions   version_to_sip_tags   ParentMakefiles   _Macros   informs   errors   os(    (    s1   /usr/pkg/lib/python2p3/site-packages/sipconfig.pys   ?   s6   				ºÿ ÿ ÆR"$2ÿ ÿ z@è‹		66		!			