pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/pup pup: change to a Go module build, bump revision



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3eb3082279b5
branches:  trunk
changeset: 452788:3eb3082279b5
user:      bsiegert <bsiegert%pkgsrc.org@localhost>
date:      Sat May 15 17:08:06 2021 +0000

description:
pup: change to a Go module build, bump revision

diffstat:

 www/pup/Makefile          |  15 +++++++++------
 www/pup/files/go.mod      |  12 ++++++++++++
 www/pup/files/modules.txt |  34 ++++++++++++++++++++++++++++++++++
 3 files changed, 55 insertions(+), 6 deletions(-)

diffs (89 lines):

diff -r 6468b95e3455 -r 3eb3082279b5 www/pup/Makefile
--- a/www/pup/Makefile  Sat May 15 16:43:03 2021 +0000
+++ b/www/pup/Makefile  Sat May 15 17:08:06 2021 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.35 2021/05/08 15:02:31 bsiegert Exp $
+# $NetBSD: Makefile,v 1.36 2021/05/15 17:08:06 bsiegert Exp $
 
 DISTNAME=              pup-0.4.0
-PKGREVISION=           30
+PKGREVISION=           31
 CATEGORIES=            www
 MASTER_SITES=          ${MASTER_SITE_GITHUB:=ericchiang/}
 GITHUB_TAG=            v${PKGVERSION_NOREV}
@@ -11,14 +11,17 @@
 COMMENT=               Parsing HTML at the command line
 LICENSE=               mit
 
-GO_DIST_BASE=          ${DISTNAME}
-GO_SRCPATH=            github.com/ericchiang/pup
+GO_BUILD_PATTERN=      .
 
 INSTALLATION_DIRS+=    bin share/doc/pup
 
+pre-patch:
+       ${CP} ${FILESDIR}/go.mod ${WRKSRC}
+       ${CP} ${FILESDIR}/modules.txt ${WRKSRC}/vendor
+
 do-install:
-       ${INSTALL_PROGRAM} ${WRKDIR}/bin/pup ${DESTDIR}${PREFIX}/bin
+       ${INSTALL_PROGRAM} ${WRKDIR}/.gopath/bin/pup ${DESTDIR}${PREFIX}/bin
        ${INSTALL_DATA} ${WRKSRC}/README.md ${DESTDIR}${PREFIX}/share/doc/pup
 
-.include "../../lang/go/go-package.mk"
+.include "../../lang/go/go-module.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 6468b95e3455 -r 3eb3082279b5 www/pup/files/go.mod
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/pup/files/go.mod      Sat May 15 17:08:06 2021 +0000
@@ -0,0 +1,12 @@
+module github.com/ericchiang/pup
+
+go 1.15
+
+require (
+       github.com/fatih/color v1.0.0
+       github.com/mattn/go-colorable v0.0.5
+       github.com/mattn/go-isatty v0.0.0-20151211000621-56b76bdf51f7
+       golang.org/x/net v0.0.0-20160720084139-4d38db76854b
+       golang.org/x/sys v0.0.0-20160717071931-a646d33e2ee3
+       golang.org/x/text v0.0.0-20160719205907-0a5a09ee4409
+)
diff -r 6468b95e3455 -r 3eb3082279b5 www/pup/files/modules.txt
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/pup/files/modules.txt Sat May 15 17:08:06 2021 +0000
@@ -0,0 +1,34 @@
+# github.com/fatih/color v1.0.0
+## explicit
+github.com/fatih/color
+# github.com/mattn/go-colorable v0.0.5
+## explicit
+github.com/mattn/go-colorable
+# github.com/mattn/go-isatty v0.0.0-20151211000621-56b76bdf51f7
+## explicit
+github.com/mattn/go-isatty
+# golang.org/x/net v0.0.0-20160720084139-4d38db76854b
+## explicit
+golang.org/x/net/html
+golang.org/x/net/html/atom
+golang.org/x/net/html/charset
+# golang.org/x/sys v0.0.0-20160717071931-a646d33e2ee3
+## explicit
+golang.org/x/sys/unix
+# golang.org/x/text v0.0.0-20160719205907-0a5a09ee4409
+## explicit
+golang.org/x/text/encoding
+golang.org/x/text/encoding/charmap
+golang.org/x/text/encoding/htmlindex
+golang.org/x/text/encoding/internal
+golang.org/x/text/encoding/internal/identifier
+golang.org/x/text/encoding/japanese
+golang.org/x/text/encoding/korean
+golang.org/x/text/encoding/simplifiedchinese
+golang.org/x/text/encoding/traditionalchinese
+golang.org/x/text/encoding/unicode
+golang.org/x/text/internal/tag
+golang.org/x/text/internal/utf8internal
+golang.org/x/text/language
+golang.org/x/text/runes
+golang.org/x/text/transform



Home | Main Index | Thread Index | Old Index