aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2017-02-14 18:34:59 -0800
committerAlexander Karatarakis <alkarata@microsoft.com>2017-02-14 18:34:59 -0800
commit3e0e9e3449d0da506fe70d58cee7715c64708b2b (patch)
tree51671153b29d61cbe092dc728757b850078740e7
parentff3b3ecb55e95038ddf22b60650795862bc3e7ba (diff)
downloadvcpkg-3e0e9e3449d0da506fe70d58cee7715c64708b2b.tar.gz
vcpkg-3e0e9e3449d0da506fe70d58cee7715c64708b2b.zip
[antlr4] Fix downloading of LICENSE file
-rw-r--r--ports/antlr4/portfile.cmake15
1 files changed, 8 insertions, 7 deletions
diff --git a/ports/antlr4/portfile.cmake b/ports/antlr4/portfile.cmake
index 8b11c95b0..41bb5559e 100644
--- a/ports/antlr4/portfile.cmake
+++ b/ports/antlr4/portfile.cmake
@@ -6,6 +6,14 @@ vcpkg_download_distfile(ARCHIVE
FILENAME "antlr4-cpp-runtime-4.6-source.zip"
SHA512 e123c2227e41ce80da5a3758725a018690ed70a4e10c23da26c966259e6bdafa192f4363f5a7e1181ef9a47bf3cc50d6b0ca7b26c8dd2b19222a7edf54de8de2
)
+
+# license not exist in antlr folder.
+vcpkg_download_distfile(LICENSE
+ URLS https://raw.githubusercontent.com/antlr/antlr4/4.6/LICENSE.txt
+ FILENAME "antlr4-copyright"
+ SHA512 c72ae3d5c9f3f07160405b5ca44f01116a9602d82291d6cd218fcc5ec6e8baf985e4baa2acf3d621079585385708bd171c96ef44dd808e60c40a48bc1f56c9ae
+)
+
vcpkg_extract_source_archive(${ARCHIVE})
vcpkg_apply_patches(
@@ -62,13 +70,6 @@ else()
DESTINATION ${CURRENT_PACKAGES_DIR}/bin)
endif()
-
-# license not exist in antlr folder.
-vcpkg_download_distfile(LICENSE
- URLS https://raw.githubusercontent.com/antlr/antlr4/master/LICENSE.txt
- FILENAME "antlr4-copyright"
- SHA512 c72ae3d5c9f3f07160405b5ca44f01116a9602d82291d6cd218fcc5ec6e8baf985e4baa2acf3d621079585385708bd171c96ef44dd808e60c40a48bc1f56c9ae
-)
file(INSTALL ${LICENSE} DESTINATION ${CURRENT_PACKAGES_DIR}/share/antlr4 RENAME copyright)
message(STATUS "Installing done") \ No newline at end of file