Skip to content

Commit

Permalink
libgetar-1.1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
fd00 committed Dec 23, 2023
1 parent dfd97e4 commit ca2b9e4
Show file tree
Hide file tree
Showing 4 changed files with 122 additions and 88 deletions.
55 changes: 31 additions & 24 deletions libgetar/README
Original file line number Diff line number Diff line change
Expand Up @@ -4,57 +4,61 @@ libgetar is a library to read and write GEneric Trajectory ARchives, a binary
data format designed for efficient, extensible storage of trajectory data.

Runtime requirements:
cygwin-3.0.7-1
libgcc1-7.4.0-1
libgetar-devel-1.0.1-1bl1
libgetar0-1.0.1-1bl1
liblz4_1-1.7.5-1
libsqlite3_0-3.28.0-1
libstdc++6-7.4.0-1
pkg-config-1.6.0-1
cygwin-3.5.0-0.505.g0737bda6ff5a
libgcc1-11.4.0-1
libgetar-devel-1.1.5-1bl1
libgetar1-1.1.5-1bl1
liblz4_1-1.9.4-1
libminiz3-3.0.2-1bl1
libsqlite3_0-3.34.0-1
libstdc++6-11.4.0-1
pkg-config-2.1.0-1

Build requirements:
(besides corresponding -devel packages)
binutils-2.29-1
cmake-3.14.5-1
cygport-0.33.1-1
gcc-core-7.4.0-1
gcc-g++-7.4.0-1
ninja-1.9.0-1
binutils-2.41-3
cmake-3.25.3-1
cygport-0.36.7-1
gcc-core-11.4.0-1
gcc-g++-11.4.0-1
liblz4-devel-1.9.4-1
libminiz-devel-3.0.2-1bl1
libsqlite3-devel-3.34.0-1
ninja-1.11.1-1

Canonical website:
https://github.com/glotzerlab/libgetar

Canonical download:
https://github.com/glotzerlab/libgetar/archive/v1.0.1.tar.gz
https://github.com/glotzerlab/libgetar/archive/refs/tags/v1.1.5.tar.gz

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

Build instructions:
1. unpack libgetar-1.0.1-X-src.tar.xz
1. unpack libgetar-1.1.5-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 ./libgetar-1.0.1-X.cygport all
% cygport ./libgetar-1.1.5-X.cygport all

This will create:
/usr/src/libgetar-1.0.1-X-src.tar.xz
/usr/src/libgetar-1.0.1-X.tar.xz
/usr/src/libgetar0-1.0.1-X.tar.xz
/usr/src/libgetar-devel-1.0.1-X.tar.xz
/usr/src/libgetar-1.1.5-X-src.tar.xz
/usr/src/libgetar-1.1.5-X.tar.xz
/usr/src/libgetar1-1.1.5-X.tar.xz
/usr/src/libgetar-devel-1.1.5-X.tar.xz

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

Files included in the binary package:

(libgetar)
/usr/share/doc/Cygwin/libgetar.README
/usr/share/doc/libgetar/ChangeLog.md
/usr/share/doc/libgetar/LICENSE
/usr/share/doc/libgetar/README.md
/usr/share/doc/libgetar/changelog.md

(libgetar0)
/usr/bin/cyggetar-0.dll
(libgetar1)
/usr/bin/cyggetar-1.dll

(libgetar-devel)
/usr/include/getar/Archive.hpp
Expand All @@ -72,6 +76,9 @@ Files included in the binary package:

Port Notes:

----- version 1.1.5-1bl1 -----
Version bump.

----- version 1.0.1-1bl1 -----
Version bump.

Expand Down
59 changes: 0 additions & 59 deletions libgetar/libgetar-1.0.1-1bl1.src.patch

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
HOMEPAGE="https://github.com/glotzerlab/${PN}"
SRC_URI="https://github.com/glotzerlab/${PN}/archive/v${PV}.tar.gz"
SRC_URI="https://github.com/glotzerlab/${PN}/archive/refs/tags/v${PV}.tar.gz"

CATEGORY="Libs"
SUMMARY="Library to read and write GEneric Trajectory ARchives"
DESCRIPTION="libgetar is a library to read and write GEneric Trajectory ARchives, a binary
data format designed for efficient, extensible storage of trajectory data."

LICENSE="MIT"
LICENSE_SPDX="SPDX-License-Identifier: MIT"
LICENSE_URI="LICENSE"

BUILD_REQUIRES="liblz4-devel libminiz-devel libsqlite3-devel"

CYGCMAKE_ARGS="
-DLIBGETAR_SHARED:BOOL=ON
-DSOVERSION:STRING=${PV[1]}
-DVERSION:STRING=${PV}
"

Expand All @@ -20,21 +27,25 @@ src_test()
PATH=${B}:${PATH} ./test_records.exe
}

DOCS="
changelog.md
"

PKG_NAMES="
${PN}
${PN}0
${PN}1
${PN}-devel
"
libgetar_CONTENTS="
usr/share
"
libgetar0_CONTENTS="
usr/bin
libgetar1_CONTENTS="
usr/bin/cyg*-1.dll
"
libgetar_devel_CONTENTS="
usr/include
usr/lib
"
libgetar_SUMMARY="${SUMMARY} (licensing & readmes)"
libgetar0_SUMMARY="${SUMMARY} (runtime)"
libgetar1_SUMMARY="${SUMMARY} (runtime)"
libgetar_devel_SUMMARY="${SUMMARY} (development)"
75 changes: 75 additions & 0 deletions libgetar/libgetar-1.1.5-1bl1.src.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
--- origsrc/libgetar-1.1.5/CMakeLists.txt 2023-12-07 03:40:43.000000000 +0900
+++ src/libgetar-1.1.5/CMakeLists.txt 2023-12-21 21:33:03.523020700 +0900
@@ -11,10 +11,6 @@ set(GETAR_SRC
src/SqliteArchive.cpp
src/TarArchive.cpp
src/ZipArchive.cpp
- lz4/lz4.c
- lz4/lz4hc.c
- miniz/miniz.cpp
- sqlite3/sqlite3.c
)

set(GETAR_HEADERS
@@ -26,30 +22,39 @@ set(GETAR_HEADERS
src/SqliteArchive.hpp
src/TarArchive.hpp
src/ZipArchive.hpp
- miniz/miniz.h
- sqlite3/sqlite3.h
)

-include_directories(
- lz4
- miniz
- sqlite3
- )
+include(FindPkgConfig)
+pkg_check_modules(MINIZ REQUIRED miniz)
+pkg_check_modules(LIBLZ4 REQUIRED liblz4)
+pkg_check_modules(SQLITE3 REQUIRED sqlite3)

-SET(LINK_LIBS ${LINK_LIBS} ${CMAKE_DL_LIBS})
+include_directories(${MINIZ_INCLUDE_DIRS})

+set(LINK_LIBS ${LINK_LIBS} ${CMAKE_DL_LIBS} ${MINIZ_LIBRARIES} ${LIBLZ4_LIBRARIES} ${SQLITE3_LIBRARIES})
+
find_package(Threads)

if(LIBGETAR_SHARED)
ADD_LIBRARY(getar SHARED ${GETAR_SRC})
+ if (DEFINED SOVERSION)
+ set_target_properties(getar PROPERTIES SOVERSION "${SOVERSION}")
+ endif()
else()
ADD_LIBRARY(getar STATIC ${GETAR_SRC})
endif()

target_link_libraries(getar ${LINK_LIBS} ${CMAKE_THREAD_LIBS_INIT})

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

install(FILES ${GETAR_HEADERS} DESTINATION include/getar)

add_subdirectory(test)
+
+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}/libgetar.pc.in ${CMAKE_BINARY_DIR}/libgetar.pc @ONLY)
+install(FILES ${CMAKE_BINARY_DIR}/libgetar.pc DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/pkgconfig)
--- origsrc/libgetar-1.1.5/libgetar.pc.in 1970-01-01 09:00:00.000000000 +0900
+++ src/libgetar-1.1.5/libgetar.pc.in 2023-12-21 21:34:02.096617200 +0900
@@ -0,0 +1,10 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: libgetar
+Description: Library to read and write GEneric Trajectory ARchives
+Version: @VERSION@
+Libs: -L${libdir} -lgetar
+Cflags: -I${includedir}

0 comments on commit ca2b9e4

Please sign in to comment.