From nobody Tue Apr 15 16:03:48 2025 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4ZcTVF0SDYz5tMTZ; Tue, 15 Apr 2025 16:03:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ZcTVD4mdVz3wjd; Tue, 15 Apr 2025 16:03:48 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1744733028; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=MoGgpT8ut6/2hJ8hIZEbNPhYRd98lODU53UNikthBDI=; b=LWkyYW0BEBVpwesiDYrf0PSqSrULeo8415RHEYo2+oDv5xDMXrTQx51jsGHGTUp6o+sx+k e9+l8lNArA+4tkEd2Xm4ctUb98bVviCZ5uUffoebm8Zyz2I/UeGqavZKKAehHzpeJ/zamR igSdjez0GV/xkWaZAytKQeF+ZeyiWH/QP6nAEyo+UnU9k6Ft0vxXm9N9rMVopBNTp30Qp1 PS1aOVUvavvN64SuL8TmNun/zI4LsLlw6iYqsAfmymFagozIUlEhWiV2q3NYkAxslXb7vB lsm27u+Hj8XrcVbzfkWRobhQ3yzs9CytCWTycWiUjpYKRsNte/LvKpuN9cNwdA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1744733028; a=rsa-sha256; cv=none; b=Hae2ogCEJU34DIFomu5ZiS1uaH24rtSsgAK7kBtMo+O5ra0KGy1l2UNnHmBzV8AKhXEIel 0/j21YlUXKbieYBULp018FHl082GYrnjxoAgimkqr2JI5sSQxf5ayl8uPcUYJwYI+QeJHh sHXOqlQHd0EpdAZSN6k0YyLSxiiXD98nhX8pZ4TWRHwLUywjOtNs0U3YEC9M2ljEMNk8E+ LgUU2/cGIDsVLfjBCG/ndowcrXJQ0rcp1vOBXA93/b7iIdHNPn2mCburA9oiYNFknbWZGz aNiMmf4TzyeuSU8WRf3lfKWVDYF0VnXl3P//hJ+rxvM9g+fjvA+sR9jwDnpDXw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1744733028; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=MoGgpT8ut6/2hJ8hIZEbNPhYRd98lODU53UNikthBDI=; b=HeaSIvvXP9nZwnbzeNLYf6csLC2S99SC2/Th5VGhyLo/dXs53W4WgDdMCPW/K6eEryfNeD Vc/SFb8tFG6RBJKhQha/bIft+27jNCUJrFfy5fd7Z9Qy9YEV0fwHPdQyR88af0KkdaZlaK 7eH6ylEstj3LVDhfTSztx1aYGStkhbtUntNd0IOKR6tQlNRSsUw0vuDM01wD74jIPGazsZ kBa629jnszxMUqeI79jVKnq7+HpYaG3XTV+v4wR8MldG9WwAJA3fKAl3tzlFSbvAE3JyeB lGe6shOj2t/5b6ELBhe/6WvTn12gIROdhdBe5dw3/5E+35D2qVA9aIKV4F1fBA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4ZcTVD4H9yzgyS; Tue, 15 Apr 2025 16:03:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 53FG3mpe053758; Tue, 15 Apr 2025 16:03:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 53FG3mkZ053755; Tue, 15 Apr 2025 16:03:48 GMT (envelope-from git) Date: Tue, 15 Apr 2025 16:03:48 GMT Message-Id: <202504151603.53FG3mkZ053755@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Fernando =?utf-8?Q?Apestegu=C3=ADa?= Subject: git: 6ce9e2dd2d46 - main - astro/libnova: Set maintainer, improve and update 0.15.0 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fernape X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6ce9e2dd2d469224ef7e7f4f843d43273294bc36 Auto-Submitted: auto-generated The branch main has been updated by fernape: URL: https://cgit.FreeBSD.org/ports/commit/?id=6ce9e2dd2d469224ef7e7f4f843d43273294bc36 commit 6ce9e2dd2d469224ef7e7f4f843d43273294bc36 Author: Älven AuthorDate: 2025-04-14 06:43:09 +0000 Commit: Fernando Apesteguía CommitDate: 2025-04-15 16:03:41 +0000 astro/libnova: Set maintainer, improve and update 0.15.0 ChangeLog: https://sourceforge.net/p/libnova/libnova/ci/v0.16/tree/ChangeLog Reporter becomes maintainer. Already maintainer of several ports. PR: 286058 Reported by: alster@vinterdalen.se --- astro/libnova/Makefile | 20 +++++--- astro/libnova/distinfo | 5 +- astro/libnova/files/patch-src_hyperbolic__motion.c | 34 +++++++------ astro/libnova/files/patch-src_libnova_libnova.h | 11 ++++ astro/libnova/files/patch-src_precession.c | 58 ---------------------- astro/libnova/pkg-descr | 10 ++-- astro/libnova/pkg-plist | 5 +- 7 files changed, 54 insertions(+), 89 deletions(-) diff --git a/astro/libnova/Makefile b/astro/libnova/Makefile index 67330eebbd8e..2cc5869cefb0 100644 --- a/astro/libnova/Makefile +++ b/astro/libnova/Makefile @@ -1,24 +1,28 @@ PORTNAME= libnova -PORTVERSION= 0.15.0 -PORTREVISION= 1 +DISTVERSION= 0.16.0 CATEGORIES= astro -MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/v%20${PORTVERSION} +MASTER_SITES= https://sourceforge.net/code-snapshots/git/l/li/${PORTNAME}/${PORTNAME}.git/ +DISTNAME= ${PORTNAME}-${PORTNAME}-${GIT_HASH} -MAINTAINER= ports@FreeBSD.org +MAINTAINER= alster@vinterdalen.se COMMENT= Astronomical Calculation Library WWW= https://libnova.sourceforge.net/ LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING -USES= autoreconf libtool -GNU_CONFIGURE= yes +USES= autoreconf libtool zip USE_LDCONFIG= yes + +GNU_CONFIGURE= yes + INSTALL_TARGET= install-strip -PIE_UNSAFE= yes +PLIST_SUB= SOVERSION=${DISTVERSION:R} + +GIT_HASH= edbf65abe27ef1a2520eb9e839daaf58f15a6941 post-patch: - @${REINPLACE_CMD} -e 's|^CFLAGS=|#CFLAGS=|g' ${WRKSRC}/configure + @${REINPLACE_CMD} -e 's|^CFLAGS=|#CFLAGS=|g' ${WRKSRC}/configure.ac .include diff --git a/astro/libnova/distinfo b/astro/libnova/distinfo index 53879cf79766..64762b91bb13 100644 --- a/astro/libnova/distinfo +++ b/astro/libnova/distinfo @@ -1,2 +1,3 @@ -SHA256 (libnova-0.15.0.tar.gz) = 7c5aa33e45a3e7118d77df05af7341e61784284f1e8d0d965307f1663f415bb1 -SIZE (libnova-0.15.0.tar.gz) = 1533794 +TIMESTAMP = 1744455361 +SHA256 (libnova-libnova-edbf65abe27ef1a2520eb9e839daaf58f15a6941.zip) = 2703497573f949146895dedb6fdf74c8d1f15dbdb831074bbaabc5052bdedc07 +SIZE (libnova-libnova-edbf65abe27ef1a2520eb9e839daaf58f15a6941.zip) = 1373439 diff --git a/astro/libnova/files/patch-src_hyperbolic__motion.c b/astro/libnova/files/patch-src_hyperbolic__motion.c index 70492aa02d1a..7e6e474ed88c 100644 --- a/astro/libnova/files/patch-src_hyperbolic__motion.c +++ b/astro/libnova/files/patch-src_hyperbolic__motion.c @@ -1,17 +1,19 @@ ---- src/hyperbolic_motion.c.orig 2011-07-28 11:02:50 UTC +--- src/hyperbolic_motion.c.orig 2015-03-03 11:16:58 UTC +++ src/hyperbolic_motion.c -@@ -70,12 +70,12 @@ next_z: - F = Z1 * G1; - Q3 = Q3 + F; - if (Z > 100 || fabs(F) > 10000) -- return nan("0"); -+ return strtod("NAN(0)", NULL); - if (fabs(F) > PREC) - goto next_z; - L++; - if (L > 100) -- return nan("0"); -+ return strtod("NAN(0)", NULL); - do - { - S1 = S; +@@ -73,14 +73,14 @@ next_z: + Q3 = Q3 + F; + + if (Z > 100 || fabs(F) > 10000) +- return nan("0"); ++ return strtod("NAN(0)", NULL); + + if (fabs(F) > PREC) + goto next_z; + + L++; + if (L > 100) +- return nan("0"); ++ return strtod("NAN(0)", NULL); + + do { + S1 = S; diff --git a/astro/libnova/files/patch-src_libnova_libnova.h b/astro/libnova/files/patch-src_libnova_libnova.h new file mode 100644 index 000000000000..0cf832fa8b3e --- /dev/null +++ b/astro/libnova/files/patch-src_libnova_libnova.h @@ -0,0 +1,11 @@ +--- src/libnova/libnova.h.orig 2015-03-03 11:16:58 UTC ++++ src/libnova/libnova.h +@@ -16,7 +16,7 @@ + * Copyright (C) 2000 - 2005 Liam Girdwood + */ + +-#define LIBNOVA_VERSION "0.15.0" ++#define LIBNOVA_VERSION "0.16.0" + + /*! \mainpage libnova + * \image html libnova-logo.jpg diff --git a/astro/libnova/files/patch-src_precession.c b/astro/libnova/files/patch-src_precession.c deleted file mode 100644 index 78d8c407d871..000000000000 --- a/astro/libnova/files/patch-src_precession.c +++ /dev/null @@ -1,58 +0,0 @@ ---- src/precession.c.orig 2011-07-28 11:02:50 UTC -+++ src/precession.c -@@ -82,21 +82,21 @@ void ln_get_equ_prec (struct ln_equ_posn - theta = ln_deg_to_rad (theta); - - /* calc A,B,C equ 20.4 */ -- A = cosl (mean_dec) * sinl (mean_ra + zeta); -- B = cosl (theta) * cosl (mean_dec) * cosl (mean_ra + zeta) - sinl (theta) * sinl (mean_dec); -- C = sinl (theta) * cosl (mean_dec) * cosl (mean_ra + zeta) + cosl (theta) * sinl (mean_dec); -+ A = cos (mean_dec) * sin (mean_ra + zeta); -+ B = cos (theta) * cos (mean_dec) * cos (mean_ra + zeta) - sin (theta) * sin (mean_dec); -+ C = sin (theta) * cos (mean_dec) * cos (mean_ra + zeta) + cos (theta) * sin (mean_dec); - -- ra = atan2l (A,B) + eta; -+ ra = atan2 (A,B) + eta; - - /* check for object near celestial pole */ - if (mean_dec > (0.4 * M_PI) || mean_dec < (-0.4 * M_PI)) { - /* close to pole */ -- dec = acosl (sqrt(A * A + B * B)); -+ dec = acos (sqrt(A * A + B * B)); - if (mean_dec < 0.) - dec *= -1; /* 0 <= acos() <= PI */ - } else { - /* not close to pole */ -- dec = asinl (C); -+ dec = asin (C); - } - - /* change to degrees */ -@@ -140,21 +140,21 @@ void ln_get_equ_prec2 (struct ln_equ_pos - theta = ln_deg_to_rad (theta); - - /* calc A,B,C equ 20.4 */ -- A = cosl (mean_dec) * sinl (mean_ra + zeta); -- B = cosl (theta) * cosl (mean_dec) * cosl (mean_ra + zeta) - sinl (theta) * sinl (mean_dec); -- C = sinl (theta) * cosl (mean_dec) * cosl (mean_ra + zeta) + cosl (theta) * sinl (mean_dec); -+ A = cos (mean_dec) * sin (mean_ra + zeta); -+ B = cos (theta) * cos (mean_dec) * cos (mean_ra + zeta) - sin (theta) * sin (mean_dec); -+ C = sin (theta) * cos (mean_dec) * cos (mean_ra + zeta) + cos (theta) * sin (mean_dec); - -- ra = atan2l (A,B) + eta; -+ ra = atan2 (A,B) + eta; - - /* check for object near celestial pole */ - if (mean_dec > (0.4 * M_PI) || mean_dec < (-0.4 * M_PI)) { - /* close to pole */ -- dec = acosl (sqrt(A * A + B * B)); -+ dec = acos (sqrt(A * A + B * B)); - if (mean_dec < 0.) - dec *= -1; /* 0 <= acos() <= PI */ - } else { - /* not close to pole */ -- dec = asinl (C); -+ dec = asin (C); - } - - /* change to degrees */ diff --git a/astro/libnova/pkg-descr b/astro/libnova/pkg-descr index 42fda8ad145d..f54f5a8e3339 100644 --- a/astro/libnova/pkg-descr +++ b/astro/libnova/pkg-descr @@ -1,3 +1,7 @@ -libnova is a general purpose, double precision, astronomical calculation -library. The intended audience of libnova is C / C++ programmers, astronomers -and anyone else interested in calculating positions of astronomical objects. +libnova is a general purpose, double precision, Celestial Mechanics, Astrometry +and Astrodynamics library. + +The intended audience of libnova is C / C++ programmers, astronomers and anyone +else interested in calculating positions of astronomical objects or celestial +mechanics. libnova is the calculation engine used by the Nova project and most +importantly, is Free Software. diff --git a/astro/libnova/pkg-plist b/astro/libnova/pkg-plist index 204e23f52da8..5695f68b4b59 100644 --- a/astro/libnova/pkg-plist +++ b/astro/libnova/pkg-plist @@ -5,6 +5,7 @@ include/libnova/angular_separation.h include/libnova/apparent_position.h include/libnova/asteroid.h include/libnova/comet.h +include/libnova/constellation.h include/libnova/dynamical_time.h include/libnova/earth.h include/libnova/elliptic_motion.h @@ -34,7 +35,7 @@ include/libnova/uranus.h include/libnova/utility.h include/libnova/venus.h include/libnova/vsop87.h -lib/libnova-0.15.so.0 -lib/libnova-0.15.so.0.0.0 +lib/libnova-%%SOVERSION%%.so.0 +lib/libnova-%%SOVERSION%%.so.0.0.0 lib/libnova.a lib/libnova.so