public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
* [Attn Maintainer] json-c
@ 2023-09-24 12:40 Daisuke Fujimura
  2023-10-01 14:43 ` Jon Turney
  0 siblings, 1 reply; 4+ messages in thread
From: Daisuke Fujimura @ 2023-09-24 12:40 UTC (permalink / raw)
  To: cygwin-apps

[-- Attachment #1: Type: text/plain, Size: 408 bytes --]

Hi,

I previously reported that json-c.pc seems incorrect.
- https://cygwin.com/pipermail/cygwin/2023-August/254350.html

The modified version of json-c.cygport and its CI results are shown below.
- cygport
  - https://cygwin.com/cgit/cygwin-packages/playground/commit/?id=42b2343c88e9ba85dd689579335a77776691bb27
- CI
  - https://github.com/cygwin/scallywag/actions/runs/6286740463

Patch is also attached.

[-- Attachment #2: json-c.cygport.diff --]
[-- Type: application/octet-stream, Size: 675 bytes --]

diff --git a/json-c.cygport b/json-c.cygport
index 0f3bc2a..a0f4195 100644
--- a/json-c.cygport
+++ b/json-c.cygport
@@ -1,7 +1,7 @@
-inherit cmake ninja
+inherit cmake
 NAME="json-c"
 VERSION=0.16
-RELEASE=1
+RELEASE=2
 
 LICENSE="BSD-1-Clause"
 CATEGORY="Libs"
@@ -22,19 +22,11 @@ libjson_c_devel_CONTENTS="usr/include/ usr/lib/"
 
 BUILD_REQUIRES="cmake ninja"
 
-src_compile() {
-	cd ${B}
-	cygcmake -DBUILD_STATIC_LIBS:BOOL=OFF \
-		-DCMAKE_INSTALL_PREFIX:PATH=${D}/usr
-	cygmake
-}
-
-src_install() {
-	cd ${B}
-	cygmake install
-}
+CYGCMAKE_ARGS="
+	-DBUILD_STATIC_LIBS:BOOL=OFF
+"
 
 src_test() {
 	cd ${B}
-	PATH=${B}:${PATH} ctest
+	PATH=${B}:${PATH} ninja_test
 }

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-11-24 22:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-24 12:40 [Attn Maintainer] json-c Daisuke Fujimura
2023-10-01 14:43 ` Jon Turney
2023-10-06 12:40   ` Daisuke Fujimura
2023-11-24 22:16   ` Marco Atzeri

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).