blob: 9b019b3bfb769dbc72b0c363487fb0127adf6494 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# $FreeBSD$
PORTNAME= surfraw
PORTVERSION= 2.2.9
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= perl5 gmake
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
@if [ ! -f ${STAGEDIR}${PREFIX}/etc/${f} ]; then \
${INSTALL_DATA} ${STAGEDIR}${PREFIX}/etc/${f}.sample \
${STAGEDIR}${PREFIX}/etc/${f}; \
fi
.endfor
.include "${.CURDIR}/manpages"
.include <bsd.port.mk>
|