[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / shells / bash-completion

File: [cvs.NetBSD.org] / pkgsrc / shells / bash-completion / Makefile (download)

Revision 1.4, Tue Sep 29 17:19:11 2009 UTC (10 years, 11 months ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2012Q2-base, pkgsrc-2012Q2, pkgsrc-2012Q1-base, pkgsrc-2012Q1, pkgsrc-2011Q4-base, pkgsrc-2011Q4, pkgsrc-2011Q3-base, pkgsrc-2011Q3, pkgsrc-2011Q2-base, pkgsrc-2011Q2, pkgsrc-2011Q1-base, pkgsrc-2011Q1, pkgsrc-2010Q4-base, pkgsrc-2010Q4, pkgsrc-2010Q3-base, pkgsrc-2010Q3, pkgsrc-2010Q2-base, pkgsrc-2010Q2, pkgsrc-2010Q1-base, pkgsrc-2010Q1, pkgsrc-2009Q4-base, pkgsrc-2009Q4, pkgsrc-2009Q3-base, pkgsrc-2009Q3
Changes since 1.3: +3 -1 lines

Fix a bug reported by Mark Norman Francis on pkgsrc-users:
BASH_COMPLETION_DIR was set incorrectly.

Bump PKGREVISION.

# $NetBSD: Makefile,v 1.4 2009/09/29 17:19:11 wiz Exp $
#
# Note to packagers:
# packages installing additional completion files should drop
# them into ${DESTDIR}${PREFIX}/share/bash-completion.d
# with the name of the package as file name.

DISTNAME=	bash-completion-1.0
PKGREVISION=	1
CATEGORIES=	shells
MASTER_SITES=	http://bash-completion.alioth.debian.org/files/

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://bash-completion.alioth.debian.org/
COMMENT=	Programmable completion specifications for bash
LICENSE=	gnu-gpl-v2

PKG_DESTDIR_SUPPORT=	user-destdir

USE_TOOLS+=	bash:run

USE_LANGUAGES=	# none

INSTALLATION_DIRS=	bin share/bash-completion
INSTALLATION_DIRS+=	share/bash-completion.d
INSTALLATION_DIRS+=	share/doc/bash-completion

SUBST_CLASSES+=		path
SUBST_SED.path+=	-e "s,/etc/bash_completion.d,${PREFIX}/share/bash-completion.d,g"
SUBST_SED.path+=	-e "s,/etc/bash_completion,${PREFIX}/share/bash-completion/bash_completion,g"
SUBST_STAGE.path+=	pre-build
SUBST_FILES.path+=	bash_completion* README
SUBST_MESSAGE.path=	Fixing path to completion files.

do-build:

do-install:
	${INSTALL_DATA} ${WRKSRC}/README \
		${DESTDIR}${PREFIX}/share/doc/bash-completion
	${INSTALL_DATA} ${WRKSRC}/bash_completion \
		${DESTDIR}${PREFIX}/share/bash-completion
	${INSTALL_DATA} ${WRKSRC}/bash_completion.sh \
		${DESTDIR}${PREFIX}/share/bash-completion
	${INSTALL_DATA} ${WRKSRC}/contrib/* \
	    ${DESTDIR}${PREFIX}/share/bash-completion.d

.include "../../mk/bsd.pkg.mk"