On Sat Oct 01, 2016 at 01:02:37AM +0200, Dmitrij D. Czarkoff wrote:
> Rafael Sadowski <raf...@sizeofvoid.org> wrote:
> 
> >- update to 1.3.1
> >- switch to MIT LICENSE
> >- install LICENSE and man page
> 
> OK czarkoff@ with several tweaks below.
> 
> >index: Makefile
> >===================================================================
> >RCS file: /cvs/ports/graphics/cadubi/Makefile,v
> >retrieving revision 1.14
> >diff -u -p -u -p -r1.14 Makefile
> >--- Makefile   12 May 2016 14:00:13 -0000      1.14
> >+++ Makefile   30 Sep 2016 14:40:22 -0000
> >@@ -1,15 +1,18 @@
> > # $OpenBSD: Makefile,v 1.14 2016/05/12 14:00:13 espie Exp $
> > 
> >-DISTNAME=     cadubi-1.3
> >-REVISION =    1
> >+COMMENT=      ASCII drawing utility
> >+V=            1.3.1
> >+DISTNAME=     cadubi-${V}
> >+GH_ACCOUNT =  statico
> >+GH_PROJECT =  cadubi
> >+GH_TAGNAME =  v${V}
> >+
> 
> You don't really need DISTNAME and V:
> 
>   $ grep -E '^DISTNAME.+GH' /usr/ports/infrastructure/mk/bsd.port.mk
>   DISTNAME ?=     ${GH_PROJECT}-${GH_TAGNAME:C/^v//}
> 
> So all you need is:
> 

Thanks a lot, new diff:

index: Makefile
===================================================================
RCS file: /cvs/ports/graphics/cadubi/Makefile,v
retrieving revision 1.14
diff -u -p -u -p -r1.14 Makefile
--- Makefile    12 May 2016 14:00:13 -0000      1.14
+++ Makefile    1 Oct 2016 07:36:27 -0000
@@ -1,15 +1,17 @@
 # $OpenBSD: Makefile,v 1.14 2016/05/12 14:00:13 espie Exp $
 
-DISTNAME=      cadubi-1.3
-REVISION =     1
+COMMENT=       ASCII drawing utility
+
+GH_ACCOUNT =   statico
+GH_PROJECT =   cadubi
+GH_TAGNAME =   v1.3.1
+
 CATEGORIES=    graphics editors
 
-# perl artistic
-PERMIT_PACKAGE_CDROM=  Yes
+HOMEPAGE=      https://github.com/statico/cadubi
 
-COMMENT=       ASCII drawing utility
-HOMEPAGE=      http://langworth.com/cadubi.html
-MASTER_SITES=  http://langworth.com/downloads/
+# MIT
+PERMIT_PACKAGE_CDROM=  Yes
 
 NO_BUILD=      Yes
 NO_TEST=       Yes
@@ -18,6 +20,8 @@ PKG_ARCH=     *
 do-install:
        ${INSTALL_SCRIPT} ${WRKSRC}/cadubi ${PREFIX}/bin
        @mkdir ${PREFIX}/share/doc/cadubi
-       ${INSTALL_DATA} ${WRKSRC}/help.txt ${PREFIX}/share/doc/cadubi
+       ${INSTALL_DATA} ${WRKSRC}/{help.txt,LICENSE} \
+               ${PREFIX}/share/doc/cadubi
+       ${INSTALL_MAN} ${WRKSRC}/cadubi.1 ${PREFIX}/man/man1
 
 .include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /cvs/ports/graphics/cadubi/distinfo,v
retrieving revision 1.5
diff -u -p -u -p -r1.5 distinfo
--- distinfo    18 Jan 2015 03:14:07 -0000      1.5
+++ distinfo    1 Oct 2016 07:36:27 -0000
@@ -1,2 +1,2 @@
-SHA256 (cadubi-1.3.tar.gz) = yotuowXg7MsRrdf8Flvu7n7zP58BBuhO+hs2Twgt8Ks=
-SIZE (cadubi-1.3.tar.gz) = 12559
+SHA256 (cadubi-1.3.1.tar.gz) = Fiw7p0i70qsWmcldStDiV//hg5WebOCEq5HvvT63P4o=
+SIZE (cadubi-1.3.1.tar.gz) = 65672
Index: patches/patch-cadubi
===================================================================
RCS file: /cvs/ports/graphics/cadubi/patches/patch-cadubi,v
retrieving revision 1.3
diff -u -p -u -p -r1.3 patch-cadubi
--- patches/patch-cadubi        27 Feb 2004 05:31:46 -0000      1.3
+++ patches/patch-cadubi        1 Oct 2016 07:36:27 -0000
@@ -1,7 +1,7 @@
-$OpenBSD: patch-cadubi,v 1.3 2004/02/27 05:31:46 jcs Exp $
---- cadubi.orig        Thu Feb 26 23:27:56 2004
-+++ cadubi     Thu Feb 26 23:28:27 2004
-@@ -18,7 +18,7 @@
+$OpenBSD$
+--- cadubi.orig        Fri Sep 30 08:27:04 2016
++++ cadubi     Fri Sep 30 08:27:28 2016
+@@ -12,7 +12,7 @@ $VERSION = '1.3.1';
  # (sorry guys, i wrote this years before i had the remotest clue as to
  #  what the hell i was doing)
  use FindBin qw($Bin);
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/graphics/cadubi/pkg/PLIST,v
retrieving revision 1.3
diff -u -p -u -p -r1.3 PLIST
--- pkg/PLIST   15 Sep 2004 00:50:08 -0000      1.3
+++ pkg/PLIST   1 Oct 2016 07:36:27 -0000
@@ -1,4 +1,6 @@
 @comment $OpenBSD: PLIST,v 1.3 2004/09/15 00:50:08 espie Exp $
 bin/cadubi
+@man man/man1/cadubi.1
 share/doc/cadubi/
+share/doc/cadubi/LICENSE
 share/doc/cadubi/help.txt

Reply via email to