components/perl_modules/xml-simple/xml-simple-PERLVER.p5m
changeset 1335 de08f025b1d0
parent 1251 f1fb66b52f41
child 1878 b409841d95d5
--- a/components/perl_modules/xml-simple/xml-simple-PERLVER.p5m	Thu Jun 06 13:22:01 2013 -0700
+++ b/components/perl_modules/xml-simple/xml-simple-PERLVER.p5m	Fri Jun 07 09:51:37 2013 -0700
@@ -20,8 +20,18 @@
 #
 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
 #
-
+#
+<transform depend pkg.debug.depend.path=usr.*/5.12-mt/bin ->  set pkg.debug.depend.file perl-threaded>
+<transform depend pkg.debug.depend.path=(usr.*/5.12)-mt(/bin) ->  set pkg.debug.depend.path %<1>%<2>  > 
+#
+<transform file path=usr.*/5.12-mt/(man|XML)/.* -> drop >
+# convert 5.12-mt to 5.12 in the path because that is where the threaded
+# perl bits really are.
+<transform file path=(usr.*/5.12)-mt(/.+) -> set path %<1>%<2>>
 <transform file path=usr.*/man/.+ -> default mangler.man.stability volatile>
+<transform set name=pkg.fmri value=(.*)512-mt(.+) -> set value %<1>threaded-512%<2>>
+<transform depend fmri=(.*)512-mt(.*) -> set fmri %<1>threaded-512%<2>>
+<transform depend predicate=(.*)512-mt(.*) -> set predicate %<1>threaded-512%<2>> 
 
 set name=pkg.fmri value=pkg:/library/perl-5/xml-simple-$(PLV)@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
 set name=pkg.summary \
@@ -40,6 +50,10 @@
 depend fmri=library/perl-5/[email protected] type=optional
 depend fmri=library/perl-5/xml-parser type=require
 
+# force a dependency on the Perl runtime
+depend type=require fmri=__TBD pkg.debug.depend.file=perl \
+    pkg.debug.depend.path=usr/perl5/$(PERLVER)/bin
+
 #file path=usr/perl5/$(PERLVER)/lib/$(PERL_ARCH)/perllocal.pod
 file path=usr/perl5/$(PERLVER)/man/man3/XML::Simple.3
 file path=usr/perl5/$(PERLVER)/man/man3/XML::Simple::FAQ.3