transforms/depends
changeset 7081 616e1d8621e7
parent 6609 489da5c0d3c5
equal deleted inserted replaced
7080:49b4c7a1ceca 7081:616e1d8621e7
    23 # Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
    23 # Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
    24 #
    24 #
    25 
    25 
    26 #
    26 #
    27 # Dependency helpers for things pkgdepend(1) doesn't or can't handle
    27 # Dependency helpers for things pkgdepend(1) doesn't or can't handle
       
    28 # These may be eventually replaced if/when the listed RFE's to handle
       
    29 # them directly in pkgdepend are implemented.
    28 #
    30 #
    29 
    31 
    30 #
    32 #
    31 # gsettings schema files
    33 # gsettings schema files
       
    34 #   Bug 24416519 - pkgdepend could look for gsettings schema dependencies
    32 #
    35 #
    33 # Finding these requires looking in source code for calls such as:
    36 # Finding these requires looking in source code for calls such as:
    34 #   g_settings_new ("org.gnome.desktop.interface");
    37 #   g_settings_new ("org.gnome.desktop.interface");
    35 # When found, add an entry such as:
    38 # When found, add an entry such as:
    36 #   depend type=require fmri=__TBD \
    39 #   depend type=require fmri=__TBD \
    43     default pkg.debug.depend.file %<1>.gschema.xml>
    46     default pkg.debug.depend.file %<1>.gschema.xml>
    44 <transform depend fmri=__TBD pkg.debug.depend.file=.*\.gschema\.xml$ -> \
    47 <transform depend fmri=__TBD pkg.debug.depend.file=.*\.gschema\.xml$ -> \
    45     delete pkg.tmp.gsettings-schema .*>
    48     delete pkg.tmp.gsettings-schema .*>
    46 <transform depend fmri=__TBD pkg.debug.depend.file=.*\.gschema\.xml$ -> \
    49 <transform depend fmri=__TBD pkg.debug.depend.file=.*\.gschema\.xml$ -> \
    47     add pkg.debug.depend.path usr/share/glib-2.0/schemas>
    50     add pkg.debug.depend.path usr/share/glib-2.0/schemas>
       
    51 
       
    52 #
       
    53 # gobject-introspection typelib files
       
    54 #   Bug 24463417 - pkgdepend could look for pygobject dependencies
       
    55 #   Bug 24463542 - pkgdepend could look for girepository dependencies
       
    56 #
       
    57 # These are used as binding layers between the C libraries and other languages
       
    58 # such as Python and JavaScript.
       
    59 #
       
    60 # In python:
       
    61 #  gi.require_version('Gtk', '3.0')
       
    62 #  from gi.repository import Gtk
       
    63 # In javascript:
       
    64 #  imports.gi.versions.Gtk = '3.0';
       
    65 #  const Gtk = imports.gi.Gtk;
       
    66 #
       
    67 # When found, add an entry such as:
       
    68 #   depend type=require fmri=__TBD pkg.tmp.gi-typelib=Gtk-3.0
       
    69 # If no version is specified for the import, the latest version should be used.
       
    70 #
       
    71 # You may also include pkg.debug.depend.reason=source-file.py as a reference
       
    72 # for future updates to record what source file you found the call in.
       
    73 #
       
    74 # If you need to search application-specific directories for them, you can add
       
    75 # an additional pkg.debug.depend.path attribute for each directory.
       
    76 #
       
    77 
       
    78 <transform depend fmri=__TBD pkg.tmp.gi-typelib=(.*) -> \
       
    79     default pkg.debug.depend.file %<1>.typelib>
       
    80 <transform depend fmri=__TBD pkg.debug.depend.file=.*\.typelib$ -> \
       
    81     delete pkg.tmp.gi-typelib .*>
       
    82 <transform depend fmri=__TBD pkg.debug.depend.file=.*\.typelib$ -> \
       
    83     add pkg.debug.depend.path usr/lib/$(MACH64)/girepository-1.0>