svn commit: r377719 - in head/devel/py-traits: . files
Olivier Duchateau
olivierd at FreeBSD.org
Fri Jan 23 10:20:19 UTC 2015
Author: olivierd
Date: Fri Jan 23 10:20:17 2015
New Revision: 377719
URL: https://svnweb.freebsd.org/changeset/ports/377719
QAT: https://qat.redports.org/buildarchive/r377719/
Log:
- Update to 4.5.0
- Switch MASTER_SITES to CHEESESHOP macro
- Remove DOCS and EXAMPLES
- Adjust dependencies
PR: 196977
Submitted by: myself
Approved by: wen@ (maintainer)
Added:
head/devel/py-traits/files/
head/devel/py-traits/files/patch-setup.py (contents, props changed)
Modified:
head/devel/py-traits/Makefile
head/devel/py-traits/distinfo
head/devel/py-traits/pkg-descr
Modified: head/devel/py-traits/Makefile
==============================================================================
--- head/devel/py-traits/Makefile Fri Jan 23 09:35:06 2015 (r377718)
+++ head/devel/py-traits/Makefile Fri Jan 23 10:20:17 2015 (r377719)
@@ -2,12 +2,10 @@
# $FreeBSD$
PORTNAME= traits
-PORTVERSION= 3.6.0
-PORTREVISION= 5
+PORTVERSION= 4.5.0
CATEGORIES= devel python
-MASTER_SITES= http://www.enthought.com/repo/ETS/
+MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
-DISTNAME= Traits-${PORTVERSION}
MAINTAINER= wen at FreeBSD.org
COMMENT= Explicitly Typed Attributes for Python
@@ -15,23 +13,16 @@ COMMENT= Explicitly Typed Attributes for
LICENSE= BSD3CLAUSE PSFL
LICENSE_COMB= multi
-BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}EnthoughtBase>=3.0.1:${PORTSDIR}/devel/py-EnthoughtBase \
- ${PYNUMPY}
-RUN_DEPENDS:= ${BUILD_DEPENDS}
+BUILD_DEPENDS= ${PYNUMPY}
USES= python
USE_PYTHON= distutils autoplist
-OPTIONS_DEFINE= DOCS EXAMPLES
+CFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib
-post-install:
- ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
- cd ${WRKSRC}/examples \
- && ${FIND} . -type d -exec ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/\{} \; \
- && ${FIND} . -type f -exec ${INSTALL_DATA} \{} ${STAGEDIR}${EXAMPLESDIR}/\{} \;
- ${MKDIR} ${STAGEDIR}${DOCSDIR}
- cd ${WRKSRC}/docs \
- && ${FIND} . -type d -exec ${MKDIR} ${STAGEDIR}${DOCSDIR}/\{} \; \
- && ${FIND} . -type f -exec ${INSTALL_DATA} \{} ${STAGEDIR}${DOCSDIR}/\{} \;
+post-extract:
+# Remove traits/testing directory files are not compatible with Python 3
+ cd ${WRKSRC} && ${RM} -Rf traits/testing/
.include <bsd.port.mk>
Modified: head/devel/py-traits/distinfo
==============================================================================
--- head/devel/py-traits/distinfo Fri Jan 23 09:35:06 2015 (r377718)
+++ head/devel/py-traits/distinfo Fri Jan 23 10:20:17 2015 (r377719)
@@ -1,2 +1,2 @@
-SHA256 (Traits-3.6.0.tar.gz) = f48dcd9bb33bec3389566c3fee43f039ff33fc99e5db5ca8c4967fb8e5db8657
-SIZE (Traits-3.6.0.tar.gz) = 10884341
+SHA256 (traits-4.5.0.tar.gz) = 5293a8786030b0b243e059f52004355b6939d7c0f1be2eb5a605b63cca484c84
+SIZE (traits-4.5.0.tar.gz) = 4853612
Added: head/devel/py-traits/files/patch-setup.py
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/py-traits/files/patch-setup.py Fri Jan 23 10:20:17 2015 (r377719)
@@ -0,0 +1,20 @@
+--- setup.py.orig 2014-05-07 10:39:42 UTC
++++ setup.py
+@@ -11,7 +11,6 @@ exec(compile(open(traits_init).read(), t
+ ctraits = Extension(
+ 'traits.ctraits',
+ sources = ['traits/ctraits.c'],
+- extra_compile_args = ['-DNDEBUG=1', '-O3' ]#, '-DPy_LIMITED_API'],
+ )
+
+
+@@ -55,7 +54,8 @@ setup(
+ license = 'BSD',
+ maintainer = 'ETS Developers',
+ maintainer_email = 'enthought-dev at enthought.com',
+- packages = find_packages(),
++ # remove 'traits.testing*' directories not compatible with Python 3
++ packages = find_packages(where='.', exclude=['traits.testing*']),
+ platforms = ["Windows", "Linux", "Mac OS-X", "Unix", "Solaris"],
+ zip_safe = False,
+ use_2to3 = True,
Modified: head/devel/py-traits/pkg-descr
==============================================================================
--- head/devel/py-traits/pkg-descr Fri Jan 23 09:35:06 2015 (r377718)
+++ head/devel/py-traits/pkg-descr Fri Jan 23 10:20:17 2015 (r377719)
@@ -14,4 +14,4 @@ of trait attributes within the class. Tr
a classs are automatically inherited by any subclass derived from
the class.
-WWW: https://pypi.python.org/pypi/Traits/
+WWW: https://pypi.python.org/pypi/traits/
More information about the svn-ports-head
mailing list