mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
44 lines
1.1 KiB
Makefile
44 lines
1.1 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= surfraw
|
|
PORTVERSION= 2.2.8
|
|
CATEGORIES= www
|
|
MASTER_SITES= http://surfraw.alioth.debian.org/dist/
|
|
|
|
MAINTAINER= jadawin@FreeBSD.org
|
|
COMMENT= Command line interface to popular WWW search engines
|
|
|
|
GNU_CONFIGURE= yes
|
|
USE_GMAKE= yes
|
|
USES= perl5
|
|
|
|
MAN1= elvi.1sr \
|
|
opensearch-discover.1 \
|
|
opensearch-genquery.1 \
|
|
surfraw-update-path.1 \
|
|
surfraw.1
|
|
|
|
post-patch: .SILENT
|
|
${REINPLACE_CMD} '\|xdg/surfraw|d' ${WRKSRC}/Makefile.in
|
|
${REINPLACE_CMD} -e 's|/bin/bash|${SH}|g' \
|
|
-e 's/^function[[:space:]]//' \
|
|
${WRKSRC}/examples/uzbl_load_url_from_surfraw.IN
|
|
|
|
NO_STAGE= yes
|
|
post-install:
|
|
${INSTALL_SCRIPT} ${WRKSRC}/examples/uzbl_load_url_from_surfraw \
|
|
${PREFIX}/bin
|
|
${MKDIR} ${PREFIX}/etc/bash_completion.d
|
|
${INSTALL_DATA} ${WRKSRC}/surfraw-bash-completion \
|
|
${PREFIX}/etc/bash_completion.d/surfraw
|
|
.for f in surfraw.bookmarks surfraw.conf
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/etc/${f}.sample
|
|
@if [ ! -f ${PREFIX}/etc/${f} ]; then \
|
|
${INSTALL_DATA} ${PREFIX}/etc/${f}.sample \
|
|
${PREFIX}/etc/${f}; \
|
|
fi
|
|
.endfor
|
|
|
|
.include "${.CURDIR}/manpages"
|
|
.include <bsd.port.mk>
|