Added
Link Here
|
1 |
PORTNAME= kineto |
2 |
DISTVERSION= g20211104 |
3 |
CATEGORIES= www |
4 |
COMMIT= 857f8c97ebc5 |
5 |
|
6 |
MAINTAINER= corey@electrickite.org |
7 |
COMMENT= HTTP to Gemini proxy |
8 |
|
9 |
LICENSE= GPLv3 |
10 |
LICENSE_FILE= ${WRKSRC}/COPYING |
11 |
|
12 |
USES= go:modules,no_targets |
13 |
USE_RC_SUBR= ${PORTNAME} |
14 |
USE_GITHUB= nodefault |
15 |
GH_TUPLE= golang:net:5f4716e94777:golang_net/vendor/golang.org/x/net \ |
16 |
golang:text:v0.3.3:golang_text/vendor/golang.org/x/text |
17 |
|
18 |
# Additional distfiles to fetch from https://git.sr.ht |
19 |
_SRHT_TUPLE= sircmpwn:${PORTNAME}:${COMMIT}:"" \ |
20 |
adnano:go-gemini:v0.1.17:vendor/git.sr.ht/~adnano/go-gemini \ |
21 |
sircmpwn:getopt:23622cc906b3:vendor/git.sr.ht/~sircmpwn/getopt |
22 |
|
23 |
MAKE_ENV= ${GO_ENV} \ |
24 |
GOFLAGS= "${GO_BUILDFLAGS}" |
25 |
|
26 |
WRKSRC= ${WRKDIR}/${PORTNAME}-${COMMIT} |
27 |
|
28 |
PLIST_FILES= bin/${PORTNAME} |
29 |
|
30 |
.include <bsd.port.pre.mk> |
31 |
|
32 |
.for account project tag subdir in ${_SRHT_TUPLE:S/:/ /g} |
33 |
MASTER_SITES+= https://git.sr.ht/~${account}/${project}/archive/${tag}${EXTRACT_SUFX}?dummy=/:${account}_${project:S/-/_/g} |
34 |
DISTFILES+= ${account}-${project}-${tag}_SRHT0${EXTRACT_SUFX}:${account}_${project:S/-/_/g} |
35 |
.endfor |
36 |
|
37 |
post-extract: |
38 |
.for account project tag subdir in ${_SRHT_TUPLE:S/:/ /g:[5..-1]} |
39 |
@${MKDIR} ${WRKSRC}/${subdir:H} |
40 |
@${MV} ${WRKDIR}/${project}-${tag} ${WRKSRC}/${subdir} |
41 |
.endfor |
42 |
(cd ${WRKSRC} && ${GO_CMD} mod vendor) |
43 |
|
44 |
do-build: |
45 |
(cd ${WRKSRC} && ${GO_CMD} build ${GOFLAGS}) |
46 |
|
47 |
do-install: |
48 |
${MKDIR} ${STAGEDIR}${PREFIX}/bin/ |
49 |
${MV} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/ |
50 |
|
51 |
.include <bsd.port.post.mk> |