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