Skip to content

Commit

Permalink
[corrade,magnum-*] Fix license installation command
Browse files Browse the repository at this point in the history
Signed-off-by: Squareys <[email protected]>
  • Loading branch information
Squareys committed Jul 7, 2020
1 parent f654e51 commit 0111995
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 12 deletions.
9 changes: 4 additions & 5 deletions ports/corrade/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,9 @@ elseif(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
endif()

# Handle copyright
file(COPY ${SOURCE_PATH}/COPYING
DESTINATION ${CURRENT_PACKAGES_DIR}/share/corrade)
file(RENAME
${CURRENT_PACKAGES_DIR}/share/corrade/COPYING
${CURRENT_PACKAGES_DIR}/share/corrade/copyright)
file(INSTALL ${SOURCE_PATH}/COPYING
DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}
RENAME copyright)


vcpkg_copy_pdbs()
6 changes: 4 additions & 2 deletions ports/magnum-extras/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
endif()

# Handle copyright
file(COPY ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/magnum-extras)
file(RENAME ${CURRENT_PACKAGES_DIR}/share/magnum-extras/COPYING ${CURRENT_PACKAGES_DIR}/share/magnum-extras/copyright)
file(INSTALL ${SOURCE_PATH}/COPYING
DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}
RENAME copyright)


vcpkg_copy_pdbs()
5 changes: 3 additions & 2 deletions ports/magnum-integration/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
endif()

# Handle copyright
file(COPY ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/magnum-integration)
file(RENAME ${CURRENT_PACKAGES_DIR}/share/magnum-integration/COPYING ${CURRENT_PACKAGES_DIR}/share/magnum-integration/copyright)
file(INSTALL ${SOURCE_PATH}/COPYING
DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}
RENAME copyright)

vcpkg_copy_pdbs()
5 changes: 3 additions & 2 deletions ports/magnum-plugins/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ else()
endif()

# Handle copyright
file(COPY ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/magnum-plugins)
file(RENAME ${CURRENT_PACKAGES_DIR}/share/magnum-plugins/COPYING ${CURRENT_PACKAGES_DIR}/share/magnum-plugins/copyright)
file(INSTALL ${SOURCE_PATH}/COPYING
DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}
RENAME copyright)

vcpkg_copy_pdbs()
4 changes: 3 additions & 1 deletion ports/magnum/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -123,4 +123,6 @@ else()
file(COPY ${CMAKE_CURRENT_LIST_DIR}/magnumdeploy.ps1 DESTINATION ${CURRENT_PACKAGES_DIR}/debug/bin/magnum-d)
endif()

file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
file(INSTALL ${SOURCE_PATH}/COPYING
DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}
RENAME copyright)

0 comments on commit 0111995

Please sign in to comment.