aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/srell
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/srell')
-rw-r--r--vcpkg/ports/srell/portfile.cmake23
-rw-r--r--vcpkg/ports/srell/vcpkg.json7
2 files changed, 30 insertions, 0 deletions
diff --git a/vcpkg/ports/srell/portfile.cmake b/vcpkg/ports/srell/portfile.cmake
new file mode 100644
index 0000000..397834a
--- /dev/null
+++ b/vcpkg/ports/srell/portfile.cmake
@@ -0,0 +1,23 @@
+set(VERSION 3_010)
+
+vcpkg_download_distfile(
+ ARCHIVE
+ URLS "https://www.akenotsuki.com/misc/srell/srell${VERSION}.zip"
+ FILENAME "srell${VERSION}.zip"
+ SHA512 5F2762A98E1B68C3A4FA79051AE2CBEFD23CEDF1CE833FA1EB812D3F1112734018AF36AA9D9A50E2DC40C87A7FAAF46AF0B8F4161481994DC5E19F44301E867D
+)
+
+vcpkg_extract_source_archive(
+ SOURCE_PATH
+ ARCHIVE "${ARCHIVE}"
+ NO_REMOVE_ONE_LEVEL
+)
+
+file(INSTALL
+ "${SOURCE_PATH}/srell.hpp"
+ "${SOURCE_PATH}/srell_ucfdata2.hpp"
+ "${SOURCE_PATH}/srell_updata.hpp"
+ DESTINATION "${CURRENT_PACKAGES_DIR}/include"
+)
+
+file(INSTALL "${SOURCE_PATH}/license.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
diff --git a/vcpkg/ports/srell/vcpkg.json b/vcpkg/ports/srell/vcpkg.json
new file mode 100644
index 0000000..579906d
--- /dev/null
+++ b/vcpkg/ports/srell/vcpkg.json
@@ -0,0 +1,7 @@
+{
+ "name": "srell",
+ "version-string": "3.010",
+ "description": "SRELL (std::regex-like library) is a regular expression template library for C++.",
+ "homepage": "https://www.akenotsuki.com/misc/srell/en/",
+ "license": "BSD-2-Clause"
+}