Wednesday, July 07, 2021

Re: [UPDATE] astro/sunclock to 3.57

Thanks for checking this.

>Perhaps removing the old HOMEPAGE might be better? It doesn't have
>to be set.

Yes, I removed HOMEPAGE.

>Please remove the MASTER_SITES0 line, and remove the :0 from the end of
>the SUPDISTFILES entries.

Sure.

On Tue, Jul 06, 2021 at 11:15:09PM +0200, Jeremie Courreges-Anglas wrote:
> On Wed, Jul 07 2021, Kinichiro Inoguchi <kinichiro.inoguchi@gmail.com> wrote:
> > This is update for sunclock 3.57.
> >
> > - remove REVISION for the first revision of 3.57.
> > - change MASTER_SITES to github.
>
> This looks better than what I had, at least because my stubborn diff
> was using GH_PROJECT/GH_COMMIT/etc instead of using a standalone mirror.
> https://pbot.rmdir.de/_sNK4DwEWIutWVkColzqqg for reference, though
> I don't suggest using it.
>
> > +MASTER_SITES= https://raw.githubusercontent.com/nongiach/Sunclock/master/
> > +MASTER_SITES0= https://raw.githubusercontent.com/nongiach/Sunclock/master/
> ^^^^^^
> Since those URLs embed a reference to the "master" branch they aren't
> stable. Using the commit hash instead of "master" works and should be
> reasonably stable.

Changed to use commit hash instead of "master".

>
> Also, as noted by sthen@ no need for two MASTER_SITES lines.
>
> > - remove Xext, Xau and Xdmcp from WANTLIB-main
>
> > - remove Sunclock.se from PLIST-main since 3.57 drops it
>
> Please run ''make plist'', the file has been renamed to Sunclock.sv.

I looked over this. I added Sunclock.sv, now. Thanks.

>
> > HOMEPAGE appears to be unreachable, but I left it as is
> > since I couldn't find better alternative.
>
> I agree with sthen: no need to keep the old HOMEPAGE.
>
> Overall, your changes look good but please address the issue mentioned
> above.

I attached updated diff below.
Could you check again, please ?

>
> One thing that was not clear to me was the -maps distfiles handling: if
> they bear no license, should we mirror them? (And If it's ok to mirror
> them - I don't say it is - then surely we could also redistribute those
> original files as part of the -maps subpackage?)

I have no idea about that, though I took a look at other distributions.
Debian has package named sunclock-maps but it does not contain any of these
extra map files. it just has three .vmf files those are included in our
sunclock-main package.
https://packages.debian.org/buster/all/sunclock-maps/filelist
FreeBSD ports sunclock does not provide sunclock-maps package.
https://svnweb.freebsd.org/ports/head/astro/sunclock/

I'm not sure but I think no distro provides sunclock 3.57 with extra map files.
If user wants to use those extra map files, they can download them from
github and deflate them under /usr/local/share/sunclock/earthmaps/.

>
> --
> jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF DDCC 0DFA 74AE 1524 E7EE

Index: astro/sunclock//Makefile
===================================================================
RCS file: /cvs/ports/astro/sunclock/Makefile,v
retrieving revision 1.30
diff -u -p -u -p -r1.30 Makefile
--- astro/sunclock//Makefile 4 Jul 2021 15:14:07 -0000 1.30
+++ astro/sunclock//Makefile 7 Jul 2021 10:03:52 -0000
@@ -3,22 +3,17 @@
COMMENT-main= display the phase of the Sun on a map of the Earth
COMMENT-maps= additional maps of the Earth for sunclock

-VERSION= 3.56
+VERSION= 3.57
DISTNAME= sunclock-${VERSION}
PKGNAME-main= ${DISTNAME}
PKGNAME-maps= sunclock-maps-${VERSION}
-REVISION-main= 5
-REVISION-maps= 0
CATEGORIES= astro

-HOMEPAGE= http://www.arvernes.com/wiki/index.php/Sunclock
-
-MASTER_SITES= ftp://ftp.ac-grenoble.fr/ge/geosciences/sunclock/
-MASTER_SITES0=
ftp://ftp.ac-grenoble.fr/ge/geosciences/sunclock/data_packages/
-SUPDISTFILES=
big_images_270804.tar.bz2:0 \
- medium_images_270804.tar.bz2:0 \
- e43_color1_sh_16k.jpg:0 \
- huge.jpg:0
+MASTER_SITES= https://raw.githubusercontent.com/nongiach/Sunclock/f4106eb0a81f7594726d6b2859efd8fc64cc1225/
+SUPDISTFILES= big_images_270804.tar.bz2 \
+ medium_images_270804.tar.bz2 \
+ e43_color1_sh_16k.jpg \
+ huge.jpg
EXTRACT_SUFX= .tar.bz2

CONFIGURE_STYLE= imake
@@ -37,7 +32,7 @@ PKG_ARCH-maps= *
PERMIT_PACKAGE= Yes
PERMIT_PACKAGE-maps= no license for additional maps

-WANTLIB-main= X11 Xext Xpm Xau Xdmcp c m z jpeg png
+WANTLIB-main= X11 Xpm c m z jpeg png
DIST_SUBDIR= sunclock


Index: astro/sunclock//distinfo
===================================================================
RCS file: /cvs/ports/astro/sunclock/distinfo,v
retrieving revision 1.5
diff -u -p -u -p -r1.5 distinfo
--- astro/sunclock//distinfo 4 Apr 2013 16:06:27 -0000 1.5
+++ astro/sunclock//distinfo 7 Jul 2021 10:03:52 -0000
@@ -2,9 +2,9 @@ SHA256 (sunclock/big_images_270804.tar.b
SHA256 (sunclock/e43_color1_sh_16k.jpg) = BC2+a267GIMX35KRysfYHKFS4MuGfvc8O3iiJhd8sLQ=
SHA256 (sunclock/huge.jpg) = uqQhPRRUiGfWexYzmC12WykMwPLWGP0nitEqdnA5Yls=
SHA256 (sunclock/medium_images_270804.tar.bz2) = 0RFqdPNlSwKsnRzyc+5rdE+wlgYbIbDM3TTM+3kh68U=
-SHA256 (sunclock/sunclock-3.56.tar.bz2) = J4caPw2Qjoh9y/EozDciuaYtqodI0h4kH3iCspxioi8=
+SHA256 (sunclock/sunclock-3.57.tar.bz2) = 4328200ceaa31160e901fb855d664033566d72b26a90605acc5d0ed9365402be
SIZE (sunclock/big_images_270804.tar.bz2) = 11871465
SIZE (sunclock/e43_color1_sh_16k.jpg) = 20507641
SIZE (sunclock/huge.jpg) = 11783876
SIZE (sunclock/medium_images_270804.tar.bz2) = 3917192
-SIZE (sunclock/sunclock-3.56.tar.bz2) = 1313390
+SIZE (sunclock/sunclock-3.57.tar.bz2) = 1325138
Index: astro/sunclock//patches/patch-Imakefile
===================================================================
RCS file: /cvs/ports/astro/sunclock/patches/patch-Imakefile,v
retrieving revision 1.6
diff -u -p -u -p -r1.6 patch-Imakefile
--- astro/sunclock//patches/patch-Imakefile 4 Jun 2013 15:41:17 -0000 1.6
+++ astro/sunclock//patches/patch-Imakefile 7 Jul 2021 10:03:52 -0000
@@ -1,6 +1,6 @@
$OpenBSD: patch-Imakefile,v 1.6 2013/06/04 15:41:17 naddy Exp $
---- Imakefile.orig Sun Jun 18 15:58:50 2006
-+++ Imakefile Tue Jun 4 10:57:37 2013
+--- Imakefile.orig Tue Jul 6 23:07:06 2021
++++ Imakefile Tue Jul 6 23:05:29 2021
@@ -1,5 +1,5 @@
XCOMM Should install to /usr or /usr/local ??
-DESTDIR=/usr
@@ -15,9 +15,9 @@ $OpenBSD: patch-Imakefile,v 1.6 2013/06/
-SHAREDIR=/share/sunclock
+SHAREDIR=${PREFIX}/share/sunclock

- XCOMM Name of DOCDIR's subdirectories of DESTDIR:
- DOCDIR=/X11R6/lib/X11/doc
-@@ -42,31 +42,24 @@ CCOPTIONS = -Ae $(XPMINC) $(JINC) -DZLIB -DSHAREDIR=\"
+ XCOMM Name of library subdirectory of DESTDIR:
+ EMXBINDIR=/share/sunclock/bin
+@@ -48,13 +48,13 @@ CCOPTIONS = -Ae $(XPMINC) $(JINC) -DZLIB -DSHAREDIR=\"
#CCOPTIONS=-O -DZLIB -DNEW_CTIME -DSHAREDIR=\"$(DESTDIR)$(SHAREDIR)\"

# Solaris, Linux
@@ -32,17 +32,12 @@ $OpenBSD: patch-Imakefile,v 1.6 2013/06/
+ZLIBDIR=
+JINC=-I${LOCALBASE}/include

--CCOPTIONS=-O -DZLIB -DSHAREDIR=\"$(DESTDIR)$(SHAREDIR)\"
-+CCOPTIONS+= $(JINC) $(PINC) $(XPMINC) -DZLIB -DSHAREDIR=\"$(DESTDIR)$(SHAREDIR)\"
+-CCOPTIONS=-O -DZLIB -DSHAREDIR=\"$(DESTDIR)$(SHAREDIR)\" -DEMXBINDIR=\"$(DESTDIR)$(EMXBINDIR)\"
++CCOPTIONS=$(JINC) $(PINC) $(XPMINC) -DZLIB -DSHAREDIR=\"$(DESTDIR)$(SHAREDIR)\" -DEMXBINDIR=\"$(DESTDIR)$(EMXBINDIR)\"

No comments:

Post a Comment