Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[xsrc/trunk]: xsrc/external/mit/libxcvt/dist initial import of libxcvt-0.1.1



details:   https://anonhg.NetBSD.org/xsrc/rev/9fbc40da50a5
branches:  trunk
changeset: 7096:9fbc40da50a5
user:      mrg <mrg%NetBSD.org@localhost>
date:      Wed Jul 13 20:26:18 2022 +0000

description:
initial import of libxcvt-0.1.1

diffstat:

 external/mit/libxcvt/dist/.gitlab-ci.yml                 |  110 +++++
 external/mit/libxcvt/dist/.gitlab-ci/ci.template         |  116 +++++
 external/mit/libxcvt/dist/.gitlab-ci/config.yml          |    9 +
 external/mit/libxcvt/dist/.gitlab-ci/meson-build.sh      |   48 ++
 external/mit/libxcvt/dist/COPYING                        |   67 +++
 external/mit/libxcvt/dist/README.md                      |   36 +
 external/mit/libxcvt/dist/cvt/cvt.c                      |  257 ++++++++++++
 external/mit/libxcvt/dist/cvt/meson.build                |   10 +
 external/mit/libxcvt/dist/include/libxcvt/libxcvt.h      |   46 ++
 external/mit/libxcvt/dist/include/libxcvt/libxcvt_mode.h |   56 ++
 external/mit/libxcvt/dist/include/libxcvt/meson.build    |    1 +
 external/mit/libxcvt/dist/include/meson.build            |    1 +
 external/mit/libxcvt/dist/lib/libxcvt.c                  |  301 +++++++++++++++
 external/mit/libxcvt/dist/lib/meson.build                |    6 +
 external/mit/libxcvt/dist/man/cvt.man                    |   41 ++
 external/mit/libxcvt/dist/man/meson.build                |   12 +
 external/mit/libxcvt/dist/meson.build                    |   28 +
 17 files changed, 1145 insertions(+), 0 deletions(-)

diffs (truncated from 1213 to 300 lines):

diff -r e38976c77fd5 -r 9fbc40da50a5 external/mit/libxcvt/dist/.gitlab-ci.yml
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/mit/libxcvt/dist/.gitlab-ci.yml  Wed Jul 13 20:26:18 2022 +0000
@@ -0,0 +1,110 @@
+
+#####################################################
+#                                                   #
+#       THIS FILE IS GENERATED, DO NOT EDIT!        #
+#                                                   #
+# Generated with "ci-fairy generate-template", edit #
+# .gitlab-ci/ci.template and .gitlab-ci/config.yml  #
+# and rerun "ci-fairy generate-template" to change  #
+# this file.                                        #
+#                                                   #
+#####################################################
+
+.templates_sha: &template_sha 3d03cccd770c04e63b40325b42223495274d6a1d
+
+include:
+  - project: 'freedesktop/ci-templates'
+    ref: *template_sha
+    file:
+      - '/templates/ci-fairy.yml'
+      - '/templates/fedora.yml'
+
+stages:
+  - sanity check
+  - prep
+  - build
+
+variables:
+  FDO_UPSTREAM_REPO: xorg/lib/libxcvt
+  MESON_BUILDDIR: "builddir"
+  NINJA_ARGS: ''
+  MESON_ARGS: ''
+  MESON_TEST_ARGS: ''
+  GIT_DEPTH: 1
+
+.policy:
+  retry:
+    max: 2
+    when:
+      - runner_system_failure
+      - stuck_or_timeout_failure
+  # cancel run when a newer version is pushed to the branch
+  interruptible: true
+
+
+# Re-generate the CI script and make sure it's the one currently checked in
+# If this job fails, re-generate the gitlab-ci.yml script, see
+# $SRCDIR/.gitlab-ci/generate-gitlab-ci.py
+#
+check-ci-script:
+  extends:
+    - .fdo.ci-fairy
+  stage: sanity check
+  script:
+    - ci-fairy generate-template --verify && exit 0 || true
+    - echo "Committed gitlab-ci.yml differs from generated gitlab-ci.yml. Please verify"
+    - exit 1
+
+#
+# Verify that commit messages are as expected, signed-off, etc.
+#
+check-commit:
+  extends:
+    - .fdo.ci-fairy
+  stage: sanity check
+  script:
+    - ci-fairy check-commits --signed-off-by --junit-xml=results.xml
+  except:
+    - master@xorg/lib/libxcvt
+  variables:
+    GIT_DEPTH: 100
+  artifacts:
+    reports:
+      junit: results.xml
+
+#
+# Verify that merge request has the "allow collaboration" checkbox ticked
+#
+check-merge-request:
+  extends:
+    - .fdo.ci-fairy
+  stage: sanity check
+  script:
+    - ci-fairy check-merge-request --require-allow-collaboration --junit-xml=results.xml
+  artifacts:
+    when: on_failure
+    reports:
+      junit: results.xml
+  allow_failure: true
+
+
+.fedora.34:
+  variables:
+    FDO_DISTRIBUTION_VERSION: '34'
+    FDO_DISTRIBUTION_TAG: '2021-07-26.0'
+
+prep-fedora-34:
+  extends:
+    - .fdo.container-build@fedora
+    - .fedora.34
+  stage: prep
+  variables:
+    FDO_DISTRIBUTION_PACKAGES: "meson gcc"
+
+build-fedora-34:
+  extends:
+    - .fdo.distribution-image@fedora
+    - .fedora.34
+  stage: build
+  script:
+    - .gitlab-ci/meson-build.sh
diff -r e38976c77fd5 -r 9fbc40da50a5 external/mit/libxcvt/dist/.gitlab-ci/ci.template
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/mit/libxcvt/dist/.gitlab-ci/ci.template  Wed Jul 13 20:26:18 2022 +0000
@@ -0,0 +1,116 @@
+{# You're looking at the template here, so you can ignore the below
+   warning. This is the right file to edit #}
+
+#####################################################
+#                                                   #
+#       THIS FILE IS GENERATED, DO NOT EDIT!        #
+#                                                   #
+# Generated with "ci-fairy generate-template", edit #
+# .gitlab-ci/ci.template and .gitlab-ci/config.yml  #
+# and rerun "ci-fairy generate-template" to change  #
+# this file.                                        #
+#                                                   #
+#####################################################
+
+.templates_sha: &template_sha 3d03cccd770c04e63b40325b42223495274d6a1d
+
+include:
+  - project: 'freedesktop/ci-templates'
+    ref: *template_sha
+    file:
+      - '/templates/ci-fairy.yml'
+    {% for d in distributions %}
+      - '/templates/{{d.name}}.yml'
+    {% endfor %}
+
+stages:
+  - sanity check
+  - prep
+  - build
+
+variables:
+  FDO_UPSTREAM_REPO: xorg/lib/libxcvt
+  MESON_BUILDDIR: "builddir"
+  NINJA_ARGS: ''
+  MESON_ARGS: ''
+  MESON_TEST_ARGS: ''
+  GIT_DEPTH: 1
+
+.policy:
+  retry:
+    max: 2
+    when:
+      - runner_system_failure
+      - stuck_or_timeout_failure
+  # cancel run when a newer version is pushed to the branch
+  interruptible: true
+
+
+# Re-generate the CI script and make sure it's the one currently checked in
+# If this job fails, re-generate the gitlab-ci.yml script, see
+# $SRCDIR/.gitlab-ci/generate-gitlab-ci.py
+#
+check-ci-script:
+  extends:
+    - .fdo.ci-fairy
+  stage: sanity check
+  script:
+    - ci-fairy generate-template --verify && exit 0 || true
+    - echo "Committed gitlab-ci.yml differs from generated gitlab-ci.yml. Please verify"
+    - exit 1
+
+#
+# Verify that commit messages are as expected, signed-off, etc.
+#
+check-commit:
+  extends:
+    - .fdo.ci-fairy
+  stage: sanity check
+  script:
+    - ci-fairy check-commits --signed-off-by --junit-xml=results.xml
+  except:
+    - master@xorg/lib/libxcvt
+  variables:
+    GIT_DEPTH: 100
+  artifacts:
+    reports:
+      junit: results.xml
+
+#
+# Verify that merge request has the "allow collaboration" checkbox ticked
+#
+check-merge-request:
+  extends:
+    - .fdo.ci-fairy
+  stage: sanity check
+  script:
+    - ci-fairy check-merge-request --require-allow-collaboration --junit-xml=results.xml
+  artifacts:
+    when: on_failure
+    reports:
+      junit: results.xml
+  allow_failure: true
+
+{% for d in distributions %}
+
+.{{d.name}}.{{d.version}}:
+  variables:
+    FDO_DISTRIBUTION_VERSION: '{{d.version}}'
+    FDO_DISTRIBUTION_TAG: '{{d.tag}}'
+
+prep-{{d.name}}-{{d.version}}:
+  extends:
+    - .fdo.container-build@{{d.name}}
+    - .{{d.name}}.{{d.version}}
+  stage: prep
+  variables:
+    FDO_DISTRIBUTION_PACKAGES: "{{' '.join(d.packages)}}"
+
+build-{{d.name}}-{{d.version}}:
+  extends:
+    - .fdo.distribution-image@{{d.name}}
+    - .{{d.name}}.{{d.version}}
+  stage: build
+  script:
+    - .gitlab-ci/meson-build.sh
+{% endfor %}
diff -r e38976c77fd5 -r 9fbc40da50a5 external/mit/libxcvt/dist/.gitlab-ci/config.yml
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/mit/libxcvt/dist/.gitlab-ci/config.yml   Wed Jul 13 20:26:18 2022 +0000
@@ -0,0 +1,9 @@
+.default_tag: &default_tag '2021-07-26.0'
+
+distributions:
+  - name: fedora
+    tag: *default_tag
+    version: 34
+    packages:
+      - meson
+      - gcc
diff -r e38976c77fd5 -r 9fbc40da50a5 external/mit/libxcvt/dist/.gitlab-ci/meson-build.sh
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/mit/libxcvt/dist/.gitlab-ci/meson-build.sh       Wed Jul 13 20:26:18 2022 +0000
@@ -0,0 +1,48 @@
+#!/bin/bash
+
+if [[ -f .meson_environment ]]; then
+       . .meson_environment
+fi
+
+if [[ -z "$MESON_BUILDDIR" ]]; then
+       echo "\$MESON_BUILDDIR undefined."
+       exit 1
+fi
+
+# emulate a few gitlab variables to make it easier to
+# run and debug locally.
+if [[ -z "$CI_JOB_ID" ]] || [[ -z "$CI_JOB_NAME" ]] || [[ -z "$CI_PROJECT_NAME" ]]; then
+       echo "Missing \$CI_JOB_ID or \$CI_JOB_NAME".
+       CI_PROJECT_NAME=$(basename $PWD)
+       CI_JOB_ID=$(date +%s)
+       CI_JOB_NAME='${CI_PROJECT_NAME}-job-local'
+       echo "Simulating gitlab environment: "
+       echo " CI_JOB_ID=$CI_JOB_ID"
+       echo " CI_JOB_NAME=$CI_JOB_NAME"
+       echo " CI_PROJECT_NAME=$CI_PROJECT_NAME"
+fi
+
+
+echo "*************************************************"
+echo "builddir: $MESON_BUILDDIR"
+echo "meson args: $MESON_ARGS"
+echo "ninja args: $NINJA_ARGS"
+echo "meson test args: $MESON_TEST_ARGS"
+echo "*************************************************"
+
+set -e
+
+rm -rf "$MESON_BUILDDIR"
+meson "$MESON_BUILDDIR" $MESON_ARGS
+meson configure "$MESON_BUILDDIR"
+ninja -C "$MESON_BUILDDIR" $NINJA_ARGS
+
+if [[ -z "$MESON_TEST_ARGS" ]]; then
+    exit 0
+fi
+
+# we still want to generate the reports, even if meson test fails
+meson test -C "$MESON_BUILDDIR" $MESON_TEST_ARGS --print-errorlogs
+exit_code=$?
+
+exit $exit_code
diff -r e38976c77fd5 -r 9fbc40da50a5 external/mit/libxcvt/dist/COPYING



Home | Main Index | Thread Index | Old Index