Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Aug 2016 09:09:56 +0000 (UTC)
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r419677 - in head/devel: . shedskin
Message-ID:  <201608050909.u7599uKj079085@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danfe
Date: Fri Aug  5 09:09:56 2016
New Revision: 419677
URL: https://svnweb.freebsd.org/changeset/ports/419677

Log:
  Add a port of Shed Skin, an experimental compiler that can translate pure,
  but implicitly statically typed Python programs into optimized C++.
  
  While here, sort entries in `devel/Makefile' (once again).
  
  PR:	211572

Added:
  head/devel/shedskin/
  head/devel/shedskin/Makefile   (contents, props changed)
  head/devel/shedskin/distinfo   (contents, props changed)
  head/devel/shedskin/pkg-descr   (contents, props changed)
Modified:
  head/devel/Makefile

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Fri Aug  5 09:01:01 2016	(r419676)
+++ head/devel/Makefile	Fri Aug  5 09:09:56 2016	(r419677)
@@ -56,9 +56,9 @@
     SUBDIR += acsccid
     SUBDIR += activitymail
     SUBDIR += ada-util
-    SUBDIR += adaid
     SUBDIR += adabooch
     SUBDIR += adacurses
+    SUBDIR += adaid
     SUBDIR += adime
     SUBDIR += aegis
     SUBDIR += afay
@@ -4217,8 +4217,8 @@
     SUBDIR += py-lock_file
     SUBDIR += py-lockfile
     SUBDIR += py-log4py
-    SUBDIR += py-logbook
     SUBDIR += py-logan
+    SUBDIR += py-logbook
     SUBDIR += py-logilab-common
     SUBDIR += py-louie
     SUBDIR += py-lxml
@@ -5303,6 +5303,7 @@
     SUBDIR += sfml1
     SUBDIR += sgb
     SUBDIR += shapelib
+    SUBDIR += shedskin
     SUBDIR += shflags
     SUBDIR += shiboken
     SUBDIR += shmap
@@ -5317,8 +5318,8 @@
     SUBDIR += simian
     SUBDIR += simple_components
     SUBDIR += skalibs
-    SUBDIR += slibtool
     SUBDIR += slf4j
+    SUBDIR += slibtool
     SUBDIR += smack
     SUBDIR += smake
     SUBDIR += smc

Added: head/devel/shedskin/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/shedskin/Makefile	Fri Aug  5 09:09:56 2016	(r419677)
@@ -0,0 +1,39 @@
+# Created by: lightside <lightside@gmx.com>
+# $FreeBSD$
+
+PORTNAME=	shedskin
+PORTVERSION=	0.9.4
+DISTVERSIONPREFIX=	v
+CATEGORIES=	devel python
+
+MAINTAINER=	python@FreeBSD.org
+COMMENT=	Experimental (restricted) Python-to-C++ compiler
+
+LICENSE=	GPLv3 MIT BSD3CLAUSE
+LICENSE_COMB=	multi
+LICENSE_FILE_GPLv3=	${WRKSRC}/LICENSE
+
+RUN_DEPENDS=	${LOCALBASE}/lib/libgc.so:devel/boehm-gc \
+		${LOCALBASE}/lib/libpcre.so:devel/pcre
+
+USE_GITHUB=	yes
+
+USES=		python:2
+USE_PYTHON=	autoplist distutils
+NO_ARCH=	yes
+
+PORTEXAMPLES=	*
+
+OPTIONS_DEFINE=	EXAMPLES
+
+post-patch:
+	@${REINPLACE_CMD} -e '/^CC/s|g++|$$(CXX)| ; \
+		/^CCFLAGS/s|-O2 -march=native|$$(CXXFLAGS) -I${LOCALBASE}/include| ; \
+		/^LFLAGS/s|=|&-L${LOCALBASE}/lib |' \
+			${WRKSRC}/shedskin/FLAGS
+
+do-install-EXAMPLES-on:
+	(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} "${PORTEXAMPLES}" \
+		${STAGEDIR}${EXAMPLESDIR})
+
+.include <bsd.port.mk>

Added: head/devel/shedskin/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/shedskin/distinfo	Fri Aug  5 09:09:56 2016	(r419677)
@@ -0,0 +1,2 @@
+SHA256 (shedskin-shedskin-v0.9.4_GH0.tar.gz) = 955b4a4d33a2daa31ecd8dfe4e2ff610ae9101d90b6e484267d57d640d04d11d
+SIZE (shedskin-shedskin-v0.9.4_GH0.tar.gz) = 28241490

Added: head/devel/shedskin/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/shedskin/pkg-descr	Fri Aug  5 09:09:56 2016	(r419677)
@@ -0,0 +1,11 @@
+Shed Skin is an experimental compiler, that can translate pure, but implicitly
+statically typed Python (2.4-2.6) programs into optimized C++. It can generate
+stand-alone programs or extension modules that can be imported and used in
+larger Python programs.
+
+Besides the typing restriction, programs cannot freely use the Python standard
+library (although about 25 common modules, such as `random' and `re', are
+currently supported). Also, not all Python features, such as nested functions
+and variable numbers of arguments, are supported.
+
+WWW: http://shedskin.github.io/



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