freebsd-ports/devel/git-cinnabar/Makefile
Jan Beich 4f9262cc49 devel/git-cinnabar: simplify MAKE_ENV and MAKE_ARGS
- PYTHON_PATH is no longer used by git-cinnabar itself
- Convert != to ${:!...!}
- Convert /.. to :H

Note, foreign variables can be factored out (dubious benefit):

  # Import devel/git variables (append if :group is missing)
  .for v in MAKE_ENV MAKE_ARGS WRKSRC:git
  ${v:S/:/_/}+=	${:!${SETENV} -u FLAVOR ${MAKE} -V ${v:C/:.*//} -C ${PORTSDIR}/devel/git!}
  .endfor
2020-06-24 20:52:34 +00:00

52 lines
1.5 KiB
Makefile

# $FreeBSD$
PORTNAME= git-cinnabar
DISTVERSION= 0.5.5
PORTREVISION= 2
CATEGORIES= devel
PKGNAMESUFFIX= ${PYTHON_PKGNAMESUFFIX:N-py27}
MAINTAINER= jbeich@FreeBSD.org
COMMENT= Git remote helper to interact with Mercurial repositories
LICENSE= GPLv2
BUILD_DEPENDS= ${NONEXISTENT}:devel/git:configure
RUN_DEPENDS= git:devel/git
py27_RUN_DEPENDS= hg:devel/mercurial # XXX bug 242463
USE_GITHUB= yes
GH_ACCOUNT= glandium
USES= gmake python:run shebangfix
USE_PYTHON= flavors
TARGET_ORDER_OVERRIDE= 510:fix-shebang # after do-patch
SHEBANG_FILES= ${PORTNAME} git-remote-hg
ALL_TARGET= ${PORTNAME}-helper
MAKE_ENV= ${:!${MAKE} -V MAKE_ENV -C ${.CURDIR:H}/git!}
MAKE_ARGS= SUBMODULE_STATUS=dummy ${:!${MAKE} -V MAKE_ARGS -C ${.CURDIR:H}/git!}
CFLAGS+= -ffunction-sections -fdata-sections
LDFLAGS+= -Wl,--gc-sections
.export CPPFLAGS CFLAGS CXXFLAGS LDFLAGS # :configure
DATADIR= ${PREFIX}/libexec/git-core
PORTDATA= *
PORTDOCS= README.md
OPTIONS_DEFINE= DOCS
post-configure:
@${TAR} cf - -C$$(${SETENV} -u FLAVOR ${MAKE} -V WRKSRC -C ${PORTSDIR}/devel/git) . | \
${TAR} xof - -C${WRKSRC}/git-core
do-install:
${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${WRKSRC}/git-remote-hg \
${STAGEDIR}${DATADIR}
${INSTALL_PROGRAM} ${WRKSRC}/git-core/${PORTNAME}-helper \
${STAGEDIR}${DATADIR}
(cd ${WRKSRC} && ${COPYTREE_SHARE} "${PORTNAME:S/git-//}" \
${STAGEDIR}${DATADIR}/pythonlib)
(cd ${WRKSRC} && ${COPYTREE_SHARE} \
"${PORTDOCS}" ${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>