transforms/depends
changeset 6609 489da5c0d3c5
child 7081 616e1d8621e7
equal deleted inserted replaced
6608:a98160718cfc 6609:489da5c0d3c5
       
     1 #
       
     2 # CDDL HEADER START
       
     3 #
       
     4 # The contents of this file are subject to the terms of the
       
     5 # Common Development and Distribution License (the "License").
       
     6 # You may not use this file except in compliance with the License.
       
     7 #
       
     8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
       
     9 # or http://www.opensolaris.org/os/licensing.
       
    10 # See the License for the specific language governing permissions
       
    11 # and limitations under the License.
       
    12 #
       
    13 # When distributing Covered Code, include this CDDL HEADER in each
       
    14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
       
    15 # If applicable, add the following below this CDDL HEADER, with the
       
    16 # fields enclosed by brackets "[]" replaced with your own identifying
       
    17 # information: Portions Copyright [yyyy] [name of copyright owner]
       
    18 #
       
    19 # CDDL HEADER END
       
    20 #
       
    21 
       
    22 #
       
    23 # Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
       
    24 #
       
    25 
       
    26 #
       
    27 # Dependency helpers for things pkgdepend(1) doesn't or can't handle
       
    28 #
       
    29 
       
    30 #
       
    31 # gsettings schema files
       
    32 #
       
    33 # Finding these requires looking in source code for calls such as:
       
    34 #   g_settings_new ("org.gnome.desktop.interface");
       
    35 # When found, add an entry such as:
       
    36 #   depend type=require fmri=__TBD \
       
    37 #       pkg.tmp.gsettings-schema=org.gnome.desktop.interface
       
    38 # You may also include pkg.debug.depend.reason=source-file.c as a reference
       
    39 # for future updates to record what source file you found the call in.
       
    40 #
       
    41 
       
    42 <transform depend fmri=__TBD pkg.tmp.gsettings-schema=(.*) -> \
       
    43     default pkg.debug.depend.file %<1>.gschema.xml>
       
    44 <transform depend fmri=__TBD pkg.debug.depend.file=.*\.gschema\.xml$ -> \
       
    45     delete pkg.tmp.gsettings-schema .*>
       
    46 <transform depend fmri=__TBD pkg.debug.depend.file=.*\.gschema\.xml$ -> \
       
    47     add pkg.debug.depend.path usr/share/glib-2.0/schemas>