blob: 52cad0bfa88f23de9dcef0ed78c6d34865747b10 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# zopen build configuration for whoson.
#
# The stable source is the release tarball, so the port builds exactly what
# the GitHub release ships. Bump WHOSON_VERSION together with Makefile's
# VERSION and the release tag; the CI job checks the first two agree.
# `zopen build --build DEV` uses the git tree instead.
#
# The bump workflow reads this line and opens a pull request when a new
# release tag appears. It watches the git tags; ZOPEN_STABLE_URL stays the
# release tarball so a build ships exactly the released archive.
# bump: whoson-version /WHOSON_VERSION="(.*)"/ https://github.com/skurtz97/whoson.git|semver:*
WHOSON_VERSION="1.1.0"
export ZOPEN_PROJECT_NAME="whoson"
export ZOPEN_NAME="whoson"
export ZOPEN_BUILD_LINE="STABLE"
export ZOPEN_CATEGORIES="utilities monitoring"
# whoson is a single executable linked against libc; it needs no zopen
# package at run time (ZOPEN_DONT_ADD_ZOSLIB_DEP below says the same for
# zoslib).
export ZOPEN_RUNTIME_DEPS=""
export ZOPEN_STABLE_URL="https://github.com/skurtz97/whoson/releases/download/v${WHOSON_VERSION}/whoson-${WHOSON_VERSION}.tar.gz"
export ZOPEN_STABLE_DEPS="make"
export ZOPEN_DEV_URL="https://github.com/skurtz97/whoson.git"
export ZOPEN_DEV_TAG="main"
export ZOPEN_DEV_DEPS="make"
export ZOPEN_COMP="CLANG"
# whoson calls libc and POSIX only; zoslib would add a runtime dependency the
# package does not declare.
export ZOPEN_DONT_ADD_ZOSLIB_DEP="1"
# Plain make, no configure script.
export ZOPEN_CONFIGURE="skip"
# The Makefile pins its own compiler and flags, and zopen's injected CFLAGS
# would replace them. The port only passes the compiler zopen detected.
# These strings are eval'd at build time, when PATH and CC are set.
export ZOPEN_MAKE_MINIMAL="1"
export ZOPEN_MAKE_OPTS='CC="${CC:?zopen did not set CC}"'
export ZOPEN_CHECK="make"
export ZOPEN_CHECK_OPTS='check CC="${CC:?zopen did not set CC}"'
export ZOPEN_CHECK_MINIMAL="1"
export ZOPEN_INSTALL_OPTS='install CC="${CC:?zopen did not set CC}" PREFIX=$ZOPEN_INSTALL_DIR'
export ZOPEN_INSTALL_MINIMAL="1"
# `make check` runs the binary once: its only job is to prove the program
# starts and reads the control blocks on the build system.
zopen_check_results()
{
chk="$1/$2_check.log"
if grep -q '^USER ' "$chk"; then
failures=0
else
failures=1
fi
echo "actualFailures:${failures}"
echo "totalTests:1"
echo "expectedFailures:0"
}
zopen_get_version()
{
echo "$WHOSON_VERSION"
}
|