Marcel Telka
2022-07-03 522d32b518f1193fbc19923794ec7986992813ec
Add runtime/perl metapackage

4 files added
1 files modified
102 ■■■■■ changed files
components/meta-packages/perl/Makefile 30 ●●●●● patch | view | raw | blame | history
components/meta-packages/perl/manifests/sample-manifest.p5m 25 ●●●●● patch | view | raw | blame | history
components/meta-packages/perl/perl.p5m 23 ●●●●● patch | view | raw | blame | history
components/meta-packages/perl/pkg5 11 ●●●●● patch | view | raw | blame | history
make-rules/common.mk 13 ●●●● patch | view | raw | blame | history
components/meta-packages/perl/Makefile
New file
@@ -0,0 +1,30 @@
#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"). You may
# only use this file in accordance with the terms 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
#
BUILD_STYLE = pkg
include ../../../make-rules/shared-macros.mk
COMPONENT_NAME =        perl
COMPONENT_VERSION =        $(PERL_VERSION)
COMPONENT_SUMMARY =        Perl - Highly capable, feature-rich programming language
COMPONENT_PROJECT_URL =        https://www.perl.org/
COMPONENT_FMRI =        runtime/perl
COMPONENT_CLASSIFICATION =    Development/Perl
include $(WS_MAKE_RULES)/common.mk
PKG_MACROS += PLV=$(shell echo $(PERL_VERSION) | tr -d .)
# Auto-generated dependencies
components/meta-packages/perl/manifests/sample-manifest.p5m
New file
@@ -0,0 +1,25 @@
#
# 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 <contributor>
#
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=info.source-url value=$(COMPONENT_ARCHIVE_URL)
set name=org.opensolaris.consolidation value=$(CONSOLIDATION)
license $(COMPONENT_LICENSE_FILE) license='$(COMPONENT_LICENSE)'
components/meta-packages/perl/perl.p5m
New file
@@ -0,0 +1,23 @@
#
# 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
components/meta-packages/perl/pkg5
New file
@@ -0,0 +1,11 @@
{
    "dependencies": [
        "SUNWcs",
        "shell/ksh93",
        "system/library"
    ],
    "fmris": [
        "runtime/perl"
    ],
    "name": "perl"
}
make-rules/common.mk
@@ -121,14 +121,21 @@
endif
# For pkg-based build style, assume there are no build, install, or test steps;
# just a package to be published.
# just a package to be published.  However, 'gmake sample-manifest' requires
# build dir.  Since sample-manifest generation depends on install target we
# will abuse it to get the required dir created.
ifeq ($(strip $(BUILD_STYLE)),pkg)
BUILD_TARGET=
INSTALL_TARGET=
INSTALL_TARGET = $(BUILD_DIR)/.installed
TEST_TARGET=
SYSTEM_TEST_TARGET=
build install:
build:
test system-test:    $(NO_TESTS)
$(BUILD_DIR)/.installed:
    $(RM) -r $(BUILD_DIR)
    $(MKDIR) $(BUILD_DIR)
    $(TOUCH) $@
endif
# If TEST_TARGET is NO_TESTS, assume no system tests by default.