aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Just <stephenjust@gmail.com>2020-02-13 17:51:10 -0800
committerGitHub <noreply@github.com>2020-02-13 17:51:10 -0800
commit375ea0ec6b9df9a82704f01c3afc1bf3d00b618b (patch)
tree20ae2f5d8f7240ae6f1a4b48fc4186a73d530566
parent76fba5ec78a1cfda26fd4dd50b9f211673ae5e77 (diff)
downloadvcpkg-375ea0ec6b9df9a82704f01c3afc1bf3d00b618b.tar.gz
vcpkg-375ea0ec6b9df9a82704f01c3afc1bf3d00b618b.zip
[rxspencer] Add RxSpencer port (#9166)
* [rxspencer] Add RxSpencer port * No need to force dynamic linkage * Review comments * update baseline * Update to latest upstream * Review comments * Update CONTROL Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
-rw-r--r--ports/rxspencer/CONTROL4
-rw-r--r--ports/rxspencer/portfile.cmake28
-rw-r--r--scripts/ci.baseline.txt2
3 files changed, 34 insertions, 0 deletions
diff --git a/ports/rxspencer/CONTROL b/ports/rxspencer/CONTROL
new file mode 100644
index 000000000..c310d2c89
--- /dev/null
+++ b/ports/rxspencer/CONTROL
@@ -0,0 +1,4 @@
+Source: rxspencer
+Version: 2020-01-12
+Homepage: https://garyhouston.github.io/regex/
+Description: Henry Spencer's BSD regular expression library.
diff --git a/ports/rxspencer/portfile.cmake b/ports/rxspencer/portfile.cmake
new file mode 100644
index 000000000..fea3e68cb
--- /dev/null
+++ b/ports/rxspencer/portfile.cmake
@@ -0,0 +1,28 @@
+vcpkg_fail_port_install(ON_TARGET "UWP")
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO garyhouston/rxspencer
+ REF e42b6a667f1385aedf49b533b9fbba58e5a26934
+ SHA512 2842e1c78c3ebbbd03d15fb85e55f861740bb446aa57157f3fc90876d931d9f865242f5eaefc94f31c8d78e0d531a008d4c579e9b4f9c7179f5c7a95a98359fd
+ HEAD_REF master
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+ OPTIONS -DCMAKE_CONFIG_DEST=share/rxspencer
+)
+
+vcpkg_install_cmake()
+
+vcpkg_fixup_cmake_targets(CONFIG_PATH "share/rxspencer")
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/share/regex)
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
+
+# Handle copyright
+file(INSTALL ${SOURCE_PATH}/COPYRIGHT DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
+
+vcpkg_copy_pdbs()
diff --git a/scripts/ci.baseline.txt b/scripts/ci.baseline.txt
index 94535e2d0..e85acfcc7 100644
--- a/scripts/ci.baseline.txt
+++ b/scripts/ci.baseline.txt
@@ -1541,6 +1541,8 @@ rpclib:x86-windows=ignore
rpclib:x64-windows-static=ignore
rttr:arm-uwp=fail
rttr:x64-uwp=fail
+rxspencer:x64-uwp=fail
+rxspencer:arm-uwp=fail
scintilla:arm-uwp=fail
scintilla:x64-linux=fail
scintilla:x64-osx=fail