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
This commit is contained in:
parent
97ef227365
commit
203f3f0f64
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=419677
4 changed files with 56 additions and 3 deletions
|
@ -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
|
||||
|
|
39
devel/shedskin/Makefile
Normal file
39
devel/shedskin/Makefile
Normal file
|
@ -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>
|
2
devel/shedskin/distinfo
Normal file
2
devel/shedskin/distinfo
Normal file
|
@ -0,0 +1,2 @@
|
|||
SHA256 (shedskin-shedskin-v0.9.4_GH0.tar.gz) = 955b4a4d33a2daa31ecd8dfe4e2ff610ae9101d90b6e484267d57d640d04d11d
|
||||
SIZE (shedskin-shedskin-v0.9.4_GH0.tar.gz) = 28241490
|
11
devel/shedskin/pkg-descr
Normal file
11
devel/shedskin/pkg-descr
Normal file
|
@ -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/
|
Loading…
Reference in a new issue