Skip to content

Commit

Permalink
solarpowerlog-0.26 (untested)
Browse files Browse the repository at this point in the history
  • Loading branch information
fd00 committed Feb 7, 2025
1 parent 1fa536a commit 0ee1123
Show file tree
Hide file tree
Showing 3 changed files with 103 additions and 0 deletions.
75 changes: 75 additions & 0 deletions solarpowerlog/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
solarpowerlog
------------------------------------------
Logging data from a photovoltaic installation

Runtime requirements:
cygwin-3.5.7-1
libboost_program_options1.66-1.66.0-1
libboost_system1.66-1.66.0-1
libboost_thread1.66-1.66.0-1
libconfig++11-1.7.3-1bl2
libcppdb0-0.3.1-1bl2
libgcc1-12.4.0-3
liblog4cxx15-1.3.0-1bl1
libstdc++6-12.4.0-3

Build requirements:
(besides corresponding -devel packages)
autoconf-15-2
automake-20240607-1
binutils-2.44-1
boost.m4-0.4+git20210601-1bl1
cygport-0.36.9-1
gcc-core-12.4.0-3
gcc-g++-12.4.0-3
libboost-devel-1.66.0-1
libconfig++-devel-1.7.3-1bl2
libcppdb-devel-0.3.1-1bl2
liblog4cxx-devel-1.3.0-1bl1
libtool-2.5.4-1
make-4.4.1-2

Canonical website:
https://github.com/coldtobi/solarpowerlog

Canonical download:
https://github.com/coldtobi/solarpowerlog/archive/refs/tags/solarpowerlog-0.26.tar.gz

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

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

This will create:
/usr/src/solarpowerlog-0.26-X-src.tar.xz
/usr/src/solarpowerlog-0.26-X.tar.xz

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

Files included in the binary package:

(solarpowerlog)
/usr/bin/solarpowerlog.exe
/usr/share/doc/Cygwin/solarpowerlog.README
/usr/share/doc/solarpowerlog/AUTHORS
/usr/share/doc/solarpowerlog/COPYING
/usr/share/doc/solarpowerlog/COPYRIGHT
/usr/share/doc/solarpowerlog/ChangeLog
/usr/share/doc/solarpowerlog/GPL
/usr/share/doc/solarpowerlog/GPL-3
/usr/share/doc/solarpowerlog/LGPL-3
/usr/share/doc/solarpowerlog/NEWS
/usr/share/doc/solarpowerlog/PLAN
/usr/share/doc/solarpowerlog/README
/usr/share/man/man1/solarpowerlog.1.gz

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

Port Notes:

----- version 0.26-1bl1 -----
Initial release by fd0 <https://github.com/fd00/>
15 changes: 15 additions & 0 deletions solarpowerlog/solarpowerlog-0.26-1bl1.cygport
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
HOMEPAGE="https://github.com/coldtobi/${PN}"
SRC_URI="https://github.com/coldtobi/${PN}/archive/refs/tags/${P}.tar.gz"
SRC_DIR="${PN}-${P}"

CATEGORY="Utils"
SUMMARY="Logging data from a photovoltaic installation"
DESCRIPTION="${SUMMARY}"

LICENSE="LGPL-3.0-or-later"
LICENSE_SPDX="SPDX-License-Identifier: LGPL-3.0-or-later"
LICENSE_URI="COPYING"

BUILD_REQUIRES="libboost-devel libconfig++-devel libcppdb-devel liblog4cxx-devel"

export CXXFLAGS="${CXXFLAGS//-Werror=return-type/}"
13 changes: 13 additions & 0 deletions solarpowerlog/solarpowerlog-0.26-1bl1.src.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
--- origsrc/solarpowerlog-solarpowerlog-0.26/configure.ac 2023-06-10 01:44:56.000000000 +0900
+++ src/solarpowerlog-solarpowerlog-0.26/configure.ac 2025-02-07 19:34:13.950441900 +0900
@@ -230,8 +230,10 @@ PKG_CHECK_EXISTS
AC_LANG(C++)

### Checks for header files.
+if test "$host_os" != "cygwin"; then
AC_CHECK_HEADER([w32api/wtypes.h],
[AC_DEFINE([HAVE_WIN32_API], [1], [Windows API]) ])
+fi

if test "x$ac_cv_header_w32api_wtypes_h" = "xyes"; then
AC_MSG_RESULT([WIN32 API detected. ])

0 comments on commit 0ee1123

Please sign in to comment.