diff options
| author | Niel <60291810+cpp-niel@users.noreply.github.com> | 2021-04-01 19:39:10 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-01 10:39:10 -0700 |
| commit | 6563298448e5d5b6c1b8b12de074d6e711385946 (patch) | |
| tree | 53286d2f693e7f2f4e724db2a4e0d5c5aed1fe6f | |
| parent | c095d5a2713edc21b1afa829fee10be20ad41b5a (diff) | |
| download | vcpkg-6563298448e5d5b6c1b8b12de074d6e711385946.tar.gz vcpkg-6563298448e5d5b6c1b8b12de074d6e711385946.zip | |
[mfl] Add new port (#16345)
* Add control and portfile for mfl port
* Add mfl port
* reference version better header inclusion
* reference version with fmt linkage
* Apply suggestions from code review
Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
* Set ports that don't build to fail in the ci baseline
* add version
* Check for static linkage and add message about C++20 requirements.
* add fail to ci baseline for dynamic windows builds
* version update
* Code review improvements
- Improve warning message that the port requires a C++20 compiler
- Use `version` rather than `version-string` in manifest
- Use `"supports": "static"` in manifest instead of setting dynamic
builds to `fail` in ci baseline.
* update version
Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
| -rw-r--r-- | ports/mfl/portfile.cmake | 24 | ||||
| -rw-r--r-- | ports/mfl/vcpkg.json | 16 | ||||
| -rw-r--r-- | scripts/ci.baseline.txt | 1 | ||||
| -rw-r--r-- | versions/baseline.json | 4 | ||||
| -rw-r--r-- | versions/m-/mfl.json | 9 |
5 files changed, 54 insertions, 0 deletions
diff --git a/ports/mfl/portfile.cmake b/ports/mfl/portfile.cmake new file mode 100644 index 000000000..3bb9cbceb --- /dev/null +++ b/ports/mfl/portfile.cmake @@ -0,0 +1,24 @@ +if(VCPKG_TARGET_IS_WINDOWS) + vcpkg_check_linkage(ONLY_STATIC_LIBRARY) +endif() + +message(WARNING "${PORT} is a C++20 library and requires a corresponding compiler. GCC 10, Clang 10 and MSVC 2019 16.8 are known to work.") + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO cpp-niel/mfl + REF v0.0.1 + SHA512 a609b4ff23a01e9f9d9bf60bfa6e0b2346b054cf0c27e74e6da574dcfd2a6ead30dcb8464cf03cae2bb9995f15f01ffda5f862c0ec2744a9ad38b856ff27f073 + HEAD_REF master +) + +vcpkg_configure_cmake( + SOURCE_PATH ${SOURCE_PATH} + PREFER_NINJA +) + +vcpkg_install_cmake() + +vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/mfl) + +file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) diff --git a/ports/mfl/vcpkg.json b/ports/mfl/vcpkg.json new file mode 100644 index 000000000..88dc46f3c --- /dev/null +++ b/ports/mfl/vcpkg.json @@ -0,0 +1,16 @@ +{ + "name": "mfl", + "version": "0.0.1", + "description": "Computes the layout information for mathematical formulas provided in TeX-like syntax.", + "homepage": "https://github.com/cpp-niel/mfl", + "license": "MIT", + "supports": "static", + "dependencies": [ + "cairo", + "doctest", + "fmt", + "freetype", + "harfbuzz", + "range-v3" + ] +} diff --git a/scripts/ci.baseline.txt b/scripts/ci.baseline.txt index 2d52fbcbe..b11c3963f 100644 --- a/scripts/ci.baseline.txt +++ b/scripts/ci.baseline.txt @@ -922,6 +922,7 @@ meschach:x64-osx=fail meschach:x64-uwp=fail metis:arm-uwp=fail metis:x64-uwp=fail +mfl:x64-linux=skip mhook:arm64-windows=fail mhook:arm-uwp=fail mhook:x64-linux=fail diff --git a/versions/baseline.json b/versions/baseline.json index 3dd4baa61..1091abbad 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -3876,6 +3876,10 @@ "baseline": "1.1.3", "port-version": 4 }, + "mfl": { + "baseline": "0.0.1", + "port-version": 0 + }, "mgnlibs": { "baseline": "2019-09-29", "port-version": 0 diff --git a/versions/m-/mfl.json b/versions/m-/mfl.json new file mode 100644 index 000000000..37f979762 --- /dev/null +++ b/versions/m-/mfl.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "a01a0e6d38ab404c3ae58d21d734969a089ef82c", + "version": "0.0.1", + "port-version": 0 + } + ] +} |
