Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[new port] avro-cpp #3

Merged
merged 1 commit into from
Oct 14, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions ports/avro-cpp/CONTROL
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Source: avro-cpp
Version: 1.9.1
Homepage: https://github.com/apache/avro
Description: Apache Avro is a data serialization system
Build-Depends: boost-iostreams, boost-program-options, boost-random, boost-crc, boost-test



20 changes: 20 additions & 0 deletions ports/avro-cpp/install.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
diff --git a/lang/c++/CMakeLists.txt b/lang/c++/CMakeLists.txt
index 30a5d66..b65cc0f 100644
--- a/lang/c++/CMakeLists.txt
+++ b/lang/c++/CMakeLists.txt
@@ -187,9 +187,9 @@ set (CPACK_PACKAGE_FILE_NAME "avrocpp-${AVRO_VERSION_MAJOR}")
include (CPack)

install (TARGETS avrocpp avrocpp_s
- LIBRARY DESTINATION lib
- ARCHIVE DESTINATION lib
- RUNTIME DESTINATION lib)
+ LIBRARY DESTINATION lib
+ ARCHIVE DESTINATION lib
+ RUNTIME DESTINATION bin)

-install (TARGETS avrogencpp RUNTIME DESTINATION bin)
+install (TARGETS avrogencpp RUNTIME DESTINATION tools/bin)

install (DIRECTORY api/ DESTINATION include/avro
FILES_MATCHING PATTERN *.hh)
33 changes: 33 additions & 0 deletions ports/avro-cpp/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
include(vcpkg_common_functions)

vcpkg_buildpath_length_warning(37)

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO apache/avro
REF release-1.9.1
SHA512 7732ac648b99bede4c57610e2db0bf229e5c672da255c0cd3f09272b0f6d4851fd93e60bc8661a1629fc7140d1596067215108cf5a10d81629bb404f478c68d2
HEAD_REF master
PATCHES
install.patch

)

vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}/lang/c++
PREFER_NINJA
OPTIONS
-DCMAKE_DISABLE_FIND_PACKAGE_Snappy=ON
)

vcpkg_install_cmake(ADD_BIN_TO_PATH)

vcpkg_copy_pdbs()

#file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin)
#file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)

file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)

file(COPY ${SOURCE_PATH}/lang/c++/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/avro-cpp)
file(RENAME ${CURRENT_PACKAGES_DIR}/share/avro-cpp/LICENSE ${CURRENT_PACKAGES_DIR}/share/avro-cpp/copyright)