50 lines
1.9 KiB
Makefile
50 lines
1.9 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= colly
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 1.2.0-32
|
|
DISTVERSIONSUFFIX= -gd360e4b
|
|
CATEGORIES= www
|
|
|
|
MAINTAINER= yuri@FreeBSD.org
|
|
COMMENT= Elegant scraper and crawler framework for Golang
|
|
|
|
LICENSE= APACHE20
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
|
|
|
|
USES= go
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= gocolly
|
|
GH_TUPLE= \
|
|
andybalholm:cascadia:680b6a5:cascadia/vendor/github.com/andybalholm/cascadia \
|
|
antchfx:htmlquery:v1.0.0:htmlquery/vendor/github.com/antchfx/htmlquery \
|
|
antchfx:xmlquery:v1.0.0:xmlquery/vendor/github.com/antchfx/xmlquery \
|
|
antchfx:xpath:v1.0.0:xpath/vendor/github.com/antchfx/xpath \
|
|
gobwas:glob:v0.2.3:glob/vendor/github.com/gobwas/glob \
|
|
golang:appengine:v1.6.1:appengine/vendor/google.golang.org/appengine \
|
|
golang:net:0ed95ab:net/vendor/golang.org/x/net \
|
|
golang:protobuf:v1.3.1:protobuf/vendor/github.com/golang/protobuf \
|
|
golang:text:v0.3.2:golang_text/vendor/golang.org/x/text \
|
|
jawher:mow.cli:v1.1.0:mow_cli/vendor/github.com/jawher/mow.cli \
|
|
kennygrant:sanitize:v1.2.4:sanitize/vendor/github.com/kennygrant/sanitize \
|
|
PuerkitoBio:goquery:v1.4.1:goquery/vendor/github.com/PuerkitoBio/goquery \
|
|
saintfish:chardet:3af4cd4:chardet/vendor/github.com/saintfish/chardet \
|
|
temoto:robotstxt:97ee4a9:robotstxt/vendor/github.com/temoto/robotstxt
|
|
|
|
GO_PKGNAME= github.com/${GH_ACCOUNT}/${PORTNAME}
|
|
GO_TARGET= ${GO_PKGNAME}/cmd/${PORTNAME} \
|
|
${EXAMPLES_INSTALLED:S/^/${GO_PKGNAME}\/_examples\//}
|
|
|
|
PLIST_FILES= bin/${PORTNAME} \
|
|
${EXAMPLES_INSTALLED:S/^/bin\/${PORTNAME}-/}
|
|
|
|
# many examples of this sraping framework are interesting in themselves, and therefore are installed as executables
|
|
EXAMPLES_INSTALLED= basic coursera_courses cryptocoinmarketcap factba.se hackernews_comments instagram openedx_courses reddit shopify_sitemap google_groups
|
|
|
|
post-install:
|
|
.for e in ${EXAMPLES_INSTALLED}
|
|
@cd ${STAGEDIR}${PREFIX}/bin && \
|
|
${MV} ${e} ${PORTNAME}-${e}
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|