blob: 76691b9618e9bbec055b1679d2d3a3ca42d5c379 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# $FreeBSD$
PORTNAME= geckodriver
PORTVERSION= 0.17.0
DISTVERSIONPREFIX= v
CATEGORIES= www
MASTER_SITES= http://freebsd-ports.mytaste.org/www/geckodriver/:crates
DISTFILES= registry-${PORTVERSION}.tar.gz:crates
MAINTAINER= daniel@blodan.se
COMMENT= Proxy for using WebDriver clients with Gecko-based browsers
LICENSE= MPL
BUILD_DEPENDS= cargo:devel/cargo
USE_GITHUB= yes
GH_ACCOUNT= mozilla
MAKE_ENV= CARGO_HOME=${BUILD_WRKSRC}
PLIST_FILES= bin/geckodriver
post-extract:
cd ${WRKDIR} && ${COPYTREE_SHARE} registry ${WRKSRC}
${MKDIR} ${BUILD_WRKSRC}/.cargo
${ECHO} "[source.crates-io]" > ${BUILD_WRKSRC}/.cargo/config
${ECHO} "local-registry = 'registry'" >> ${BUILD_WRKSRC}/.cargo/config
do-build:
cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} cargo build --release --verbose
do-install:
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/target/release/geckodriver ${STAGEDIR}${PREFIX}/bin/geckodriver
.include <bsd.port.mk>
|