aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorclsung <clsung@FreeBSD.org>2008-05-19 13:21:51 +0800
committerclsung <clsung@FreeBSD.org>2008-05-19 13:21:51 +0800
commite65f21745e950d62a5af61cbc4dffe9ca039cf8b (patch)
tree53c4725ad60cdb275d86f1812c1ecacb3e72d030 /devel
parenta099747831b48a67e166ddf21b6f28933df4e773 (diff)
downloadfreebsd-ports-gnome-e65f21745e950d62a5af61cbc4dffe9ca039cf8b.tar.gz
freebsd-ports-gnome-e65f21745e950d62a5af61cbc4dffe9ca039cf8b.tar.zst
freebsd-ports-gnome-e65f21745e950d62a5af61cbc4dffe9ca039cf8b.zip
JCC is a C++ code generator for producing the glue code necessary to call
into Java classes from CPython via Java's Native Invocation Interface (JNI). JCC generates C++ wrapper classes that hide all the gory details of JNI access as well Java memory and object reference management. JCC generates CPython types that make these C++ classes accessible from a Python interpreter. JCC attempts to make these Python types pythonic by detecting iterators and property accessors. Iterators and mappings may also be declared to JCC. WWW: http://pypi.python.org/pypi/JCC/
Diffstat (limited to 'devel')
-rw-r--r--devel/Makefile1
-rw-r--r--devel/py-jcc/Makefile31
-rw-r--r--devel/py-jcc/distinfo3
-rw-r--r--devel/py-jcc/pkg-descr12
-rw-r--r--devel/py-jcc/pkg-plist26
5 files changed, 73 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 7670f0787b20..f446e773864c 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -2034,6 +2034,7 @@
SUBDIR += py-ice
SUBDIR += py-instant
SUBDIR += py-istring
+ SUBDIR += py-jcc
SUBDIR += py-json-py
SUBDIR += py-kid
SUBDIR += py-kjbuckets
diff --git a/devel/py-jcc/Makefile b/devel/py-jcc/Makefile
new file mode 100644
index 000000000000..2b631a2dc276
--- /dev/null
+++ b/devel/py-jcc/Makefile
@@ -0,0 +1,31 @@
+# New ports collection makefile for: jcc
+# Date created: 16 May 2008
+# Whom: clsung@FreeBSD.org
+#
+# $FreeBSD$
+#
+
+PORTNAME= jcc
+PORTVERSION= 1.9
+CATEGORIES= devel java python
+MASTER_SITES= CHEESESHOP
+MASTER_SITE_SUBDIR= source/J/JCC
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTNAME= JCC-${PORTVERSION}
+
+MAINTAINER= clsung@FreeBSD.org
+COMMENT= C++ code generator for calling Java from C++/Python
+
+USE_PYTHON= yes
+USE_PYDISTUTILS= yes
+PYDISTUTILS_PKGNAME= JCC
+USE_JAVA= yes
+JAVA_VERSION= 1.4+
+
+JCC_INCLUDES= '${JAVA_HOME}/include;${JAVA_HOME}/include/freebsd'
+JCC_CFLAGS= -pipe
+JCC_LFLAGS= '-L${JAVA_HOME}/jre/lib/${ARCH} -ljava'
+
+MAKE_ENV+= JCC_INCLUDES=${JCC_INCLUDES} JCC_CFLAGS=${JCC_CFLAGS} JCC_LFLAGS=${JCC_LFLAGS} JCC_ARGSEP=";"
+
+.include <bsd.port.mk>
diff --git a/devel/py-jcc/distinfo b/devel/py-jcc/distinfo
new file mode 100644
index 000000000000..2b83e0ca6d7b
--- /dev/null
+++ b/devel/py-jcc/distinfo
@@ -0,0 +1,3 @@
+MD5 (JCC-1.9.tar.gz) = 3e1ea01b4ed507632ad521c166a4d70a
+SHA256 (JCC-1.9.tar.gz) = d5c68413ad8f2dd2fa636eab8012279333352c7c9a42971cf41eaa9f0c7c793b
+SIZE (JCC-1.9.tar.gz) = 56698
diff --git a/devel/py-jcc/pkg-descr b/devel/py-jcc/pkg-descr
new file mode 100644
index 000000000000..9d2ef9469e3c
--- /dev/null
+++ b/devel/py-jcc/pkg-descr
@@ -0,0 +1,12 @@
+JCC is a C++ code generator for producing the glue code necessary to call
+into Java classes from CPython via Java's Native Invocation Interface (JNI).
+
+JCC generates C++ wrapper classes that hide all the gory details of JNI
+access as well Java memory and object reference management.
+
+JCC generates CPython types that make these C++ classes accessible from a
+Python interpreter. JCC attempts to make these Python types pythonic by
+detecting iterators and property accessors. Iterators and mappings may
+also be declared to JCC.
+
+WWW: http://pypi.python.org/pypi/JCC/
diff --git a/devel/py-jcc/pkg-plist b/devel/py-jcc/pkg-plist
new file mode 100644
index 000000000000..28c8a1fb0166
--- /dev/null
+++ b/devel/py-jcc/pkg-plist
@@ -0,0 +1,26 @@
+%%PYTHON_SITELIBDIR%%/jcc/__init__.py
+%%PYTHON_SITELIBDIR%%/jcc/__init__.pyc
+%%PYTHON_SITELIBDIR%%/jcc/__init__.pyo
+%%PYTHON_SITELIBDIR%%/jcc/_jcc.so
+%%PYTHON_SITELIBDIR%%/jcc/config.py
+%%PYTHON_SITELIBDIR%%/jcc/config.pyc
+%%PYTHON_SITELIBDIR%%/jcc/config.pyo
+%%PYTHON_SITELIBDIR%%/jcc/cpp.py
+%%PYTHON_SITELIBDIR%%/jcc/cpp.pyc
+%%PYTHON_SITELIBDIR%%/jcc/cpp.pyo
+%%PYTHON_SITELIBDIR%%/jcc/python.py
+%%PYTHON_SITELIBDIR%%/jcc/python.pyc
+%%PYTHON_SITELIBDIR%%/jcc/python.pyo
+%%PYTHON_SITELIBDIR%%/jcc/sources/JArray.h
+%%PYTHON_SITELIBDIR%%/jcc/sources/JCCEnv.cpp
+%%PYTHON_SITELIBDIR%%/jcc/sources/JCCEnv.h
+%%PYTHON_SITELIBDIR%%/jcc/sources/JObject.cpp
+%%PYTHON_SITELIBDIR%%/jcc/sources/JObject.h
+%%PYTHON_SITELIBDIR%%/jcc/sources/functions.cpp
+%%PYTHON_SITELIBDIR%%/jcc/sources/functions.h
+%%PYTHON_SITELIBDIR%%/jcc/sources/jcc.cpp
+%%PYTHON_SITELIBDIR%%/jcc/sources/jccfuncs.h
+%%PYTHON_SITELIBDIR%%/jcc/sources/macros.h
+%%PYTHON_SITELIBDIR%%/jcc/sources/types.cpp
+@dirrm %%PYTHON_SITELIBDIR%%/jcc/sources
+@dirrm %%PYTHON_SITELIBDIR%%/jcc