Skip to content

Commit

Permalink
libarchive_cpp_wrapper-1.0.0 (untested)
Browse files Browse the repository at this point in the history
  • Loading branch information
fd00 committed Feb 7, 2025
1 parent 0ee1123 commit bd7e075
Show file tree
Hide file tree
Showing 3 changed files with 153 additions and 0 deletions.
77 changes: 77 additions & 0 deletions libarchive_cpp_wrapper/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
libarchive_cpp_wrapper
------------------------------------------
C++ wrapper arround libarchive library

Runtime requirements:
cygwin-3.5.7-1
libarchive13-3.7.7-1
libarchive_cpp_wrapper-devel-1.0.0-1bl1
libarchive_cpp_wrapper1-1.0.0-1bl1
libgcc1-12.4.0-3
libstdc++6-12.4.0-3
pkg-config-2.3.0-1

Build requirements:
(besides corresponding -devel packages)
binutils-2.44-1
cmake-3.28.3-1
cygport-0.36.9-1
gcc-core-12.4.0-3
gcc-g++-12.4.0-3
libarchive-devel-3.7.7-1
ninja-1.12.1-1

Canonical website:
https://github.com/do-m-en/libarchive_cpp_wrapper

Canonical download:
https://github.com/do-m-en/libarchive_cpp_wrapper/archive/refs/tags/1.0.0.tar.gz

-------------------------------------------

Build instructions:
1. unpack libarchive_cpp_wrapper-1.0.0-X-src.tar.xz
2. if you use setup to install this src package,
it will be unpacked under /usr/src automatically
% cd /usr/src
% cygport ./libarchive_cpp_wrapper-1.0.0-X.cygport all

This will create:
/usr/src/libarchive_cpp_wrapper-1.0.0-X-src.tar.xz
/usr/src/libarchive_cpp_wrapper-1.0.0-X.tar.xz
/usr/src/libarchive_cpp_wrapper1-1.0.0-X.tar.xz
/usr/src/libarchive_cpp_wrapper-devel-1.0.0-X.tar.xz

-------------------------------------------

Files included in the binary package:

(libarchive_cpp_wrapper)
/usr/share/doc/Cygwin/libarchive_cpp_wrapper.README
/usr/share/doc/libarchive_cpp_wrapper/README.md

(libarchive_cpp_wrapper1)
/usr/bin/cygarchive_cpp_wrapper-1.dll

(libarchive_cpp_wrapper-devel)
/usr/include/archive_entry.hpp
/usr/include/archive_exception.hpp
/usr/include/archive_reader.hpp
/usr/include/archive_reader.ipp
/usr/include/archive_reader_entry_buffer.hpp
/usr/include/archive_reader_filter.hpp
/usr/include/archive_reader_format.hpp
/usr/include/archive_reader_iterator.hpp
/usr/include/archive_writer.hpp
/usr/include/archive_writer.ipp
/usr/include/archive_writer_filter.hpp
/usr/include/archive_writer_format.hpp
/usr/lib/libarchive_cpp_wrapper.dll.a
/usr/lib/pkgconfig/libarchive_cpp_wrapper.pc

------------------

Port Notes:

----- version 1.0.0-1bl1 -----
Initial release by fd0 <https://github.com/fd00/>
38 changes: 38 additions & 0 deletions libarchive_cpp_wrapper/libarchive_cpp_wrapper-1.0.0-1bl1.cygport
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
HOMEPAGE="https://github.com/do-m-en/${PN}"
SRC_URI="https://github.com/do-m-en/${PN}/archive/refs/tags/${PV}.tar.gz"

CATEGORY="Libs"
SUMMARY="C++ wrapper arround libarchive library"
DESCRIPTION="${SUMMARY}"

LICENSE="BSD-2-Clause"
LICENSE_SPDX="SPDX-License-Identifier: BSD-2-Clause"
# LICENSE_URI=""

BUILD_REQUIRES="libarchive-devel"

inherit cmake

CYGCMAKE_ARGS="
-Dlibarchive_LIBRARIES:STRING=archive
-DVERSION:STRING=${PV}
"

PKG_NAMES="
libarchive_cpp_wrapper
libarchive_cpp_wrapper1
libarchive_cpp_wrapper-devel
"
libarchive_cpp_wrapper_CONTENTS="
usr/share
"
libarchive_cpp_wrapper1_CONTENTS="
usr/bin/cyg*-1.dll
"
libarchive_cpp_wrapper_devel_CONTENTS="
usr/include
usr/lib
"
libarchive_cpp_wrapper_SUMMARY="${SUMMARY} (licensing & readmes)"
libarchive_cpp_wrapper1_SUMMARY="${SUMMARY} (runtime)"
libarchive_cpp_wrapper_devel_SUMMARY="${SUMMARY} (development)"
38 changes: 38 additions & 0 deletions libarchive_cpp_wrapper/libarchive_cpp_wrapper-1.0.0-1bl1.src.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
--- origsrc/libarchive_cpp_wrapper-1.0.0/CMakeLists.txt 2014-09-27 07:02:18.000000000 +0900
+++ src/libarchive_cpp_wrapper-1.0.0/CMakeLists.txt 2025-02-07 20:30:41.231323500 +0900
@@ -84,3 +84,10 @@ install(

DESTINATION include
)
+
+set(prefix ${CMAKE_INSTALL_PREFIX})
+set(exec_prefix ${CMAKE_INSTALL_PREFIX})
+set(libdir ${CMAKE_INSTALL_PREFIX}/lib)
+set(includedir ${CMAKE_INSTALL_PREFIX}/include)
+configure_file(${CMAKE_SOURCE_DIR}/libarchive_cpp_wrapper.pc.in ${CMAKE_BINARY_DIR}/libarchive_cpp_wrapper.pc @ONLY)
+install(FILES ${CMAKE_BINARY_DIR}/libarchive_cpp_wrapper.pc DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/pkgconfig)
--- origsrc/libarchive_cpp_wrapper-1.0.0/archive_entry.hpp 2014-09-27 07:02:18.000000000 +0900
+++ src/libarchive_cpp_wrapper-1.0.0/archive_entry.hpp 2025-02-07 20:27:26.893841900 +0900
@@ -35,7 +35,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBI
#include <cstdint>
#include <istream>
#include <memory>
+#if defined(__linux__)
#include <linux/types.h>
+#endif

#include "archive_reader_entry_buffer.hpp"

--- origsrc/libarchive_cpp_wrapper-1.0.0/libarchive_cpp_wrapper.pc.in 1970-01-01 09:00:00.000000000 +0900
+++ src/libarchive_cpp_wrapper-1.0.0/libarchive_cpp_wrapper.pc.in 2025-02-07 20:30:58.276609300 +0900
@@ -0,0 +1,10 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: libarchive_cpp_wrapper
+Description: C++ wrapper arround libarchive library
+Version: @VERSION@
+Libs: -L${libdir} -larchive_cpp_wrapper
+Cflags: -I${includedir}

0 comments on commit bd7e075

Please sign in to comment.