Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Aug 2017 12:52:37 +0000 (UTC)
From:      "Danilo G. Baio" <dbaio@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r447881 - in head/devel/py-jcc: . files
Message-ID:  <201708131252.v7DCqbZj066004@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dbaio
Date: Sun Aug 13 12:52:37 2017
New Revision: 447881
URL: https://svnweb.freebsd.org/changeset/ports/447881

Log:
  devel/py-jcc: Update to 3.0, Take MAINTAINER'ship
  
  - Now with Python 3.3+ support [1]
  - Add LICENSE_FILE
  - Move to autoplist (When built in different Python Major Versions,
    pkg-plist changes)
  
  Changes:	http://svn.apache.org/repos/asf/lucene/pylucene/trunk/jcc/CHANGES [1]

Added:
  head/devel/py-jcc/files/patch-jcc2_sources_JArray.cpp   (contents, props changed)
  head/devel/py-jcc/files/patch-jcc3_sources_JArray.cpp   (contents, props changed)
Deleted:
  head/devel/py-jcc/files/patch-jcc_sources_JArray.cpp
  head/devel/py-jcc/pkg-plist
Modified:
  head/devel/py-jcc/Makefile
  head/devel/py-jcc/distinfo

Modified: head/devel/py-jcc/Makefile
==============================================================================
--- head/devel/py-jcc/Makefile	Sun Aug 13 11:24:42 2017	(r447880)
+++ head/devel/py-jcc/Makefile	Sun Aug 13 12:52:37 2017	(r447881)
@@ -2,21 +2,22 @@
 # $FreeBSD$
 
 PORTNAME=	jcc
-PORTVERSION=	2.23
+PORTVERSION=	3.0
 CATEGORIES=	devel java python
 MASTER_SITES=	CHEESESHOP/source/J/JCC
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 DISTNAME=	JCC-${PORTVERSION}
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	dbaio@FreeBSD.org
 COMMENT=	C++ code generator for calling Java from C++/Python
 
 LICENSE=	APACHE20
+LICENSE_FILE=	${WRKSRC}/LICENSE
 
 BROKEN_armv6=		fails to link: /nxb-bin/usr/bin/ld: cannot find -ljava
 
 USES=		python
-USE_PYTHON=	distutils
+USE_PYTHON=	distutils autoplist
 PYDISTUTILS_PKGNAME=	JCC
 USE_JAVA=	yes
 JAVA_VERSION=	1.6+
@@ -35,6 +36,6 @@ MAKE_ENV+=	JCC_INCLUDES=${JCC_INCLUDES} JCC_CFLAGS=${J
 		JCC_JAVAC=javac JCC_ARGSEP=";"
 
 post-install:
-	${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/jcc/_jcc.so
+	${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/jcc/_jcc${PYTHON_MAJOR_VER}.so
 
 .include <bsd.port.mk>

Modified: head/devel/py-jcc/distinfo
==============================================================================
--- head/devel/py-jcc/distinfo	Sun Aug 13 11:24:42 2017	(r447880)
+++ head/devel/py-jcc/distinfo	Sun Aug 13 12:52:37 2017	(r447881)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1487559424
-SHA256 (JCC-2.23.tar.gz) = d463c8592f79ac0b8e67208c504899a6c2a9d410586a769e2a670f55c7487c5f
-SIZE (JCC-2.23.tar.gz) = 97242
+TIMESTAMP = 1502582487
+SHA256 (JCC-3.0.tar.gz) = 52dc7ae13a8e81d78afbc0f13e88ecbdf969673923425a4d65021ae241d99b91
+SIZE (JCC-3.0.tar.gz) = 176276

Added: head/devel/py-jcc/files/patch-jcc2_sources_JArray.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-jcc/files/patch-jcc2_sources_JArray.cpp	Sun Aug 13 12:52:37 2017	(r447881)
@@ -0,0 +1,20 @@
+--- jcc2/sources/JArray.cpp.orig	2017-08-13 00:37:59 UTC
++++ jcc2/sources/JArray.cpp
+@@ -312,7 +312,7 @@ static PyObject *seq_concat(U *self, PyObject *arg)
+     PyObject *list = toSequence<U>(self);
+ 
+     if (list != NULL &&
+-        PyList_Type.tp_as_sequence->sq_inplace_concat(list, arg) < 0)
++        PyList_Type.tp_as_sequence->sq_inplace_concat(list, arg) == NULL)
+     {
+         Py_DECREF(list);
+         return NULL;
+@@ -327,7 +327,7 @@ static PyObject *seq_repeat(U *self, Py_ssize_t n)
+     PyObject *list = toSequence<U>(self);
+ 
+     if (list != NULL &&
+-        PyList_Type.tp_as_sequence->sq_inplace_repeat(list, n) < 0)
++        PyList_Type.tp_as_sequence->sq_inplace_repeat(list, n) == NULL)
+     {
+         Py_DECREF(list);
+         return NULL;

Added: head/devel/py-jcc/files/patch-jcc3_sources_JArray.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-jcc/files/patch-jcc3_sources_JArray.cpp	Sun Aug 13 12:52:37 2017	(r447881)
@@ -0,0 +1,20 @@
+--- jcc3/sources/JArray.cpp.orig	2017-08-13 00:38:32 UTC
++++ jcc3/sources/JArray.cpp
+@@ -312,7 +312,7 @@ static PyObject *seq_concat(U *self, PyObject *arg)
+     PyObject *list = toSequence<U>(self);
+ 
+     if (list != NULL &&
+-        PyList_Type.tp_as_sequence->sq_inplace_concat(list, arg) < 0)
++        PyList_Type.tp_as_sequence->sq_inplace_concat(list, arg) == NULL)
+     {
+         Py_DECREF(list);
+         return NULL;
+@@ -327,7 +327,7 @@ static PyObject *seq_repeat(U *self, Py_ssize_t n)
+     PyObject *list = toSequence<U>(self);
+ 
+     if (list != NULL &&
+-        PyList_Type.tp_as_sequence->sq_inplace_repeat(list, n) < 0)
++        PyList_Type.tp_as_sequence->sq_inplace_repeat(list, n) == NULL)
+     {
+         Py_DECREF(list);
+         return NULL;



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