1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00
freebsd-ports/www/goose/Makefile
Ying-Chieh Liao ba01cc4cc8 add goose 0.5
Command line Google search utility
2003-12-30 04:20:00 +00:00

51 lines
1.3 KiB
Makefile

# ex:ts=8
# Ports collection Makefile for: goose
# Date created: Dec 30, 2003
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= goose
PORTVERSION= 0.5
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= goose-search
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 \
url_handler.sh:${PORTSDIR}/textproc/urlview
USE_PERL5= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
POD2MAN?= pod2man
MAN1= goose.1
post-patch:
@${PERL} -pi -e "s|%%LOCALBASE%%|${LOCALBASE}|g ; \
s|%%DATADIR%%|${DATADIR}|g ; \
s|%%EXAMPLESDIR%%|${EXAMPLESDIR}|g" ${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>