vcpkg-registry

Registry containing personal projects
git clone git://git.dimitrijedobrota.com/vcpkg-registry.git
Log | Files | Refs

commit 1ea199611ee1d182c07f3d79ca9ecb3cd1b29db4
parent aac4eaf7ef71a3ddfefe418a0d9643b1c9b51bfe
author Dimitrije Dobrota < mail@dimitrijedobrota.com >
date Mon, 3 Mar 2025 22:28:02 +0100

Add Cemplate library

Diffstat:
A ports/cemplate/portfile.cmake | +++++++++++++++++++++++++++++
A ports/cemplate/vcpkg.json | +++++++++++++++++
M versions/baseline.json | ++++++ -
A versions/c-/cemplate.json | +++++++++

4 files changed, 61 insertions(+), 1 deletions(-)


diff --git a/ ports/cemplate/portfile.cmake b/ ports/cemplate/portfile.cmake

@@ -0,0 +1,29 @@

vcpkg_from_git(
OUT_SOURCE_PATH SOURCE_PATH
URL git://git.dimitrijedobrota.com/cemplate.git
REF 85c851c302432bd20e40604ab575ff6fd82dcc67
HEAD_REF master
)

set(name cemplate)

vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
"-D${name}_INSTALL_CMAKEDIR=share/${name}"
OPTIONS_DEBUG
"-D${name}_INSTALL_HEADERS=OFF"
)

# set(VCPKG_BUILD_TYPE release) # header-only

vcpkg_cmake_install()
vcpkg_cmake_config_fixup(PACKAGE_NAME "${name}")
vcpkg_copy_pdbs()


configure_file(
"${SOURCE_PATH}/LICENSE.md"
"${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright"
COPYONLY
)

diff --git a/ ports/cemplate/vcpkg.json b/ ports/cemplate/vcpkg.json

@@ -0,0 +1,17 @@

{
"name": "cemplate",
"version": "0.2.0",
"description": "Simple C++ template engine",
"homepage": "https://git.dimitrijedobrota.com/cemplate.git",
"license": "MIT",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

diff --git a/ versions/baseline.json b/ versions/baseline.json

@@ -1,3 +1,8 @@

{
"default": {}
"default": {
"cemplate": {
"baseline": "0.2.0",
"port-version": 0
}
}
}

diff --git a/ versions/c-/cemplate.json b/ versions/c-/cemplate.json

@@ -0,0 +1,9 @@

{
"versions": [
{
"git-tree": "79097a5b9ca9a6dbb9d0c1640ad293487f45f7b2",
"version": "0.2.0",
"port-version": 0
}
]
}