<commit_before># $FreeBSD$

PORTNAME=	marionette
DISTVERSION=	g20180611
CATEGORIES=	security net

MAINTAINER=	<EMAIL>
COMMENT=	Pluggable Transport Proxy for Tor, le Marionette

LICENSE=	APACHE20
LICENSE_FILE=	${WRKSRC}/LICENSE

CPE_VENDOR=	redjack

BUILD_DEPENDS=	gmp>=1.6.2:math/gmp \
		openfst>=1.6.3:math/openfst \
		re2>=20180401:devel/re2 \
		regex2dfa:textproc/regex2dfa \
		goptlib>=0.5:security/goptlib \
		${PYTHON_PKGNAMEPREFIX}libfte>=0.1.0:net/py-libfte@${FLAVOR}

PLIST_FILES=	bin/${PORTNAME}

USES=		go python:env
USE_GITHUB=	yes
USE_PYTHON=	flavors

GH_ACCOUNT=	redjack
GH_TAGNAME=	61b8d34
GH_TUPLE=	armon:go-socks5:e753329:socks5/github.com/armon/go-socks5 \
		davecgh:go-spew:346938d:spew/github.com/davecgh/go-spew \
		golang:net:afe8f62:net/golang.org/x/net \
		google:go-cmp:3af367b:cmp/github.com/google/go-cmp \
		uber-go:atomic:1ea20fb:atomic/go.uber.org/atomic \
		uber-go:multierr:3c49374:multierr/go.uber.org/multierr \
		uber-go:zap:eeedf31:zap/go.uber.org/zap

do-build:
	${MKDIR} ${WRKSRC}/github.com/${GH_ACCOUNT}
	${RLN} ${WRKSRC} ${WRKSRC}/github.com/${GH_ACCOUNT}/${PORTNAME}
	${RLN} ${WRKSRC} ${WRKSRC}/src
	cd ${WRKSRC} && \
		${SETENV} ${MAKE_ENV} ${GO_ENV} ${GO_CMD} \
			build -ldflags "-X main.Version=${GH_TAGNAME}" -o bin/${PORTNAME}

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin

.include <bsd.port.mk><commit_msg>vai assim mesmo, porque entraram ali os gols da selecao e ngm mais ta prestando atencao no trabalho e muito menos nas msg de log aqui hein. // so sei que falta um patch! hehe tou com sono, preciso dormir (se vc estiver lendo isso, favor me faca uma doacao; colabore com quaisquer instituicoes de caridade na sua cidade! obrigado, essa eh a doacao que eu te peco)<commit_after># $FreeBSD$

PORTNAME=	marionette
DISTVERSION=	g20180611
CATEGORIES=	security net

MAINTAINER=	<EMAIL>
COMMENT=	Pluggable Transport Proxy for Tor, le Marionette

LICENSE=	APACHE20
LICENSE_FILE=	${WRKSRC}/LICENSE

CPE_VENDOR=	redjack

BUILD_DEPENDS=	gmp>=1.6.2:math/gmp \
		openfst>=1.6.3:math/openfst \
		re2>=20180401:devel/re2 \
		regex2dfa:textproc/regex2dfa \
		goptlib>=0.5:security/goptlib \
		${PYTHON_PKGNAMEPREFIX}libfte>=0.1.0:net/py-libfte@${FLAVOR}

PLIST_FILES=	bin/${PORTNAME}

USES=		go python:env
USE_GITHUB=	yes
USE_PYTHON=	flavors

GH_ACCOUNT=	red<PASSWORD>
GH_TAGNAME=	61b8d34
GH_TUPLE=	armon:go-socks5:e753329:socks5/github.com/armon/go-socks5 \
		davecgh:go-spew:346938d:spew/github.com/davecgh/go-spew \
		golang:net:afe8f62:net/golang.org/x/net \
		google:go-cmp:3af367b:cmp/github.com/google/go-cmp \
		uber-go:atomic:1ea20fb:atomic/go.uber.org/atomic \
		uber-go:multierr:3c49374:multierr/go.uber.org/multierr \
		uber-go:zap:eeedf31:zap/go.uber.org/zap

CGO_CFLAGS+=	-I${WRKSRC}/third_party/openfst/src/include
CGO_LDFLAGS+=	-L${WRKSRC}/third_party/openfst/src/lib

post-patch:
	${MKDIR} ${WRKSRC}/github.com/${GH_ACCOUNT}
	${RLN} ${WRKSRC} ${WRKSRC}/github.com/${GH_ACCOUNT}/${PORTNAME}
	${RLN} ${WRKSRC} ${WRKSRC}/src
	${REINPLACE_CMD} -e 's|-ldl||g' \
		${WRKSRC}/third_party/openfst/src/bin/Makefile.in \
		${WRKSRC}/third_party/openfst/src/extensions/far/Makefile.in \
		${WRKSRC}/third_party/openfst/src/extensions/linear/Makefile.in \
		${WRKSRC}/third_party/openfst/src/extensions/pdt/Makefile.in \
		${WRKSRC}/third_party/openfst/src/test/Makefile.in

do-build:
	cd ${WRKSRC} && \
		${SETENV} ${MAKE_ENV} ${GO_ENV} GOPATH="${GOPATH}:${WRKSRC}" \
		  ${GO_CMD} build -ldflags "-X main.Version=${GH_TAGNAME}" -o bin/${PORTNAME}

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin

.include <bsd.port.mk>
{'fraction_non_alphanumeric': 0.1622589531680441, 'fraction_numerical': 0.03911845730027548, 'mean_word_length': 5.041597337770383, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 18, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3717408', 'n_tokens_mistral': 1772, 'n_tokens_neox': 1644, 'n_words': 239}