diff options
author | fhajny <fhajny@pkgsrc.org> | 2017-02-17 15:39:38 +0000 |
---|---|---|
committer | fhajny <fhajny@pkgsrc.org> | 2017-02-17 15:39:38 +0000 |
commit | 3de3199a300877817b200d67c2590bac07bb05c6 (patch) | |
tree | 98e26c1faa7266e3d1b6d2ff235cf344277f1453 /www | |
parent | de4ffdd93ab9c23a942cf8718de4adf88e3de7d2 (diff) | |
download | pkgsrc-3de3199a300877817b200d67c2590bac07bb05c6.tar.gz |
Import pup 0.4.0 as www/pup.
pup is a command line tool for processing HTML. It reads from
stdin, prints to stdout, and allows the user to filter parts of
the page using CSS selectors.
Diffstat (limited to 'www')
-rw-r--r-- | www/pup/DESCR | 3 | ||||
-rw-r--r-- | www/pup/Makefile | 32 | ||||
-rw-r--r-- | www/pup/PLIST | 2 | ||||
-rw-r--r-- | www/pup/distinfo | 6 |
4 files changed, 43 insertions, 0 deletions
diff --git a/www/pup/DESCR b/www/pup/DESCR new file mode 100644 index 00000000000..4da41393ba3 --- /dev/null +++ b/www/pup/DESCR @@ -0,0 +1,3 @@ +pup is a command line tool for processing HTML. It reads from +stdin, prints to stdout, and allows the user to filter parts of +the page using CSS selectors. diff --git a/www/pup/Makefile b/www/pup/Makefile new file mode 100644 index 00000000000..197ce4df781 --- /dev/null +++ b/www/pup/Makefile @@ -0,0 +1,32 @@ +# $NetBSD: Makefile,v 1.1 2017/02/17 15:39:38 fhajny Exp $ + +DISTNAME= pup-0.4.0 +CATEGORIES= www +MASTER_SITES= ${MASTER_SITE_GITHUB:=ericchiang/} +GITHUB_TAG= v${PKGVERSION_NOREV} + +MAINTAINER= filip@joyent.com +HOMEPAGE= https://github.com/ericchiang/pup/ +COMMENT= Parsing HTML at the command line +LICENSE= mit + +WRKSRC= ${WRKDIR}/src/github.com/ericchiang/pup + +.include "../../lang/go/version.mk" + +BUILD_DEPENDS+= go-${GO_VERSION}*:../../lang/go + +MAKE_ENV+= GOPATH=${WRKDIR}:${PREFIX}/gopkg +INSTALLATION_DIRS+= bin + +post-extract: + ${MKDIR} ${WRKSRC} + ${MV} ${WRKDIR}/${DISTNAME}/* ${WRKSRC} + +do-build: + cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} go build -o bin/pup + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/bin/pup ${DESTDIR}${PREFIX}/bin + +.include "../../mk/bsd.pkg.mk" diff --git a/www/pup/PLIST b/www/pup/PLIST new file mode 100644 index 00000000000..6f4bf419ed7 --- /dev/null +++ b/www/pup/PLIST @@ -0,0 +1,2 @@ +@comment $NetBSD: PLIST,v 1.1 2017/02/17 15:39:38 fhajny Exp $ +bin/pup diff --git a/www/pup/distinfo b/www/pup/distinfo new file mode 100644 index 00000000000..d527dacd1b0 --- /dev/null +++ b/www/pup/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2017/02/17 15:39:38 fhajny Exp $ + +SHA1 (pup-0.4.0.tar.gz) = 3ed97478292a0ae0499fd6cc499b454663a7d8c1 +RMD160 (pup-0.4.0.tar.gz) = 8b34a54dad0aac9f633d02ac31e81715f9ce5ad6 +SHA512 (pup-0.4.0.tar.gz) = 5228a283cdbc6425888b08154873e059f5808efd68eb86880d15572398e50b0a431922e6ef5e6acf04bc18c95bfd793590d5df2eccb9a041a64dc03731ec1874 +Size (pup-0.4.0.tar.gz) = 2762349 bytes |