svn commit: r347110 - head/www/crawl

Baptiste Daroussin bapt at FreeBSD.org
Wed Mar 5 13:21:17 UTC 2014


Author: bapt
Date: Wed Mar  5 13:21:16 2014
New Revision: 347110
URL: http://svnweb.freebsd.org/changeset/ports/347110
QAT: https://qat.redports.org/buildarchive/r347110/

Log:
  Enforce using libevent2 via the compat API (libevent2 performs way better, libevent1 should die in short term)

Modified:
  head/www/crawl/Makefile
  head/www/crawl/pkg-plist

Modified: head/www/crawl/Makefile
==============================================================================
--- head/www/crawl/Makefile	Wed Mar  5 13:10:05 2014	(r347109)
+++ head/www/crawl/Makefile	Wed Mar  5 13:21:16 2014	(r347110)
@@ -3,32 +3,30 @@
 
 PORTNAME=	crawl
 PORTVERSION=	0.4
-PORTREVISION=	8
+PORTREVISION=	9
 CATEGORIES=	www
 MASTER_SITES=	http://www.monkey.org/~provos/
 
 MAINTAINER=	ports at FreeBSD.org
-COMMENT=	A small, efficient web crawler with advanced features
+COMMENT=	Small, efficient web crawler with advanced features
 
-LIB_DEPENDS=	event-1.4:${PORTSDIR}/devel/libevent
+OPTIONS_DEFINE=	EXAMPLES
 
-USE_BDB=	yes
-GNU_CONFIGURE=	yes
-CONFIGURE_ARGS=	--with-libevent=${LOCALBASE} --program-transform-name=''
+LIB_DEPENDS=	libevent-2.0.so:${PORTSDIR}/devel/libevent2
 
-MAN1=	crawl.1
+USES=		pkgconfig
 
-NO_STAGE=	yes
-.include <bsd.port.pre.mk>
+USE_BDB=	yes
+GNU_CONFIGURE=	yes
+CONFIGURE_ARGS=	--with-libevent --program-transform-name=''
+CONFIGURE_ENV=	EVENTINC="`pkgconf --cflags libevent`" EVENTLIB="`pkgconf --libs libevent`"
 
 post-patch:
 	@${REINPLACE_CMD} -e 's,/usr/include/db2,${BDB_INCLUDE_DIR},g' \
 		-e 's,db2,${BDB_LIB_NAME},g' ${WRKSRC}/configure.in
 
 post-install:
-.if !defined(NOPORTDOCS)
-	@${MKDIR} ${EXAMPLESDIR}
-	${INSTALL_DATA} ${WRKSRC}/crawl.conf ${EXAMPLESDIR}
-.endif
+	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+	${INSTALL_DATA} ${WRKSRC}/crawl.conf ${STAGEDIR}${EXAMPLESDIR}
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>

Modified: head/www/crawl/pkg-plist
==============================================================================
--- head/www/crawl/pkg-plist	Wed Mar  5 13:10:05 2014	(r347109)
+++ head/www/crawl/pkg-plist	Wed Mar  5 13:21:16 2014	(r347110)
@@ -1,3 +1,4 @@
 bin/crawl
-%%PORTDOCS%%share/examples/crawl/crawl.conf
-%%PORTDOCS%%@dirrm share/examples/crawl
+man/man1/crawl.1.gz
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/crawl.conf
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%


More information about the svn-ports-all mailing list