Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Dec 2015 18:33:43 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r404147 - in head/devel/py-gevent: . files
Message-ID:  <201512211833.tBLIXhBi056915@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Mon Dec 21 18:33:43 2015
New Revision: 404147
URL: https://svnweb.freebsd.org/changeset/ports/404147

Log:
  - Add LICENSE_FILE
  - Use libraries from ports tree instead of bundled one
  - Strip shared library in post-install:
  - Bump PORTREVISION for dependency and package change

Deleted:
  head/devel/py-gevent/files/
Modified:
  head/devel/py-gevent/Makefile

Modified: head/devel/py-gevent/Makefile
==============================================================================
--- head/devel/py-gevent/Makefile	Mon Dec 21 18:33:38 2015	(r404146)
+++ head/devel/py-gevent/Makefile	Mon Dec 21 18:33:43 2015	(r404147)
@@ -3,6 +3,7 @@
 
 PORTNAME=	gevent
 PORTVERSION=	1.0.2
+PORTREVISION=	1
 CATEGORIES=	devel python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -11,18 +12,22 @@ MAINTAINER=	sunpoet@FreeBSD.org
 COMMENT=	Python co-routine networking library based on greenlet
 
 LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
 
+LIB_DEPENDS=	libcares.so:${PORTSDIR}/dns/c-ares \
+		libev.so:${PORTSDIR}/devel/libev
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}greenlet>=0.4.7:${PORTSDIR}/devel/py-greenlet
 TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}greenlet>=0.4.7:${PORTSDIR}/devel/py-greenlet \
 		${PYTHON_PKGNAMEPREFIX}sqlite3>=0:${PORTSDIR}/databases/py-sqlite3
 
 DO_MAKE_TEST=	${SETENV} PYTHONPATH=../ ${PYTHON_CMD}
+MAKE_ENV=	CARES_EMBED=0 LIBEV_EMBED=0
 TEST_TARGET=	testrunner.py
 TEST_WRKSRC=	${WRKSRC}/greentest
 USE_PYTHON=	autoplist distutils
-USES=		python:2
+USES=		localbase python:2
 
-post-build:
-	@${STRIP_CMD} ${WRKSRC}/gevent/_semaphore.so ${WRKSRC}/gevent/_util.so ${WRKSRC}/gevent/ares.so ${WRKSRC}/gevent/core.so
+post-install:
+	${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/gevent/*.so
 
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201512211833.tBLIXhBi056915>