aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/nyan-lang
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/nyan-lang')
-rw-r--r--vcpkg/ports/nyan-lang/portfile.cmake30
-rw-r--r--vcpkg/ports/nyan-lang/vcpkg.json18
2 files changed, 48 insertions, 0 deletions
diff --git a/vcpkg/ports/nyan-lang/portfile.cmake b/vcpkg/ports/nyan-lang/portfile.cmake
new file mode 100644
index 0000000..eee8bd8
--- /dev/null
+++ b/vcpkg/ports/nyan-lang/portfile.cmake
@@ -0,0 +1,30 @@
+vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO SFTtech/nyan
+ REF "v${VERSION}"
+ SHA512 2549e69f88f42b00bc9618c24031d5ff9588eb9249c973bc5eedb51634be619ad0e7118f1fb7f3abb31553763c0c95ce222e0f95f8e628e7b453b5c862b6bb7c
+ HEAD_REF master
+)
+
+vcpkg_find_acquire_program(FLEX)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ "-DFLEX_EXECUTABLE=${FLEX}"
+)
+
+vcpkg_cmake_install()
+
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake)
+vcpkg_copy_tools(TOOL_NAMES nyancat AUTO_CLEAN)
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+
+vcpkg_install_copyright(
+ FILE_LIST
+ "${SOURCE_PATH}/copying.md"
+ "${SOURCE_PATH}/legal/LGPLv3"
+ "${SOURCE_PATH}/legal/GPLv3"
+)
diff --git a/vcpkg/ports/nyan-lang/vcpkg.json b/vcpkg/ports/nyan-lang/vcpkg.json
new file mode 100644
index 0000000..93598fd
--- /dev/null
+++ b/vcpkg/ports/nyan-lang/vcpkg.json
@@ -0,0 +1,18 @@
+{
+ "name": "nyan-lang",
+ "version": "0.3.1",
+ "description": "nyan is a data description language, It is a mixture of python, json, patch, wml, yaml and some new ideas.",
+ "homepage": "https://github.com/SFTtech/nyan",
+ "license": "LGPL-3.0-or-later",
+ "supports": "!osx & !static & !uwp",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}