[update] games/an 0.95 -> 1.2

2020-10-10 Thread Charlene Wendling
Hi,

Here is an update for an to 1.2. This is a rewrite with several
bugfixes, icu support and less bloat (the library has been
removed).

I don't have much to say port-wise, changes are trivial - i took the
opportunity to reorder the Makefile per Makefile.template since it
doesn't affect much the diff readability. Also, i've zapped some of
our hooks since upstream's Makefile has now friendlier targets.

This has been tested on amd64, macppc (with clang and gcc there)
successfully.

Comments/feedback are welcome,

Charlène.


Index: Makefile
===
RCS file: /cvs/ports/games/an/Makefile,v
retrieving revision 1.20
diff -u -p -u -p -r1.20 Makefile
--- Makefile12 Jul 2019 20:46:14 -  1.20
+++ Makefile7 Oct 2020 13:18:39 -
@@ -2,31 +2,32 @@
 
 COMMENT=   fast anagram generator
 
-V= 0.95
+V= 1.2
 DISTNAME=  an_${V}.orig
 PKGNAME=   an-${V}
 CATEGORIES=games
-MASTER_SITES=  ${MASTER_SITE_DEBIAN:=main/a/an/}
 
-# GPL - LGPL
+# GPLv2+
 PERMIT_PACKAGE=Yes
 
-WANTLIB=   c
+HOMEPAGE=  https://salsa.debian.org/pm/an
 
-WRKDIST=   ${WRKDIR}/an-${V}
+WANTLIB=   c icudata icui18n icuuc
+
+MASTER_SITES=  ${MASTER_SITE_DEBIAN:=main/a/an/}
+
+LIB_DEPENDS=   textproc/icu4c,-main
+
+FAKE_FLAGS=DESTDIR=${WRKINST}${PREFIX}
 
 NO_TEST=   Yes
 
+USE_GMAKE= Yes
+
+WRKDIST=   ${WRKDIR}/an-${V}
+
 pre-configure:
@perl -pi -e 's,/usr/dict/words,/usr/share/dict/words,g' \
${WRKSRC}/an.6
-
-do-build:
-   cd ${WRKBUILD} && \
-   ${CC} ${CFLAGS} an.c gan_qsort.c -o an ${LDFLAGS}
-
-do-install:
-   ${INSTALL_PROGRAM} ${WRKBUILD}/an ${PREFIX}/bin
-   ${INSTALL_MAN} ${WRKBUILD}/an.6 ${PREFIX}/man/man6
 
 .include 
Index: distinfo
===
RCS file: /cvs/ports/games/an/distinfo,v
retrieving revision 1.5
diff -u -p -u -p -r1.5 distinfo
--- distinfo18 Jan 2015 03:13:55 -  1.5
+++ distinfo7 Oct 2020 13:18:39 -
@@ -1,2 +1,2 @@
-SHA256 (an_0.95.orig.tar.gz) = ESZt0eNHWU2Y+N/R4UHYtPvgZ3UlQtDpPEIsR4n5KVw=
-SIZE (an_0.95.orig.tar.gz) = 47829
+SHA256 (an_1.2.orig.tar.gz) = uBqNt0zf3znmyn3XUs9HIkNdL7f7OhuXHU9PrlFC2ys=
+SIZE (an_1.2.orig.tar.gz) = 14231
Index: patches/patch-Makefile
===
RCS file: patches/patch-Makefile
diff -N patches/patch-Makefile
--- /dev/null   1 Jan 1970 00:00:00 -
+++ patches/patch-Makefile  7 Oct 2020 13:18:39 -
@@ -0,0 +1,19 @@
+$OpenBSD$
+
+Index: Makefile
+--- Makefile.orig
 Makefile
+@@ -16,10 +16,10 @@
+ #51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ 
+ 
+-INSTALLDIR := $(DESTDIR)/usr/games
+-MANDIR := $(DESTDIR)/usr/share/man/man6
++INSTALLDIR := $(DESTDIR)/bin
++MANDIR := $(DESTDIR)/man/man6
+ 
+-CC:=gcc
++CC?=gcc
+ INSTALL:=install
+ 
+ CFLAGS += $(shell icu-config --cflags)
Index: pkg/PLIST
===
RCS file: /cvs/ports/games/an/pkg/PLIST,v
retrieving revision 1.3
diff -u -p -u -p -r1.3 PLIST
--- pkg/PLIST   15 Sep 2004 00:46:08 -  1.3
+++ pkg/PLIST   7 Oct 2020 13:18:39 -
@@ -1,3 +1,3 @@
 @comment $OpenBSD: PLIST,v 1.3 2004/09/15 00:46:08 espie Exp $
-bin/an
+@bin bin/an
 @man man/man6/an.6



Re: [update] games/an 0.95 -> 1.2

2020-12-24 Thread Charlene Wendling
Ping :) 

On Sat, 10 Oct 2020 14:14:20 +0200
Charlene Wendling wrote:

> Hi,
> 
> Here is an update for an to 1.2. This is a rewrite with several
> bugfixes, icu support and less bloat (the library has been
> removed).
> 
> I don't have much to say port-wise, changes are trivial - i took the
> opportunity to reorder the Makefile per Makefile.template since it
> doesn't affect much the diff readability. Also, i've zapped some of
> our hooks since upstream's Makefile has now friendlier targets.
> 
> This has been tested on amd64, macppc (with clang and gcc there)
> successfully.
> 
> Comments/feedback are welcome,
> 
> Charlène.
> 

Index: Makefile
===
RCS file: /cvs/ports/games/an/Makefile,v
retrieving revision 1.20
diff -u -p -u -p -r1.20 Makefile
--- Makefile12 Jul 2019 20:46:14 -  1.20
+++ Makefile25 Dec 2020 02:20:30 -
@@ -2,31 +2,32 @@
 
 COMMENT=   fast anagram generator
 
-V= 0.95
+V= 1.2
 DISTNAME=  an_${V}.orig
 PKGNAME=   an-${V}
 CATEGORIES=games
-MASTER_SITES=  ${MASTER_SITE_DEBIAN:=main/a/an/}
 
-# GPL - LGPL
+# GPLv2+
 PERMIT_PACKAGE=Yes
 
-WANTLIB=   c
+HOMEPAGE=  https://salsa.debian.org/pm/an
 
-WRKDIST=   ${WRKDIR}/an-${V}
+WANTLIB=   c icudata icui18n icuuc
+
+MASTER_SITES=  ${MASTER_SITE_DEBIAN:=main/a/an/}
+
+LIB_DEPENDS=   textproc/icu4c,-main
+
+FAKE_FLAGS=DESTDIR=${WRKINST}${PREFIX}
 
 NO_TEST=   Yes
 
+USE_GMAKE= Yes
+
+WRKDIST=   ${WRKDIR}/an-${V}
+
 pre-configure:
@perl -pi -e 's,/usr/dict/words,/usr/share/dict/words,g' \
${WRKSRC}/an.6
-
-do-build:
-   cd ${WRKBUILD} && \
-   ${CC} ${CFLAGS} an.c gan_qsort.c -o an ${LDFLAGS}
-
-do-install:
-   ${INSTALL_PROGRAM} ${WRKBUILD}/an ${PREFIX}/bin
-   ${INSTALL_MAN} ${WRKBUILD}/an.6 ${PREFIX}/man/man6
 
 .include 
Index: distinfo
===
RCS file: /cvs/ports/games/an/distinfo,v
retrieving revision 1.5
diff -u -p -u -p -r1.5 distinfo
--- distinfo18 Jan 2015 03:13:55 -  1.5
+++ distinfo25 Dec 2020 02:20:30 -
@@ -1,2 +1,2 @@
-SHA256 (an_0.95.orig.tar.gz) = ESZt0eNHWU2Y+N/R4UHYtPvgZ3UlQtDpPEIsR4n5KVw=
-SIZE (an_0.95.orig.tar.gz) = 47829
+SHA256 (an_1.2.orig.tar.gz) = uBqNt0zf3znmyn3XUs9HIkNdL7f7OhuXHU9PrlFC2ys=
+SIZE (an_1.2.orig.tar.gz) = 14231
Index: patches/patch-Makefile
===
RCS file: patches/patch-Makefile
diff -N patches/patch-Makefile
--- /dev/null   1 Jan 1970 00:00:00 -
+++ patches/patch-Makefile  25 Dec 2020 02:20:30 -
@@ -0,0 +1,19 @@
+$OpenBSD$
+
+Index: Makefile
+--- Makefile.orig
 Makefile
+@@ -16,10 +16,10 @@
+ #51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ 
+ 
+-INSTALLDIR := $(DESTDIR)/usr/games
+-MANDIR := $(DESTDIR)/usr/share/man/man6
++INSTALLDIR := $(DESTDIR)/bin
++MANDIR := $(DESTDIR)/man/man6
+ 
+-CC:=gcc
++CC?=gcc
+ INSTALL:=install
+ 
+ CFLAGS += $(shell icu-config --cflags)
Index: pkg/PLIST
===
RCS file: /cvs/ports/games/an/pkg/PLIST,v
retrieving revision 1.3
diff -u -p -u -p -r1.3 PLIST
--- pkg/PLIST   15 Sep 2004 00:46:08 -  1.3
+++ pkg/PLIST   25 Dec 2020 02:20:30 -
@@ -1,3 +1,3 @@
 @comment $OpenBSD: PLIST,v 1.3 2004/09/15 00:46:08 espie Exp $
-bin/an
+@bin bin/an
 @man man/man6/an.6



Re: [update] games/an 0.95 -> 1.2

2021-02-05 Thread Charlene Wendling
Ping; with a new diff though, to avoid patches.

On Fri, 25 Dec 2020 03:21:08 +0100
Charlene Wendling  wrote:

> Ping :) 
> 
> On Sat, 10 Oct 2020 14:14:20 +0200
> Charlene Wendling wrote:
> 
> > Hi,
> > 
> > Here is an update for an to 1.2. This is a rewrite with several
> > bugfixes, icu support and less bloat (the library has been
> > removed).
> > 
> > I don't have much to say port-wise, changes are trivial - i took the
> > opportunity to reorder the Makefile per Makefile.template since it
> > doesn't affect much the diff readability. Also, i've zapped some of
> > our hooks since upstream's Makefile has now friendlier targets.
> > 
> > This has been tested on amd64, macppc (with clang and gcc there)
> > successfully.
> > 
> > Comments/feedback are welcome,
> > 
> > Charlène.
> > 

Index: Makefile
===
RCS file: /cvs/ports/games/an/Makefile,v
retrieving revision 1.20
diff -u -p -u -p -r1.20 Makefile
--- Makefile12 Jul 2019 20:46:14 -  1.20
+++ Makefile5 Feb 2021 19:21:06 -
@@ -2,31 +2,36 @@
 
 COMMENT=   fast anagram generator
 
-V= 0.95
+V= 1.2
 DISTNAME=  an_${V}.orig
 PKGNAME=   an-${V}
 CATEGORIES=games
-MASTER_SITES=  ${MASTER_SITE_DEBIAN:=main/a/an/}
 
-# GPL - LGPL
+# GPLv2+
 PERMIT_PACKAGE=Yes
 
-WANTLIB=   c
+HOMEPAGE=  https://salsa.debian.org/pm/an
 
-WRKDIST=   ${WRKDIR}/an-${V}
+WANTLIB=   c icudata icui18n icuuc
+
+MASTER_SITES=  ${MASTER_SITE_DEBIAN:=main/a/an/}
+
+LIB_DEPENDS=   textproc/icu4c,-main
+
+MAKE_FLAGS+=   CC="${CC}" CFLAGS="${CFLAGS}"
+# Overriding DESTDIR is not enough, their Makefile subdirectories
+# don't respect our files hierarchy
+FAKE_FLAGS+=   MANDIR="${FROOT}/man/man6" INSTALLDIR="${FROOT}/bin"
 
 NO_TEST=   Yes
 
+USE_GMAKE= Yes
+
+WRKDIST=   ${WRKDIR}/an-${V}
+FROOT= ${WRKINST}${PREFIX}
+
 pre-configure:
@perl -pi -e 's,/usr/dict/words,/usr/share/dict/words,g' \
${WRKSRC}/an.6
-
-do-build:
-   cd ${WRKBUILD} && \
-   ${CC} ${CFLAGS} an.c gan_qsort.c -o an ${LDFLAGS}
-
-do-install:
-   ${INSTALL_PROGRAM} ${WRKBUILD}/an ${PREFIX}/bin
-   ${INSTALL_MAN} ${WRKBUILD}/an.6 ${PREFIX}/man/man6
 
 .include 
Index: distinfo
===
RCS file: /cvs/ports/games/an/distinfo,v
retrieving revision 1.5
diff -u -p -u -p -r1.5 distinfo
--- distinfo18 Jan 2015 03:13:55 -  1.5
+++ distinfo5 Feb 2021 19:21:06 -
@@ -1,2 +1,2 @@
-SHA256 (an_0.95.orig.tar.gz) = ESZt0eNHWU2Y+N/R4UHYtPvgZ3UlQtDpPEIsR4n5KVw=
-SIZE (an_0.95.orig.tar.gz) = 47829
+SHA256 (an_1.2.orig.tar.gz) = uBqNt0zf3znmyn3XUs9HIkNdL7f7OhuXHU9PrlFC2ys=
+SIZE (an_1.2.orig.tar.gz) = 14231
Index: pkg/PLIST
===
RCS file: /cvs/ports/games/an/pkg/PLIST,v
retrieving revision 1.3
diff -u -p -u -p -r1.3 PLIST
--- pkg/PLIST   15 Sep 2004 00:46:08 -  1.3
+++ pkg/PLIST   5 Feb 2021 19:21:06 -
@@ -1,3 +1,3 @@
 @comment $OpenBSD: PLIST,v 1.3 2004/09/15 00:46:08 espie Exp $
-bin/an
+@bin bin/an
 @man man/man6/an.6