From owner-svn-ports-head@FreeBSD.ORG Sun Jun 2 17:32:09 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 26E604DD; Sun, 2 Jun 2013 17:32:09 +0000 (UTC) (envelope-from olivierd@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 199D010ED; Sun, 2 Jun 2013 17:32:09 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r52HW8pE070616; Sun, 2 Jun 2013 17:32:08 GMT (envelope-from olivierd@svn.freebsd.org) Received: (from olivierd@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r52HW8fG070612; Sun, 2 Jun 2013 17:32:08 GMT (envelope-from olivierd@svn.freebsd.org) Message-Id: <201306021732.r52HW8fG070612@svn.freebsd.org> From: Olivier Duchateau Date: Sun, 2 Jun 2013 17:32:08 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r319695 - in head/www/py-bjoern: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Jun 2013 17:32:09 -0000 Author: olivierd Date: Sun Jun 2 17:32:07 2013 New Revision: 319695 URL: http://svnweb.freebsd.org/changeset/ports/319695 Log: - Update to 1.3.1 - Trim Makefile header - Update maintainer address - Enhance COMMENT description - Remove ABI version in LIB_DEPENDS - Replace tabular by space in WWW entry (pkg-descr) Added: head/www/py-bjoern/files/patch-bjoern__portable_sendfile.c (contents, props changed) Deleted: head/www/py-bjoern/files/patch-bjoern_server.c head/www/py-bjoern/files/patch-setup.py Modified: head/www/py-bjoern/Makefile (contents, props changed) head/www/py-bjoern/distinfo (contents, props changed) head/www/py-bjoern/pkg-descr (contents, props changed) Modified: head/www/py-bjoern/Makefile ============================================================================== --- head/www/py-bjoern/Makefile Sun Jun 2 17:30:08 2013 (r319694) +++ head/www/py-bjoern/Makefile Sun Jun 2 17:32:07 2013 (r319695) @@ -1,31 +1,26 @@ -# New ports collection makefile for: py-bjoern -# Date created: 2011-10-23 -# Whom: Olivier Duchateau -# +# Created by: Olivier Duchateau # $FreeBSD$ # PORTNAME= bjoern -PORTVERSION= 1.2 +PORTVERSION= 1.3.1 CATEGORIES= www python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} -MAINTAINER= duchateau.olivier@gmail.com -COMMENT= A screamingly fast Python WSGI server +MAINTAINER= olivierd@FreeBSD.org +COMMENT= Fast Python WSGI server LICENSE= BSD -LICENSE_FILE= ${WRKSRC}/LICENSE -LIB_DEPENDS= ev.4:${PORTSDIR}/devel/libev +LIB_DEPENDS= ev:${PORTSDIR}/devel/libev USE_PYTHON= 2.6+ USE_PYDISTUTILS= yes -PLIST_FILES= %%PYTHON_SITELIBDIR%%/${PORTNAME}.so +CFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib -lc -post-patch: - @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \ - ${WRKSRC}/setup.py +PLIST_FILES= %%PYTHON_SITELIBDIR%%/${PORTNAME}.so .include Modified: head/www/py-bjoern/distinfo ============================================================================== --- head/www/py-bjoern/distinfo Sun Jun 2 17:30:08 2013 (r319694) +++ head/www/py-bjoern/distinfo Sun Jun 2 17:32:07 2013 (r319695) @@ -1,2 +1,2 @@ -SHA256 (bjoern-1.2.tar.gz) = 9a4cf18fbcab49a0b53e98c9b1837df311af1ec58f711fcf91172b83e07b1e20 -SIZE (bjoern-1.2.tar.gz) = 22811 +SHA256 (bjoern-1.3.1.tar.gz) = e21391c1f52c088554bf62ce54f8af2889412d41f44847ecf05495b6d0a6dd6e +SIZE (bjoern-1.3.1.tar.gz) = 25811 Added: head/www/py-bjoern/files/patch-bjoern__portable_sendfile.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/py-bjoern/files/patch-bjoern__portable_sendfile.c Sun Jun 2 17:32:07 2013 (r319695) @@ -0,0 +1,44 @@ +See sendfile(2) + +--- ./bjoern/portable_sendfile.c.orig 2012-07-23 14:46:30.000000000 +0000 ++++ ./bjoern/portable_sendfile.c 2013-06-02 18:17:34.000000000 +0000 +@@ -2,13 +2,16 @@ + + #define SENDFILE_CHUNK_SIZE 16*1024 + ++#if defined(__APPLE__) || defined(__FreeBSD__) ++ ++ #include ++ #include ++ #include ++ + #ifdef __APPLE__ + + /* OS X */ + +- #include +- #include +- + ssize_t portable_sendfile(int out_fd, int in_fd) { + off_t len = SENDFILE_CHUNK_SIZE; + if(sendfile(in_fd, out_fd, 0, &len, NULL, 0) == -1) +@@ -18,6 +21,19 @@ + + #else + ++ /* FreeBSD */ ++ ++ ssize_t portable_sendfile(int out_fd, int in_fd) { ++ off_t len = SENDFILE_CHUNK_SIZE; ++ if(sendfile(in_fd, out_fd, 0, SENDFILE_CHUNK_SIZE, NULL, &len, 0) == -1) ++ return -1; ++ return len; ++ } ++ ++#endif ++ ++#else ++ + /* Linux */ + + #include Modified: head/www/py-bjoern/pkg-descr ============================================================================== --- head/www/py-bjoern/pkg-descr Sun Jun 2 17:30:08 2013 (r319694) +++ head/www/py-bjoern/pkg-descr Sun Jun 2 17:32:07 2013 (r319695) @@ -2,4 +2,4 @@ bjoern, is a fast and ultra-lightweight uses Marc Lehmann's hight performance libev event loop and Ryan Dahl's http-parser. -WWW: https://github.com/jonashaag/bjoern +WWW: https://github.com/jonashaag/bjoern