mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-26 05:02:18 +00:00
9849dced25
1.11.1 better error handling if command is not found 1.11 source directory cleanup several new configuration files and improvements 1.10.1 make bash aliases more compatible with other shells and with MacOSX 1.10 many new configuration files python3 support While here, adjust license and set architecture neutral. PR: 219599 Submitted by: Walter Hop <walter@lifeforms.nl> (maintainer) Approved by: garga (mentor) Differential Revision: https://reviews.freebsd.org/D10966
47 lines
1.1 KiB
Makefile
47 lines
1.1 KiB
Makefile
# Created by: Ying-Chieh Liao <ijliao@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= grc
|
|
PORTVERSION= 1.11.1
|
|
DISTVERSIONPREFIX= v
|
|
CATEGORIES= misc
|
|
|
|
MAINTAINER= walter@lifeforms.nl
|
|
COMMENT= Generic Colouriser
|
|
|
|
LICENSE= GPLv2+
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= garabik
|
|
|
|
NO_BUILD= yes
|
|
|
|
NO_ARCH= yes
|
|
USES= python:run shebangfix
|
|
SHEBANG_FILES= grc grcat
|
|
|
|
post-patch:
|
|
.for i in grc grcat
|
|
@${REINPLACE_CMD} -e \
|
|
's|"/etc/grc|"${PREFIX}/etc/grc|g ; \
|
|
s|/usr/local/share/grc|${DATADIR}|g ; \
|
|
s|#! /usr/bin/env python3|#!${PYTHON_CMD}| ; \
|
|
s|, "/usr/share/grc/"||g' ${WRKSRC}/${i}
|
|
@${REINPLACE_CMD} -e \
|
|
's| /etc/grc| ${PREFIX}/etc/grc|g ; \
|
|
s|/usr/local/share/grc|${DATADIR}|g ; \
|
|
s|, /usr/share/grc/||g' ${WRKSRC}/${i}.1
|
|
.endfor
|
|
|
|
do-install:
|
|
.for i in grc grcat
|
|
(cd ${WRKSRC} && ${INSTALL_SCRIPT} ${i} ${STAGEDIR}${PREFIX}/bin)
|
|
(cd ${WRKSRC} && ${INSTALL_MAN} ${i}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1)
|
|
.endfor
|
|
(cd ${WRKSRC} && ${INSTALL_DATA} grc.conf ${STAGEDIR}${PREFIX}/etc)
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}
|
|
(cd ${WRKSRC} && ${INSTALL_DATA} colourfiles/conf.* ${STAGEDIR}${DATADIR})
|
|
|
|
.include <bsd.port.mk>
|