diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-03-15 06:47:25 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-03-15 06:47:25 +0000 |
commit | bc5dfb0671fb08c7da579b38b0e6abdd19da103f (patch) | |
tree | 1be81dbc48e2e0ec0cc322ab3062f1c56edd88be /sci-misc/oww | |
parent | 4614848cbaec61bd1083af01a41f39c3b4a9e274 (diff) |
gentoo auto-resync : 15:03:2024 - 06:47:25
Diffstat (limited to 'sci-misc/oww')
-rw-r--r-- | sci-misc/oww/Manifest | 2 | ||||
-rw-r--r-- | sci-misc/oww/files/oww-0.86.5-c99.patch | 59 | ||||
-rw-r--r-- | sci-misc/oww/oww-0.86.5-r1.ebuild | 42 |
3 files changed, 103 insertions, 0 deletions
diff --git a/sci-misc/oww/Manifest b/sci-misc/oww/Manifest index 638ed813ec17..2ea43868b171 100644 --- a/sci-misc/oww/Manifest +++ b/sci-misc/oww/Manifest @@ -1,6 +1,8 @@ AUX oww-0.86.4-build.patch 1953 BLAKE2B d53cbee2a83367f5c65ff0e05654c86a93e7a1252bb22cb4a724b6671e3d235e58554ca3d8afa4b3a1d5ae5a2773a6a2ed2b4aa1932c897477e2bd0605f5d1f2 SHA512 596ae53c671f8cd94a20c1867fbf03ba06955d660d3c642b9ef6a8c825422e29c0162e4280925135c172b56329934caabd6ff4f4dcf0f8f0238ab0eae0a4f8e9 +AUX oww-0.86.5-c99.patch 1666 BLAKE2B c78c72ae02610ebf3f1543193c5798a28b98c3fc2f52801948ba825b14b54d113f0861bef279f16370dfe9ac367e1ba06837f9841fe8687dd7f35a23e1d0f649 SHA512 9c0b32436e77d884b53931e75c3a8103aea79b9b3042718786a4537d8c6c47cf3f81f8e2670d40dfdfd19d1c48a7fd90ddf57112f47b16b15e88e136b2b2a2b7 AUX oww-0.86.5-format-security.patch 869 BLAKE2B bf523c42991c1cbef4f039f85d05d84d7d7eef9705dcbc10d7fda50aef28ad8ff29b768cea4523ac44889531b6220c0fe5018845e9c35d3b50953cc9d83bb128 SHA512 fadfa26d67320519df3288d85ee335b0080760204735aa0a7c493bcbeebd1bfe676f211e9edb64173a1fc96df308caafed82bd3e8652ab35f2637a8edd489e6b AUX oww-0.86.5-musl.patch 562 BLAKE2B b491de13ac982623c812879ceb06c7528766e3683224eaba87eca5a48c30e225dc06245d01a07e804d2c7053b7deb626f3d4d770a2c752434c2731e8481fef8a SHA512 5c8d3f9bfe4a271c234aa94e43d3ca4ee642dbac20005dc12fc79c29c10519a7a8489f67bf36766786e3c0f592e05caa5e9a188d4c34b799e134114f85bb655d DIST oww-0.86.5.tar.gz 926962 BLAKE2B 2309dc36f6ced4b131672d231079612e687a37df3529d93c9ef6d350e6d140138f87536dc4eeace290959466a6c2ee555287f8c07f4e4ca75e9643967dea9afa SHA512 cc787379790367eea02423f5213a8947de906d6ccdebb1b76e97196e0be9d9f86e77fbc402693588ae4d7db69968caa7bc9e97e8dfc9395bf420d9df51b28ba9 +EBUILD oww-0.86.5-r1.ebuild 805 BLAKE2B b626da0d6d9e9803925bb984c71930f6c7f8397634c6e4ae0757e22fc2a3c33064e4031dfb6ecd2fe97640eb0d75660dd20fb237193787e14fb5916120bd5571 SHA512 d4dfa5177741cb831f211d888301f7359830ac28707cf8777b4a9ae6d719679d19fc4509dd0b3ef6176a27651bb73df4ccd11952bea2e4b3b3711f23e0f4f6de EBUILD oww-0.86.5.ebuild 775 BLAKE2B 1d7bafaac3e0e1cf2b15433c26cb9192e0303752708fe8589021437ecdb8ef78f64ce91de3cb22ae41207cd12b1f7dd91e26fd7764e855580bb879fed9e2709d SHA512 4565112a25ab87dfea56e10f6225d1399862e63114ef532fa4ca6109dcc119cdcbb573073395614e01f3d867bb21775d2e60de39306d4286a027582727fed5f6 MISC metadata.xml 337 BLAKE2B 918d99db9705cba3daf557b886d1c2f991a914efb5475e5e71ce7982d0a2f44339838929f0e4fdf124fb4d5945c7ff557d326f98c18db25ed6b0d75095568c36 SHA512 995450c10b5373a259509c613c6968b75408652eacf642aeba47f019d28a7aaaf97a9639432194ded7c10ae64e5e5a8024fe70deb7c0331926269824505c1af5 diff --git a/sci-misc/oww/files/oww-0.86.5-c99.patch b/sci-misc/oww/files/oww-0.86.5-c99.patch new file mode 100644 index 000000000000..98c69337d041 --- /dev/null +++ b/sci-misc/oww/files/oww-0.86.5-c99.patch @@ -0,0 +1,59 @@ +https://bugs.gentoo.org/781929 +https://bugs.gentoo.org/863272 +https://bugs.gentoo.org/874081 +--- a/src/devices.h ++++ b/src/devices.h +@@ -455,4 +455,6 @@ int devices_poll(); + + int devices_queue_realloc(int search_entry, char *target, int wipe, void (*callback)(void)); + ++int devices_have_uv_data(int i); ++ + #endif +--- a/src/hobbyboards_moist.c ++++ b/src/hobbyboards_moist.c +@@ -7,6 +7,7 @@ + + + // Include Files ++#include <ctype.h> + #include <stdio.h> + #include <math.h> + #include "werr.h" +--- a/src/mainwin.c ++++ b/src/mainwin.c +@@ -16,6 +16,7 @@ + #include "setup.h" + #include "oww.h" + #include "convert.h" ++#include "devices.h" + //#include "message.h" + #include "globaldef.h" + #include "werr.h" +--- a/src/mownetu.c ++++ b/src/mownetu.c +@@ -52,11 +52,11 @@ static SMALLINT bitacc(SMALLINT,SMALLINT,SMALLINT,uchar *); + static int LastDiscrepancy[MAX_PORTNUM]; + static int LastFamilyDiscrepancy[MAX_PORTNUM]; + static uchar LastDevice[MAX_PORTNUM]; +-uchar SerialNum[MAX_PORTNUM][8]; ++extern uchar SerialNum[MAX_PORTNUM][8]; + + // external globals + extern int UMode[MAX_PORTNUM]; +-extern uchar USpeed[MAX_PORTNUM]; ++extern SMALLINT USpeed[MAX_PORTNUM]; + + //-------------------------------------------------------------------------- + // The 'owFirst' finds the first device on the 1-Wire Net This function +--- a/src/weather.h ++++ b/src/weather.h +@@ -21,6 +21,8 @@ int FindWeatherStation(void) ; + void weather_lcd_output(void) ; + //int weather_read_ws_read_gpc (void) ; + void weather_sub_update_gpcs (void) ; ++int weather_primary_uv (statsmean * means); ++int weather_primary_leafwetness (statsmean * means); + + #define TEMP_CONV_TIME 100L + #define UNDEFINED_T -1000.0F diff --git a/sci-misc/oww/oww-0.86.5-r1.ebuild b/sci-misc/oww/oww-0.86.5-r1.ebuild new file mode 100644 index 000000000000..e91581f01553 --- /dev/null +++ b/sci-misc/oww/oww-0.86.5-r1.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools + +DESCRIPTION="A one-wire weather station for Dallas Semiconductor" +HOMEPAGE="http://oww.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="Artistic" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="gtk nls usb" + +RDEPEND=" + net-misc/curl + gtk? ( x11-libs/gtk+:2 )" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${PN}-0.86.4-build.patch + "${FILESDIR}"/${P}-format-security.patch + "${FILESDIR}"/${P}-musl.patch + "${FILESDIR}"/${P}-c99.patch +) + +src_prepare() { + default + mv configure.{in,ac} || die + eautoreconf +} + +src_configure() { + econf \ + --enable-interactive \ + $(use_enable nls) \ + $(use_enable gtk gui) \ + $(use_with usb) +} |