wjwwood / serial

Cross-platform, Serial Port library written in C++
http://wjwwood.github.com/serial/
MIT License
2.11k stars 1.02k forks source link

Move License text to separate LICENSE file (required for adding to vcpkg) #261

Closed ericfont closed 2 years ago

ericfont commented 2 years ago

I was seeing if this library could be added to vcpkg but found a little minor issue when testing the install of my vcpkg portfile:

The software license must be available at ${CURRENT_PACKAGES_DIR}/share/serial/copyright
Found 2 post-build check problem(s). To submit these ports to curated catalogs, please first correct the portfile:
    /home/e/vcpkg/ports/serial/portfile.cmake
-- Performing post-build validation done

So vcpkg wants the license in its own file apparently.

ericfont commented 2 years ago

hmm...it is saying "${CURRENT_PACKAGES_DIR}/share/serial/copyright"...so maybe they want in a file named "copyright", though I have a feeling putting in a "LICENSE" file works too.

actually vcpkg create autogenerates the following in the autogenerated portfile:

# # Handle copyright
# file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/serial RENAME copyright)

So it looks like "LICENSE" is the default assumed file.