blob: 2a3fa27b635eb1a9361c8098ea245ab570875544 (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# ex:ts=8
# Ports collection Makefile for: goose
# Date created: Dec 30, 2003
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= goose
PORTVERSION= 0.5
PORTREVISION= 3
CATEGORIES= www
MASTER_SITES= SF/${PORTNAME}-search/${PORTNAME}-search/${PORTVERSION}
DISTNAME= ${PORTNAME}_${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Command line Google search utility
RUN_DEPENDS= ${SITE_PERL}/SOAP/Lite.pm:${PORTSDIR}/net/p5-SOAP-Lite \
${SITE_PERL}/HTML/TreeBuilder.pm:${PORTSDIR}/www/p5-HTML-Tree \
${SITE_PERL}/HTML/FormatText.pm:${PORTSDIR}/textproc/p5-HTML-Format \
${SITE_PERL}/AppConfig.pm:${PORTSDIR}/devel/p5-AppConfig \
${SITE_PERL}/${PERL_ARCH}/Curses.pm:${PORTSDIR}/devel/p5-Curses \
urlview:${PORTSDIR}/textproc/urlview
USE_PERL5= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
POD2MAN?= pod2man
MAN1= goose.1
post-patch:
@${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|g" \
-e "s|%%DATADIR%%|${DATADIR}|g" \
-e "s|%%EXAMPLESDIR%%|${EXAMPLESDIR}|g" \
-e "s|/usr/local/bin/url_handler.sh|${LOCALBASE}/urlview|" \
${WRKSRC}/goose
do-build:
@cd ${WRKSRC} && ${POD2MAN} goose > goose.1
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/goose ${PREFIX}/bin
@${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/GoogleSearch.wsdl ${DATADIR}
${INSTALL_MAN} ${WRKSRC}/goose.1 ${MAN1PREFIX}/man/man1
.if !defined(NOPORTDOCS)
@${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/goose.conf.example ${EXAMPLESDIR}
.endif
.include <bsd.port.mk>
|