aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2016-10-04 17:17:42 -0700
committerRobert Schumacher <roschuma@microsoft.com>2016-10-04 17:17:42 -0700
commitcb10c3610b36ddd4e7ac17023eaec0bb0b963dab (patch)
treeb1ed64480cdd31010b0cb299238e96a531745c73
parent48e05bd339fee1bd3d07e26cfd7db798ff0c8ea3 (diff)
downloadvcpkg-cb10c3610b36ddd4e7ac17023eaec0bb0b963dab.tar.gz
vcpkg-cb10c3610b36ddd4e7ac17023eaec0bb0b963dab.zip
[ragel] Minimize work done copying files. Add version number.
-rw-r--r--ports/ragel/CMakeLists.txt5
-rw-r--r--ports/ragel/CONTROL2
-rw-r--r--ports/ragel/portfile.cmake18
3 files changed, 7 insertions, 18 deletions
diff --git a/ports/ragel/CMakeLists.txt b/ports/ragel/CMakeLists.txt
index 2d91325cf..5c161194c 100644
--- a/ports/ragel/CMakeLists.txt
+++ b/ports/ragel/CMakeLists.txt
@@ -1,8 +1,6 @@
cmake_minimum_required(VERSION 3.0)
project(ragel CXX)
-find_program(NMAKE nmake)
-
file(GLOB HEADERS
ragel/buffer.h
ragel/cdgoto.h
@@ -127,5 +125,4 @@ include_directories(aapl)
add_executable(ragel ${SRC})
-install(TARGETS ragel DESTINATION tools)
-install(FILES ${HEADERS} DESTINATION include)
+install(TARGETS ragel DESTINATION tools CONFIGURATIONS Release)
diff --git a/ports/ragel/CONTROL b/ports/ragel/CONTROL
index 0bc53315f..086159ab3 100644
--- a/ports/ragel/CONTROL
+++ b/ports/ragel/CONTROL
@@ -1,3 +1,3 @@
Source: ragel
-Version:
+Version: 6.9
Description:
diff --git a/ports/ragel/portfile.cmake b/ports/ragel/portfile.cmake
index a00465dbc..2c1f09de9 100644
--- a/ports/ragel/portfile.cmake
+++ b/ports/ragel/portfile.cmake
@@ -21,17 +21,10 @@ file(COPY ${CMAKE_CURRENT_LIST_DIR}/config.h DESTINATION ${SOURCE_PATH}/ragel)
vcpkg_apply_patches(
SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src
- PATCHES "${CMAKE_CURRENT_LIST_DIR}/0001-Remove-unistd.h-include-1.patch"
-)
-
-vcpkg_apply_patches(
- SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src
- PATCHES "${CMAKE_CURRENT_LIST_DIR}/0002-Remove-unistd.h-include-2.patch"
-)
-
-vcpkg_apply_patches(
- SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src
- PATCHES "${CMAKE_CURRENT_LIST_DIR}/0003-Fix-rsxgoto.cpp-build.patch"
+ PATCHES
+ "${CMAKE_CURRENT_LIST_DIR}/0001-Remove-unistd.h-include-1.patch"
+ "${CMAKE_CURRENT_LIST_DIR}/0002-Remove-unistd.h-include-2.patch"
+ "${CMAKE_CURRENT_LIST_DIR}/0003-Fix-rsxgoto.cpp-build.patch"
)
vcpkg_configure_cmake(
@@ -39,10 +32,9 @@ vcpkg_configure_cmake(
GENERATOR "Visual Studio 14 2015"
)
-vcpkg_build_cmake()
vcpkg_install_cmake()
-file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
+file(WRITE ${CURRENT_PACKAGES_DIR}/include/ragel.txt)
# Handle copyright
file(COPY ${CURRENT_BUILDTREES_DIR}/src/ragel-6.9/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/ragel)