Marcel Telka
2024-02-12 249bc0a9cb06d9bd3c5d805ee1644ec00319da3b
Add unifdef

5 files added
120 ■■■■■ changed files
components/developer/unifdef/Makefile 49 ●●●●● patch | view | raw | blame | history
components/developer/unifdef/manifests/sample-manifest.p5m 29 ●●●●● patch | view | raw | blame | history
components/developer/unifdef/pkg5 10 ●●●●● patch | view | raw | blame | history
components/developer/unifdef/test/results-all.master 3 ●●●●● patch | view | raw | blame | history
components/developer/unifdef/unifdef.p5m 29 ●●●●● patch | view | raw | blame | history
components/developer/unifdef/Makefile
New file
@@ -0,0 +1,49 @@
#
# 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 2024 Marcel Telka
#
BUILD_STYLE=justmake
include ../../../make-rules/shared-macros.mk
COMPONENT_NAME=            unifdef
COMPONENT_VERSION=        2.12
COMPONENT_SUMMARY=        Remove preprocessor conditionals from code
COMPONENT_PROJECT_URL=        https://dotat.at/prog/unifdef/
COMPONENT_FMRI=            developer/unifdef
COMPONENT_CLASSIFICATION=    Development/C
COMPONENT_SRC=            $(COMPONENT_NAME)-$(COMPONENT_VERSION)
COMPONENT_ARCHIVE=        $(COMPONENT_SRC).tar.xz
COMPONENT_ARCHIVE_URL=        $(COMPONENT_PROJECT_URL)$(COMPONENT_SRC).tar.xz
COMPONENT_ARCHIVE_HASH=        sha256:43ce0f02ecdcdc723b2475575563ddb192e988c886d368260bc0a63aee3ac400
COMPONENT_LICENSE=        BSD-3-Clause
COMPONENT_LICENSE_FILE=        COPYING
#TEST_TARGET=$(NO_TESTS) # if no testsuite enabled
include $(WS_MAKE_RULES)/common.mk
# GNU diff is needed to run tests
PATH = $(PATH.gnu)
# Replace cc with full path to out compiler (gcc)
COMPONENT_POST_UNPACK_ACTION += $(GSED) -i -e 's|cc|$(CC)|' $(COMPONENT_SRC)/unifdefall.sh ;
# Install to /usr/gnu so we do not clash with illumos unifdef
COMPONENT_INSTALL_ARGS += prefix=$(GNUDIR)
# Use non-default test target
COMPONENT_TEST_TARGETS = test
# Auto-generated dependencies
REQUIRED_PACKAGES += shell/ksh93
REQUIRED_PACKAGES += system/library
components/developer/unifdef/manifests/sample-manifest.p5m
New file
@@ -0,0 +1,29 @@
#
# 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 2024 <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)'
file path=usr/gnu/bin/unifdef
file path=usr/gnu/bin/unifdefall
file path=usr/gnu/share/man/man1/unifdef.1
link path=usr/gnu/share/man/man1/unifdefall.1 target=unifdef.1
components/developer/unifdef/pkg5
New file
@@ -0,0 +1,10 @@
{
    "dependencies": [
        "shell/ksh93",
        "system/library"
    ],
    "fmris": [
        "developer/unifdef"
    ],
    "name": "unifdef"
}
components/developer/unifdef/test/results-all.master
New file
@@ -0,0 +1,3 @@
scripts/reversion.sh
scripts/runtests.sh tests
..........................................................................................
components/developer/unifdef/unifdef.p5m
New file
@@ -0,0 +1,29 @@
#
# 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 2024 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=info.source-url value=$(COMPONENT_ARCHIVE_URL)
set name=org.opensolaris.consolidation value=$(CONSOLIDATION)
license $(COMPONENT_LICENSE_FILE) license='$(COMPONENT_LICENSE)'
file path=usr/gnu/bin/unifdef
file path=usr/gnu/bin/unifdefall
file path=usr/gnu/share/man/man1/unifdef.1
link path=usr/gnu/share/man/man1/unifdefall.1 target=unifdef.1