Skip to content

Commit

Permalink
nyan-0.3.1 (untested)
Browse files Browse the repository at this point in the history
  • Loading branch information
fd00 committed Jan 11, 2025
1 parent 64f7d42 commit 0eb9858
Show file tree
Hide file tree
Showing 3 changed files with 216 additions and 0 deletions.
127 changes: 127 additions & 0 deletions nyan/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
nyan
------------------------------------------
Typesafe hierarchical key-value database with inheritance and dynamic patching

Runtime requirements:
cygwin-3.5.4-1
libgcc1-12.4.0-3
libnyan-devel-0.3.1-1bl1
libnyan1-0.3.1-1bl1
libstdc++6-12.4.0-3
pkg-config-2.3.0-1

Build requirements:
(besides corresponding -devel packages)
binutils-2.43.1-1
cmake-3.28.3-1
cygport-0.36.9-1
gcc-core-12.4.0-3
gcc-g++-12.4.0-3
ninja-1.12.0-1

Canonical website:
https://github.com/SFTtech/nyan

Canonical download:
https://github.com/SFTtech/nyan/archive/refs/tags/v0.3.1.tar.gz

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

Build instructions:
1. unpack nyan-0.3.1-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 ./nyan-0.3.1-X.cygport all

This will create:
/usr/src/nyan-0.3.1-X-src.tar.xz
/usr/src/nyan-0.3.1-X.tar.xz
/usr/src/libnyan1-0.3.1-X.tar.xz
/usr/src/libnyan-devel-0.3.1-X.tar.xz

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

Files included in the binary package:

(nyan)
/usr/bin/nyancat.exe
/usr/share/doc/Cygwin/nyan.README
/usr/share/doc/nyan/README.md

(libnyan1)
/usr/bin/cygnyan-1.dll

(libnyan-devel)
/usr/include/nyan/api_error.h
/usr/include/nyan/ast.h
/usr/include/nyan/basic_type.h
/usr/include/nyan/c3.h
/usr/include/nyan/change_tracker.h
/usr/include/nyan/compiler.h
/usr/include/nyan/config.h
/usr/include/nyan/curve.h
/usr/include/nyan/database.h
/usr/include/nyan/datastructure/orderedset.h
/usr/include/nyan/error.h
/usr/include/nyan/file.h
/usr/include/nyan/id_token.h
/usr/include/nyan/inheritance_change.h
/usr/include/nyan/lang_error.h
/usr/include/nyan/lexer/bracket.h
/usr/include/nyan/lexer/impl.h
/usr/include/nyan/lexer/lexer.h
/usr/include/nyan/location.h
/usr/include/nyan/member.h
/usr/include/nyan/member_info.h
/usr/include/nyan/meta_info.h
/usr/include/nyan/namespace.h
/usr/include/nyan/namespace_finder.h
/usr/include/nyan/nyan.h
/usr/include/nyan/nyan_tool.h
/usr/include/nyan/object.h
/usr/include/nyan/object_history.h
/usr/include/nyan/object_info.h
/usr/include/nyan/object_notifier.h
/usr/include/nyan/object_notifier_types.h
/usr/include/nyan/object_state.h
/usr/include/nyan/ops.h
/usr/include/nyan/parser.h
/usr/include/nyan/patch_info.h
/usr/include/nyan/state.h
/usr/include/nyan/state_history.h
/usr/include/nyan/token.h
/usr/include/nyan/token_stream.h
/usr/include/nyan/transaction.h
/usr/include/nyan/type.h
/usr/include/nyan/util.h
/usr/include/nyan/util/flags.h
/usr/include/nyan/value/boolean.h
/usr/include/nyan/value/container.h
/usr/include/nyan/value/container_types.h
/usr/include/nyan/value/dict.h
/usr/include/nyan/value/file.h
/usr/include/nyan/value/none.h
/usr/include/nyan/value/number.h
/usr/include/nyan/value/object.h
/usr/include/nyan/value/orderedset.h
/usr/include/nyan/value/set.h
/usr/include/nyan/value/set_base.h
/usr/include/nyan/value/text.h
/usr/include/nyan/value/value.h
/usr/include/nyan/value/value_holder.h
/usr/include/nyan/value_token.h
/usr/include/nyan/view.h
/usr/lib/cmake/nyan/nyanConfig.cmake
/usr/lib/cmake/nyan/nyanConfigVersion.cmake
/usr/lib/cmake/nyan/nyanTargets-release.cmake
/usr/lib/cmake/nyan/nyanTargets.cmake
/usr/lib/libnyan.dll.a
/usr/lib/pkgconfig/nyan.pc

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

Port Notes:

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

CATEGORY="Database"
SUMMARY="Typesafe hierarchical key-value database with inheritance and dynamic patching"
DESCRIPTION="${SUMMARY}"

LICENSE="LGPL-3.0-or-later"
LICENSE_SPDX="SPDX-License-Identifier: LGPL-3.0-or-later"
LICENSE_URI="copying.md"

export CPPFLAGS="${CPPFLAGS} -D_GNU_SOURCE"

inherit cmake

CYGCMAKE_ARGS="
-DDOXYGEN_ENABLE:BOOL=OFF
-DREGISTER_USERPACKAGE:BOOL=OFF
"

PKG_NAMES="
nyan
libnyan1
libnyan-devel
"
nyan_CONTENTS="
usr/bin/*.exe
usr/share
"
libnyan1_CONTENTS="
usr/bin/cyg*-1.dll
"
libnyan_devel_CONTENTS="
usr/include
usr/lib
"
nyan_SUMMARY="${SUMMARY} (utilities)"
libnyan1_SUMMARY="${SUMMARY} (runtime)"
libnyan_devel_SUMMARY="${SUMMARY} (development)"
50 changes: 50 additions & 0 deletions nyan/nyan-0.3.1-1bl1.src.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
--- origsrc/nyan-0.3.1/CMakeLists.txt 2024-11-07 03:25:58.000000000 +0900
+++ src/nyan-0.3.1/CMakeLists.txt 2025-01-11 23:19:35.782467100 +0900
@@ -184,3 +184,9 @@ message("
")

set_property(GLOBAL PROPERTY TARGET_MESSAGES OFF)
+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}/nyan.pc.in ${CMAKE_BINARY_DIR}/nyan.pc @ONLY)
+install(FILES ${CMAKE_BINARY_DIR}/nyan.pc DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/pkgconfig)
--- origsrc/nyan-0.3.1/nyan/util.cpp 2024-11-07 03:25:58.000000000 +0900
+++ src/nyan-0.3.1/nyan/util.cpp 2025-01-11 23:11:51.384347300 +0900
@@ -13,7 +13,7 @@
#include <streambuf>
#include <string>

-#if defined(_WIN32) || defined(__CYGWIN__)
+#if defined(_WIN32)
#include <array>
#include <mutex>

@@ -135,7 +135,7 @@ std::string addr_to_string(const void *a
std::string symbol_name(const void *addr,
bool require_exact_addr,
bool no_pure_addrs) {
-#if defined(_WIN32) || defined(__CYGWIN__)
+#if defined(_WIN32)
auto symbol_name_result = symbol_name_win(addr, require_exact_addr);

if (!symbol_name_result.empty()) {
--- origsrc/nyan-0.3.1/nyan.pc.in 1970-01-01 09:00:00.000000000 +0900
+++ src/nyan-0.3.1/nyan.pc.in 2025-01-11 23:20:03.861139300 +0900
@@ -0,0 +1,10 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: nyan
+Description: Typesafe hierarchical key-value database with inheritance and dynamic patching
+Version: @PROJECT_VERSION@
+Libs: -L${libdir} -lnyan
+Cflags: -I${includedir}
--- origsrc/nyan-0.3.1/nyan_version 2024-11-07 03:25:58.000000000 +0900
+++ src/nyan-0.3.1/nyan_version 2025-01-11 23:00:41.442921000 +0900
@@ -1 +1 @@
-0.3.0
+0.3.1

0 comments on commit 0eb9858

Please sign in to comment.