freebsd-ports/sysutils/lr/Makefile
Joseph Mingrone a3cc513bfc Flavorize and modernize Emacs ports
- Convert USE_EMACS to USES=emacs
- Remove editors/emacs-nox11 (refer to nox flavors of editors/emacs and
  editors/emacs-devel)
- Permit default Emacs flavor to be specified in make.conf
- Rename japanese/migemo-emacs23 to japanese/migemo-emacs
- Update and simplify audio/emms and fix build on FreeBSD 10 [1]
- Update databases/bbdd and fix build on FreeBSD 10 [1]
- Update editors/emacs-devel
- Ensure Makefile shell commands that change directory are executed in a
  subshell
- Silence some portlint warnings

[1] By not depending on base texinfo

PR:		225404
Reviewed by:	antoine
Approved by:	portmgr (mat) ashish (maintainer)
Differential Revision:	https://reviews.freebsd.org/D13506
2018-02-01 18:03:09 +00:00

60 lines
1.4 KiB
Makefile

# Created by: Tobias Kortkamp <t@tobik.me>
# $FreeBSD$
PORTNAME= lr
DISTVERSIONPREFIX= v
DISTVERSION= 1.2
CATEGORIES= sysutils
MAINTAINER= tobik@FreeBSD.org
COMMENT= List files, recursively
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
USE_GITHUB= yes
GH_ACCOUNT= chneukirchen
MAKE_ARGS= CFLAGS="${CFLAGS}" \
PREFIX="${PREFIX}" \
MANDIR="${PREFIX}/man"
OPTIONS_DEFINE= CONTRIB EMACS NEOVIM VIM
OPTIONS_DEFAULT= CONTRIB EMACS NEOVIM VIM
CONTRIB_DESC= Contrib scripts
EMACS_DESC= Emacs plugin
NEOVIM_DESC= Neovim plugin
VIM_DESC= Vim plugin
OPTIONS_SUB= yes
EMACS_USES= emacs
EMACS_VARS= EMACS_NO_DEPENDS=yes
CONTRIB_RUN_DEPENDS= xe:sysutils/xe
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/lr
post-install-CONTRIB-on:
${INSTALL_SCRIPT} ${WRKSRC}/contrib/lrls \
${STAGEDIR}${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/contrib/lrocate \
${STAGEDIR}${PREFIX}/bin
post-install-EMACS-on:
${MKDIR} ${STAGEDIR}${PREFIX}/${EMACS_SITE_LISPDIR}
${INSTALL_DATA} ${WRKSRC}/contrib/lr.el \
${STAGEDIR}${PREFIX}/${EMACS_SITE_LISPDIR}/lr.el
post-install-VIM-on:
${MKDIR} ${STAGEDIR}${PREFIX}/share/vim/vimfiles/plugin
${INSTALL_DATA} ${WRKSRC}/contrib/lr.vim \
${STAGEDIR}${PREFIX}/share/vim/vimfiles/plugin/
post-install-NEOVIM-on:
${MKDIR} ${STAGEDIR}${PREFIX}/share/nvim/runtime/plugin
${INSTALL_DATA} ${WRKSRC}/contrib/lr.vim \
${STAGEDIR}${PREFIX}/share/nvim/runtime/plugin/
.include <bsd.port.mk>