#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"), version 1.0.
# You may only use this file in accordance with the terms of version
# 1.0 of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source.  A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
#

#
# Copyright 2022 Marcel Telka
#

set name=pkg.fmri value=pkg:/$(COMPONENT_FMRI)@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
set name=pkg.human-version value=$(HUMAN_VERSION)
set name=pkg.summary value="$(COMPONENT_SUMMARY)"
set name=info.classification value="$(COMPONENT_CLASSIFICATION)"
set name=info.upstream-url value=$(COMPONENT_PROJECT_URL)
set name=org.opensolaris.consolidation value=$(CONSOLIDATION)

depend fmri=runtime/perl-$(PLV) type=require

# We need to make sure the Perl support from illumos-gate is installed at the
# expected version.
depend fmri=runtime/perl-$(PLV)/module/sun-solaris type=require

# This alternative Perl location is used primarily by illumos-gate.  These
# symlinks are not mediated because illumos-gate builds support for single Perl
# version only.
dir path=usr/perl5/$(PERLVER)/bin
dir path=usr/perl5/$(PERLVER)/man
dir path=usr/perl5/$(PERLVER)/lib/pod
link path=usr/perl5/bin target=$(PERLVER)/bin
link path=usr/perl5/man target=$(PERLVER)/man
link path=usr/perl5/pod target=$(PERLVER)/lib/pod

# Temporary fake dir and vendor mediated symlink used during transition between
# Perl versions.
$(VERSION_SWITCH)dir path=usr/perl5/$(PERLVER)
$(VERSION_SWITCH)link path=usr/perl5/transition-perl target=$(PERLVER) mediator=perl mediator-version=$(PERLVER) mediator-priority=vendor