Bump gcc-6 to 6.4.0
[unleashed-userland.git] / transforms / mkgeneric
blobde3dacb01775f2d1eb414b39b8408b11277ad76d
2 # CDDL HEADER START
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.
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.
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]
19 # CDDL HEADER END
23 # Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved.
26 # This set of transforms helps us take a package that's parameterized on a
27 # platform's versions and emit a package that conditionally depends on those
28 # versioned packages, predicated on the platform version packages being
29 # present.
31 # For instance, for a package "mako-generic", we want to create a package
32 # "mako", which brings in "mako-27" if "python-27" is present, and "mako-34" if
33 # "python-34" is present.
35 # We do this by grabbing just the set actions from "mako-generic", and emitting
36 # those conditional depend actions.  We require that the parameterized package
37 # name end in "-###PYV###" (typically by setting a pkgmogrify variable to
38 # "###PYV###"), which we also remove here.  This works in conjunction with a set
39 # of rules in make-rules/ips.mk which create and use another transform file
40 # that actually emit the conditional dependencies.
42 <transform file dir link hardlink license user group driver legacy signature -> drop>
43 <transform depend -> default nodrop false>
44 <transform depend nodrop=false -> drop>
45 <transform set name=pkg.fmri value=(?:pkg:/)?(.+)-###PYV###@(.*) -> \
46         edit value -###PYV### "">
47 <transform set name=pkg.fmri value=(?:pkg:/)?(.+)-###@(.*) -> \
48         edit value -### "">
49 <transform depend nodrop=true -> delete nodrop true>