early-access version 2853
This commit is contained in:
22
externals/vcpkg/ports/libstemmer/CMakeLists.txt
vendored
Executable file
22
externals/vcpkg/ports/libstemmer/CMakeLists.txt
vendored
Executable file
@@ -0,0 +1,22 @@
|
||||
cmake_minimum_required(VERSION 3.8.0)
|
||||
|
||||
project(libstemmer)
|
||||
|
||||
file(GLOB SNOWBALL_SOURCES
|
||||
src_c/*.c
|
||||
runtime/api.c
|
||||
runtime/utilities.c
|
||||
libstemmer/libstemmer.c
|
||||
)
|
||||
|
||||
add_library(stemmer ${SNOWBALL_SOURCES})
|
||||
|
||||
install(
|
||||
TARGETS stemmer
|
||||
RUNTIME DESTINATION bin
|
||||
LIBRARY DESTINATION lib
|
||||
ARCHIVE DESTINATION lib
|
||||
)
|
||||
if(NOT DISABLE_INSTALL_HEADERS)
|
||||
install(FILES include/libstemmer.h DESTINATION include)
|
||||
endif()
|
||||
19
externals/vcpkg/ports/libstemmer/LICENSE
vendored
Executable file
19
externals/vcpkg/ports/libstemmer/LICENSE
vendored
Executable file
@@ -0,0 +1,19 @@
|
||||
Snowball - License
|
||||
Except where explicitly noted, all the software given out on this Snowball site is covered by the 3-clause BSD License:
|
||||
|
||||
Copyright (c) 2001, Dr Martin Porter,
|
||||
Copyright (c) 2002, Richard Boulton.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
||||
|
||||
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
|
||||
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
Essentially, all this means is that you can do what you like with the code, except claim another Copyright for it, or claim that it is issued under a different license. The software is also issued without warranties, which means that if anyone suffers through its use, they cannot come back and sue you. You also have to alert anyone to whom you give the Snowball software to the fact that it is covered by the BSD license.
|
||||
|
||||
We have not bothered to insert the licensing arrangement into the text of the Snowball software.
|
||||
24
externals/vcpkg/ports/libstemmer/portfile.cmake
vendored
Executable file
24
externals/vcpkg/ports/libstemmer/portfile.cmake
vendored
Executable file
@@ -0,0 +1,24 @@
|
||||
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
||||
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "http://snowball.tartarus.org/dist/libstemmer_c.tgz"
|
||||
FILENAME "libstemmer_c.tgz"
|
||||
SHA512 9ab5b8bfd5b4071dbbd63d769e09fae3971b49ee441ad970aa95d90b3297f5ffc9deed1613d99974d1485bf3b69292663591957f52bbeddcadbf9d9a4af432f2
|
||||
)
|
||||
|
||||
vcpkg_extract_source_archive_ex(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
ARCHIVE ${ARCHIVE}
|
||||
)
|
||||
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=ON
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/libstemmer RENAME copyright)
|
||||
7
externals/vcpkg/ports/libstemmer/vcpkg.json
vendored
Executable file
7
externals/vcpkg/ports/libstemmer/vcpkg.json
vendored
Executable file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"name": "libstemmer",
|
||||
"version-string": "2017-9",
|
||||
"port-version": 6,
|
||||
"description": "Snowball is a small string processing language designed for creating stemming algorithms for use in Information Retrieval",
|
||||
"homepage": "https://snowball.tartarus.org/"
|
||||
}
|
||||
Reference in New Issue
Block a user