Changeset View
Changeset View
Standalone View
Standalone View
devel/git-arc/Makefile
- This file was added.
PORTNAME= git-arc | ||||||||||||
PORTVERSION= 20211126 | ||||||||||||
CATEGORIES= devel | ||||||||||||
MASTER_SITES= https://cgit.freebsd.org/src/plain/tools/tools/git/ | ||||||||||||
.if ${FLAVOR:U} != default | ||||||||||||
PKGNAMESUFFIX= -${FLAVOR} | ||||||||||||
.endif | ||||||||||||
mat: This will build `git-arc-default` if you just run `make`, best remove this and use the flavors… | ||||||||||||
DISTFILES= ${PORTNAME}.sh?id=${_REV} \ | ||||||||||||
${PORTNAME}.1?id=${_REV} | ||||||||||||
DIST_SUBDIR= ${PKGNAMEPREFIX}${PORTNAME} | ||||||||||||
MAINTAINER= jrm@FreeBSD.org | ||||||||||||
COMMENT= FreeBSD Phabricator reviews based on git commits | ||||||||||||
LICENSE= BSD2CLAUSE | ||||||||||||
RUN_DEPENDS= arc:devel/arcanist \ | ||||||||||||
git:devel/git@${FLAVOR} \ | ||||||||||||
jq:textproc/jq | ||||||||||||
# Git flavor to depend on | ||||||||||||
matUnsubmitted Done Inline ActionsThis is a very very bad idea, it will break if git lose one of those flavors. mat: This is a very very bad idea, it will break if git lose one of those flavors. | ||||||||||||
jrmAuthorUnsubmitted Done Inline ActionsIt's probably obvious, but the goal here is to not force a dependency on the default flavor of devel/git. Without this, users who have, e.g., git-lite installed will have a conflict when installing git-arc. I suppose sub-packages, when they arrive, will be a better solution. If git were broken into multiple packages we could just depend on the base git package and users who want the extra git components could install them independently. jrm: It's probably obvious, but the goal here is to not force a dependency on the default flavor of… | ||||||||||||
FLAVORS= default lite tiny | ||||||||||||
matUnsubmitted Done Inline Actions
Better follow the how to use flavors section, and use flavor helpers. mat: Better follow the [how to use flavors](https://docs.freebsd.org/en/books/porters… | ||||||||||||
default_CONFLICTS_INSTALL= git-arc-lite git-arc-tiny | ||||||||||||
lite_CONFLICTS_INSTALL= git-arc git-arc-tiny | ||||||||||||
tiny_CONFLICTS_INSTALL= git-arc git-arc-lite | ||||||||||||
EXTRACT_CMD= ${CP} | ||||||||||||
EXTRACT_BEFORE_ARGS= # empty | ||||||||||||
EXTRACT_AFTER_ARGS= . | ||||||||||||
NO_ARCH= yes | ||||||||||||
NO_BUILD= yes | ||||||||||||
NO_WRKSUBDIR= yes | ||||||||||||
PLIST_FILES= bin/${PORTNAME} \ | ||||||||||||
man/man1/${PORTNAME}.1.gz | ||||||||||||
_REV= 964035c409b1b7229c7bc0220e7455e4a038ed4b | ||||||||||||
post-patch: | ||||||||||||
@${MV} ${WRKSRC}/${PORTNAME}.sh?id=* ${WRKSRC}/${PORTNAME}.sh | ||||||||||||
@${MV} ${WRKSRC}/${PORTNAME}.1?id=* ${WRKSRC}/${PORTNAME}.1 | ||||||||||||
do-install: | ||||||||||||
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.sh ${STAGEDIR}${PREFIX}/bin/${PORTNAME} | ||||||||||||
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/ | ||||||||||||
.include <bsd.port.mk> |
This will build git-arc-default if you just run make, best remove this and use the flavors helpers as seen below.