Skip to content

Commit a96253f

Browse files
committed
stc: move tests to variant; declare platforms any/noarch
1 parent 44bd2b2 commit a96253f

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

devel/STC/Portfile

+16-5
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,17 @@ PortGroup github 1.0
1010
# https://github.com/stclib/STC/issues/61
1111
github.setup stclib STC 19501aacdcb9ed90618fd494e353d8ff65a4210c
1212
version 4.2
13-
revision 2
13+
revision 3
14+
1415
categories devel
16+
platforms any
17+
supported_archs noarch
1518
license MIT
1619
maintainers {mascguy @mascguy} {@barracuda156 gmail.com:vital.had} openmaintainer
20+
1721
description A modern, user-friendly, generic, type-safe and fast C99 container library
18-
long_description {*}${description} featuring string, vector, sorted and unordered map and set, deque, forward list, smart pointers, bitset and random numbers.
22+
long_description {*}${description} featuring string, vector, sorted and unordered map and set,\
23+
deque, forward list, smart pointers, bitset and random numbers.
1924

2025
checksums rmd160 524ee9078b45f9b4392d3322a0518c1516d77de4 \
2126
sha256 30b96748a5e192366d95fa6d7090bdd4f895b4f5c2e633f082309a5273638bcf \
@@ -26,7 +31,7 @@ compiler.c_standard 1999
2631
cmake.set_c_standard yes
2732

2833
configure.args-append \
29-
-DBUILD_TESTING=yes
34+
-DBUILD_TESTING=OFF
3035

3136
# Needs support for atomic operations.
3237
# Re Xcode clang: https://github.com/stclib/STC/issues/62
@@ -45,5 +50,11 @@ destroot {
4550
xinstall -m 0644 -W ${worksrcpath} LICENSE README.md ${destroot}${docdir}
4651
}
4752

48-
test.run yes
49-
test.cmd ctest
53+
variant tests description {Enable tests} {
54+
configure.args-replace \
55+
-DBUILD_TESTING=OFF \
56+
-DBUILD_TESTING=ON
57+
58+
test.run yes
59+
test.cmd ctest
60+
}

0 commit comments

Comments
 (0)