mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-19 03:52:17 +00:00
44db0fdc07
- Don't install config files without .sample suffix, these are handled by pkg - Remove MLINKS, unneeded with pkg - Use @sample - Remove @dirrm* from plist PR: 200038 Submitted by: amdmi3@
35 lines
985 B
Makefile
35 lines
985 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= surfraw
|
|
PORTVERSION= 2.2.9
|
|
PORTREVISION= 1
|
|
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
|
|
USES= gmake perl5 shebangfix
|
|
SHEBANG_FILES= opensearch-discover \
|
|
opensearch-genquery \
|
|
surfraw-update-path.IN
|
|
|
|
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
|
|
|
|
post-install:
|
|
${INSTALL_SCRIPT} ${WRKSRC}/examples/uzbl_load_url_from_surfraw \
|
|
${STAGEDIR}${PREFIX}/bin
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d
|
|
${INSTALL_DATA} ${WRKSRC}/surfraw-bash-completion \
|
|
${STAGEDIR}${PREFIX}/etc/bash_completion.d/surfraw
|
|
.for f in surfraw.bookmarks surfraw.conf
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${PREFIX}/etc/${f}.sample
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|