From cc97a2417c07f8a768302f603dc27e81a3548351 Mon Sep 17 00:00:00 2001 From: Marcus von Appen Date: Fri, 12 Jul 2013 20:55:54 +0000 Subject: IronPython is an open-source implementation of the Python programming language which is tightly integrated with the .NET Framework. IronPython can use the .NET Framework and Python libraries, and other .NET languages can use Python code just as easily. WWW: http://www.ironpython.net --- lang/ironpython/Makefile | 49 ++++++++++++ lang/ironpython/distinfo | 2 + lang/ironpython/files/ipy.in | 2 + lang/ironpython/files/ipy64.in | 2 + ...nguages-IronPython-IronPython-IronPython.csproj | 47 ++++++++++++ .../files/patch-Solutions-Build.IronPython.proj | 88 ++++++++++++++++++++++ lang/ironpython/files/patch-Solutions-Common.proj | 18 +++++ lang/ironpython/pkg-descr | 6 ++ 8 files changed, 214 insertions(+) create mode 100644 lang/ironpython/Makefile create mode 100644 lang/ironpython/distinfo create mode 100644 lang/ironpython/files/ipy.in create mode 100644 lang/ironpython/files/ipy64.in create mode 100644 lang/ironpython/files/patch-Languages-IronPython-IronPython-IronPython.csproj create mode 100644 lang/ironpython/files/patch-Solutions-Build.IronPython.proj create mode 100644 lang/ironpython/files/patch-Solutions-Common.proj create mode 100644 lang/ironpython/pkg-descr (limited to 'lang/ironpython') diff --git a/lang/ironpython/Makefile b/lang/ironpython/Makefile new file mode 100644 index 000000000000..2533fb342910 --- /dev/null +++ b/lang/ironpython/Makefile @@ -0,0 +1,49 @@ +# $FreeBSD$ + +PORTNAME= ironpython +PORTVERSION= 2.7.3 +CATEGORIES= lang python +DISTNAME= ipy-${PORTVERSION} + +MAINTAINER= mva@FreeBSD.org +COMMENT= Python implementation based on .NET + +LICENSE= AL2 + +BUILD_DEPENDS= mono:${PORTSDIR}/lang/mono +RUN_DEPENDS= mono:${PORTSDIR}/lang/mono + +USE_GITHUB= yes +GH_ACCOUNT= IronLanguages +GH_PROJECT= main +GH_TAGNAME= ipy-2.7.3 +GH_COMMIT= 2ae9aee + +SUB_FILES= ipy ipy64 + +do-build: + cd ${WRKSRC} && ${LOCALBASE}/bin/xbuild /t:Stage \ + /p:Configuration=Release /p:ReferencedPlatform=V4 \ + /p:Mono=true /p:BaseConfiguration=Release + +do-install: + @${MKDIR} ${PREFIX}/lib/ironpython + cd ${WRKSRC}/Stage/Release/IronPython-${PORTVERSION} && \ + ${COPYTREE_SHARE} . ${PREFIX}/lib/ironpython; + ${CHMOD} a+x ${PREFIX}/lib/ironpython/ipy.exe + ${CHMOD} a+x ${PREFIX}/lib/ironpython/ipy64.exe + for f in ${SUB_FILES}; do \ + ${INSTALL_SCRIPT} ${WRKDIR}/$$f ${PREFIX}/bin; \ + done + +post-install: + @for f in ${SUB_FILES}; do \ + ${ECHO_CMD} "bin/$$f" >> ${TMPPLIST}; \ + done + @${ECHO_CMD} "bin/ + @${FIND} -P ${PREFIX}/lib/ironpython ! -type d 2>/dev/null | \ + ${SED} -ne 's,^${PREFIX}/,,p' >> ${TMPPLIST} + @${FIND} -P -d ${PREFIX}/lib/ironpython -type d 2>/dev/null | \ + ${SED} -ne 's,^${PREFIX}/,@dirrm ,p' >> ${TMPPLIST} + +.include diff --git a/lang/ironpython/distinfo b/lang/ironpython/distinfo new file mode 100644 index 000000000000..da92750aaffb --- /dev/null +++ b/lang/ironpython/distinfo @@ -0,0 +1,2 @@ +SHA256 (ipy-2.7.3.tar.gz) = c5c75cc54f4d8e006bfe8b9c61758804f5a31f179a3bc77eca0cc266b78207ef +SIZE (ipy-2.7.3.tar.gz) = 104866745 diff --git a/lang/ironpython/files/ipy.in b/lang/ironpython/files/ipy.in new file mode 100644 index 000000000000..bd9c295be6f9 --- /dev/null +++ b/lang/ironpython/files/ipy.in @@ -0,0 +1,2 @@ +#!/bin/sh +%%LOCALBASE%%/bin/mono %%PREFIX%%/lib/ironpython/ipy.exe $* diff --git a/lang/ironpython/files/ipy64.in b/lang/ironpython/files/ipy64.in new file mode 100644 index 000000000000..757f618b3cf7 --- /dev/null +++ b/lang/ironpython/files/ipy64.in @@ -0,0 +1,2 @@ +#!/bin/sh +%%LOCALBASE%%/bin/mono %%PREFIX%%/lib/ironpython/ipy64.exe $* diff --git a/lang/ironpython/files/patch-Languages-IronPython-IronPython-IronPython.csproj b/lang/ironpython/files/patch-Languages-IronPython-IronPython-IronPython.csproj new file mode 100644 index 000000000000..c15f60699972 --- /dev/null +++ b/lang/ironpython/files/patch-Languages-IronPython-IronPython-IronPython.csproj @@ -0,0 +1,47 @@ +--- ./Languages/IronPython/IronPython/IronPython.csproj.orig 2013-05-01 13:31:53.000000000 +0200 ++++ ./Languages/IronPython/IronPython/IronPython.csproj 2013-05-01 13:32:28.000000000 +0200 +@@ -13,35 +13,35 @@ + $(SolutionDir)..\bin\$(Configuration)\$(AssemblyName).xml + + +- 1591;0429 ++ 1591 + + +- 1591;0429 ++ 1591 + + +- 1591;0429 ++ 1591 + + +- 1591;0429 ++ 1591 + + +- 1591;0429 ++ 1591 + + +- 1591;0429 ++ 1591 + + +- 1591;0429 ++ 1591 + + + + + + +- 1591;0429 ++ 1591 + + +- 1591;0429 ++ 1591 + + + diff --git a/lang/ironpython/files/patch-Solutions-Build.IronPython.proj b/lang/ironpython/files/patch-Solutions-Build.IronPython.proj new file mode 100644 index 000000000000..1305575bf1a2 --- /dev/null +++ b/lang/ironpython/files/patch-Solutions-Build.IronPython.proj @@ -0,0 +1,88 @@ +--- Solutions/Build.IronPython.proj.orig 2012-07-04 09:16:08.000000000 +0200 ++++ Solutions/Build.IronPython.proj 2013-07-12 10:09:24.000000000 +0200 +@@ -37,9 +37,11 @@ + + Configuration=Silverlight5$(BaseConfiguration) + ++ + + ++ + + ++ + ++ + + + + ++ + ++ + ++ + + diff --git a/lang/ironpython/files/patch-Solutions-Common.proj b/lang/ironpython/files/patch-Solutions-Common.proj new file mode 100644 index 000000000000..813bf09d8ef6 --- /dev/null +++ b/lang/ironpython/files/patch-Solutions-Common.proj @@ -0,0 +1,18 @@ +--- Solutions/Common.proj.orig 2013-05-01 13:37:45.000000000 +0200 ++++ Solutions/Common.proj 2013-05-01 13:37:50.000000000 +0200 +@@ -147,7 +147,7 @@ + $(SolutionDir)..\bin\$(Configuration) + true + 618;429;219;1717;162;414 +- 1591;1584;1574;444;1685;1573 ++ 1591;1584;1574;1685;1573;436 + prompt + 4 + AnyCPU +@@ -467,4 +467,4 @@ + False + + +- +\ No newline at end of file ++ diff --git a/lang/ironpython/pkg-descr b/lang/ironpython/pkg-descr new file mode 100644 index 000000000000..d884d3ff9cf5 --- /dev/null +++ b/lang/ironpython/pkg-descr @@ -0,0 +1,6 @@ +IronPython is an open-source implementation of the Python programming +language which is tightly integrated with the .NET Framework. IronPython +can use the .NET Framework and Python libraries, and other .NET languages +can use Python code just as easily. + +WWW: http://www.ironpython.net -- cgit v1.2.3