Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Jun 2021 11:14:31 GMT
From:      Muhammad Moinur Rahman <bofh@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 2c66f7e248a8 - main - astro/swe: Update version 2.10.01=>2.10.1
Message-ID:  <202106041114.154BEVSm060123@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=2c66f7e248a8c752aa5de181f335e04f9971a792

commit 2c66f7e248a8c752aa5de181f335e04f9971a792
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2021-06-04 06:04:59 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2021-06-04 11:13:51 +0000

    astro/swe: Update version 2.10.01=>2.10.1
    
    - Change MASTER_SITES to GITHUB
    - Update LICENSE to AGPLv3 from GPLv2
    - Add doc distfile
    
    Relnotes: https://github.com/aloistr/swisseph/releases/tag/v2.10.1
---
 astro/swe/Makefile  | 21 ++++++++++++---------
 astro/swe/distinfo  |  8 +++++---
 astro/swe/pkg-plist |  9 +++++----
 3 files changed, 22 insertions(+), 16 deletions(-)

diff --git a/astro/swe/Makefile b/astro/swe/Makefile
index 88f23fc6ba44..e45a0a7da907 100644
--- a/astro/swe/Makefile
+++ b/astro/swe/Makefile
@@ -1,26 +1,29 @@
 # Created by: Wen Heping <wenheping@gmail.com>
 
 PORTNAME=	swe
-PORTVERSION=	2.10.01
+PORTVERSION=	2.10.1
 CATEGORIES=	astro devel
-MASTER_SITES=	ftp://ftp.astro.com/pub/swisseph/
-DISTNAME=	${PORTNAME}_unix_src_${PORTVERSION}
 
 MAINTAINER=	bofh@FreeBSD.org
 COMMENT=	High Precision Ephemeris Developed By Astrodienst
 
-LICENSE=	GPLv2
+LICENSE=	AGPLv3
 
 USES=		gmake
+USE_GITHUB=	nodefault
 
-WRKSRC=		${WRKDIR}/src
-ALL_TARGET=	#
-MAKE_ARGS=	CFLAGS="${CFLAGS}"
+GH_ACCOUNT=	aloistr:src,doc
+GH_PROJECT=	swisseph:src swisseph_doc:doc
+GH_TAGNAME=	v${PORTVERSION}:src v${PORTVERSION:S/./,/g}:doc
 
 OPTIONS_DEFINE=	DOCS
 
+WRKSRC=		${WRKDIR}/swisseph-${PORTVERSION}
+ALL_TARGET=	#
+MAKEFILE=	makefile
+
 post-patch:
-	${REINPLACE_CMD} 's|-ldl||' ${WRKSRC}/Makefile
+	@${REINPLACE_CMD} 's|-ldl||' ${WRKSRC}/makefile
 
 do-install:
 	${INSTALL_DATA} ${WRKSRC}/libswe.a ${STAGEDIR}${PREFIX}/lib
@@ -29,6 +32,6 @@ do-install:
 
 do-install-DOCS-on:
 	${MKDIR} ${STAGEDIR}${DOCSDIR}
-	${INSTALL_DATA} ${WRKDIR}/doc/* ${STAGEDIR}${DOCSDIR}/
+	${INSTALL_DATA} ${WRKDIR}/swisseph_doc-${PORTVERSION:S/./-/g}/* ${STAGEDIR}${DOCSDIR}/
 
 .include <bsd.port.mk>
diff --git a/astro/swe/distinfo b/astro/swe/distinfo
index 95fbc59ffe1a..ee9da008750c 100644
--- a/astro/swe/distinfo
+++ b/astro/swe/distinfo
@@ -1,3 +1,5 @@
-TIMESTAMP = 1620405430
-SHA256 (swe_unix_src_2.10.01.tar.gz) = 37a63cd4753444b442956c2e321a72296bcfbf7e1d9f364e049f76842af94fba
-SIZE (swe_unix_src_2.10.01.tar.gz) = 9754394
+TIMESTAMP = 1622782411
+SHA256 (aloistr-swisseph-v2.10.1_GH0.tar.gz) = 229d82564cc3479e8f0577aa35bc22738a3493cbf2a9397b163485d2b764639e
+SIZE (aloistr-swisseph-v2.10.1_GH0.tar.gz) = 504397
+SHA256 (aloistr-swisseph_doc-v2,10,1_GH0.tar.gz) = f5a0d6f0a20b0a5246d770f7540c962cb8044a99d6844e074836fe7227b5b5df
+SIZE (aloistr-swisseph_doc-v2,10,1_GH0.tar.gz) = 5515179
diff --git a/astro/swe/pkg-plist b/astro/swe/pkg-plist
index 2980d7e8c654..395db0188b8d 100644
--- a/astro/swe/pkg-plist
+++ b/astro/swe/pkg-plist
@@ -11,9 +11,10 @@ include/swe/swephexp.h
 include/swe/swephlib.h
 include/swe/swevents.h
 lib/libswe.a
-%%PORTDOCS%%%%DOCSDIR%%/sweph.gif
-%%PORTDOCS%%%%DOCSDIR%%/swephin.gif
-%%PORTDOCS%%%%DOCSDIR%%/swephprg.htm
+%%PORTDOCS%%%%DOCSDIR%%/LICENSE.TXT
+%%PORTDOCS%%%%DOCSDIR%%/README.md
+%%PORTDOCS%%%%DOCSDIR%%/agpl-3.0.txt
+%%PORTDOCS%%%%DOCSDIR%%/swephprg.docx
+%%PORTDOCS%%%%DOCSDIR%%/swisseph.docx
 %%PORTDOCS%%%%DOCSDIR%%/swephprg.pdf
-%%PORTDOCS%%%%DOCSDIR%%/swisseph.htm
 %%PORTDOCS%%%%DOCSDIR%%/swisseph.pdf



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202106041114.154BEVSm060123>