aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authormva <mva@FreeBSD.org>2013-07-13 04:55:54 +0800
committermva <mva@FreeBSD.org>2013-07-13 04:55:54 +0800
commited8e0a1d45e64893cb3d7f7ff831221ea20cc1c4 (patch)
treed066c22eb08067b3d204ce9c7d13c627e721781d /lang
parente5e976ca06936d5e5e29a11e96c912a4d0c03c5d (diff)
downloadfreebsd-ports-gnome-ed8e0a1d45e64893cb3d7f7ff831221ea20cc1c4.tar.gz
freebsd-ports-gnome-ed8e0a1d45e64893cb3d7f7ff831221ea20cc1c4.tar.zst
freebsd-ports-gnome-ed8e0a1d45e64893cb3d7f7ff831221ea20cc1c4.zip
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
Diffstat (limited to 'lang')
-rw-r--r--lang/Makefile1
-rw-r--r--lang/ironpython/Makefile49
-rw-r--r--lang/ironpython/distinfo2
-rw-r--r--lang/ironpython/files/ipy.in2
-rw-r--r--lang/ironpython/files/ipy64.in2
-rw-r--r--lang/ironpython/files/patch-Languages-IronPython-IronPython-IronPython.csproj47
-rw-r--r--lang/ironpython/files/patch-Solutions-Build.IronPython.proj88
-rw-r--r--lang/ironpython/files/patch-Solutions-Common.proj18
-rw-r--r--lang/ironpython/pkg-descr6
9 files changed, 215 insertions, 0 deletions
diff --git a/lang/Makefile b/lang/Makefile
index 3baa96a077ef..b429e8fe38bd 100644
--- a/lang/Makefile
+++ b/lang/Makefile
@@ -131,6 +131,7 @@
SUBDIR += intel2gas
SUBDIR += intercal
SUBDIR += io
+ SUBDIR += ironpython
SUBDIR += itcl
SUBDIR += jakarta-commons-jelly
SUBDIR += jruby
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 <bsd.port.mk>
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 @@
+ <DocumentationFile>$(SolutionDir)..\bin\$(Configuration)\$(AssemblyName).xml</DocumentationFile>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'FxCop|AnyCPU' ">
+- <NoWarn>1591;0429</NoWarn>
++ <NoWarn>1591</NoWarn>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+- <NoWarn>1591;0429</NoWarn>
++ <NoWarn>1591</NoWarn>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+- <NoWarn>1591;0429</NoWarn>
++ <NoWarn>1591</NoWarn>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Win8Debug|AnyCPU' ">
+- <NoWarn>1591;0429</NoWarn>
++ <NoWarn>1591</NoWarn>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Win8Release|AnyCPU' ">
+- <NoWarn>1591;0429</NoWarn>
++ <NoWarn>1591</NoWarn>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'v2Debug|AnyCPU' ">
+- <NoWarn>1591;0429</NoWarn>
++ <NoWarn>1591</NoWarn>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'v2Release|AnyCPU' ">
+- <NoWarn>1591;0429</NoWarn>
++ <NoWarn>1591</NoWarn>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'WP7Debug|AnyCPU' ">
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'WP7Release|AnyCPU' ">
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Silverlight4Debug|AnyCPU' ">
+- <NoWarn>1591;0429</NoWarn>
++ <NoWarn>1591</NoWarn>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Silverlight4Release|AnyCPU' ">
+- <NoWarn>1591;0429</NoWarn>
++ <NoWarn>1591</NoWarn>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Silverlight5Debug|AnyCPU' ">
+ </PropertyGroup>
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 @@
+ <BuildProject Include="$(Solution)" Condition=" '$(Mono)' != 'true' ">
+ <Properties>Configuration=Silverlight5$(BaseConfiguration)</Properties>
+ </BuildProject>
++<!--
+ <BuildProject Include="$(Solution)">
+ <Properties>Configuration=Android$(BaseConfiguration)</Properties>
+ </BuildProject>
++-->
+ <!-- Removed because it doesn't currently work. -->
+ <!--<BuildProject Include="$(Solution)" Condition=" '$(Mono)' != 'true' ">
+ <Properties>Configuration=WP7$(BaseConfiguration)</Properties>
+@@ -94,7 +96,7 @@
+ <SilverlightScriptTemplates Include="$(BaseDir)\Hosts\Silverlight\Public\script\templates\python\**\*.*" />
+
+ <MiscFiles Include="$(BaseDir)\Languages\IronPython\Public\License.html" />
+- <MiscFiles Include="$(BaseDir)\Languages\IronPython\Public\License.rtf" />
++ <MiscFiles Include="$(BaseDir)\Languages\IronPython\Public\License.Rtf" />
+ <MiscFiles Include="$(BaseDir)\Languages\IronPython\Public\License.txt" />
+ <MiscFiles Include="$(BaseDir)\Languages\IronPython\Public\Readme.html" />
+
+@@ -162,6 +164,7 @@
+ <Copy SourceFiles="@(TutorialFiles)" DestinationFiles="@(TutorialFiles->'$(StageDir)\Tutorial\%(RecursiveDir)%(Filename)%(Extension)')" />
+
+ <!-- Continue to copy the Silverlight files here for compatibility with previous releases. -->
++<!--
+ <Copy SourceFiles="@(DlrLibs->'$(Silverlight4BuildDir)\%(Identity)')" DestinationFolder="$(StageDir)\Silverlight\bin" />
+ <Copy SourceFiles="@(SilverlightDlrLibs->'$(Silverlight4BuildDir)\%(Identity)')" DestinationFolder="$(StageDir)\Silverlight\bin" />
+ <Copy SourceFiles="@(IronPythonLibs->'$(Silverlight4BuildDir)\%(Identity)')" DestinationFolder="$(StageDir)\Silverlight\bin" />
+@@ -169,21 +172,24 @@
+
+ <Copy SourceFiles="@(SilverlightScriptFiles)" DestinationFiles="@(SilverlightScriptFiles->'$(StageDir)\Silverlight\script\%(RecursiveDir)%(Filename)%(Extension)')" />
+ <Copy SourceFiles="@(SilverlightScriptTemplates)" DestinationFiles="@(SilverlightScriptTemplates->'$(StageDir)\Silverlight\script\templates\python\%(RecursiveDir)%(Filename)%(Extension)')" />
++-->
+
+ <!-- .NET 4 -->
++<!--
+ <Copy SourceFiles="@(DlrLibs->'$(BuildDir)\%(Identity)')" DestinationFolder="$(StageDir)\Platforms\Net40" />
+ <Copy SourceFiles="@(ClrDlrLibs->'$(BuildDir)\%(Identity)')" DestinationFolder="$(StageDir)\Platforms\Net40" />
+ <Copy SourceFiles="@(IronPythonLibs->'$(BuildDir)\%(Identity)')" DestinationFolder="$(StageDir)\Platforms\Net40" />
+ <Copy SourceFiles="@(v4IronPythonModules->'$(BuildDir)\%(Identity)')" DestinationFolder="$(StageDir)\Platforms\Net40" />
+ <Copy SourceFiles="@(IronPythonModules->'$(BuildDir)\%(Identity)')" DestinationFolder="$(StageDir)\Platforms\Net40" />
+-
++-->
+ <!-- .NET 3.5 -->
++<!--
+ <Copy SourceFiles="@(DlrLibs->'$(v2BuildDir)\%(Identity)')" DestinationFolder="$(StageDir)\Platforms\Net35" />
+ <Copy SourceFiles="@(ClrDlrLibs->'$(v2BuildDir)\%(Identity)')" DestinationFolder="$(StageDir)\Platforms\Net35" />
+ <Copy SourceFiles="@(v2DlrLibs->'$(v2BuildDir)\%(Identity)')" DestinationFolder="$(StageDir)\Platforms\Net35" />
+ <Copy SourceFiles="@(IronPythonLibs->'$(v2BuildDir)\%(Identity)')" DestinationFolder="$(StageDir)\Platforms\Net35" />
+ <Copy SourceFiles="@(IronPythonModules->'$(v2BuildDir)\%(Identity)')" DestinationFolder="$(StageDir)\Platforms\Net35" />
+-
++-->
+ <!-- Windows Phone 7.5 -->
+ <!--
+ <Copy SourceFiles="@(DlrLibs->'$(WP7BuildDir)\%(Identity)')" DestinationFolder="$(StageDir)\Platforms\Sl4-WP71" />
+@@ -193,23 +199,26 @@
+ -->
+
+ <!-- Mono for Android -->
++<!--
+ <Copy SourceFiles="@(DlrLibs->'$(AndroidBuildDir)\%(Identity)')" DestinationFolder="$(StageDir)\Platforms\Android" />
+ <Copy SourceFiles="@(v2DlrLibs->'$(AndroidBuildDir)\%(Identity)')" DestinationFolder="$(StageDir)\Platforms\Android" />
+ <Copy SourceFiles="@(IronPythonLibs->'$(AndroidBuildDir)\%(Identity)')" DestinationFolder="$(StageDir)\Platforms\Android" />
+ <Copy SourceFiles="@(IronPythonModules->'$(AndroidBuildDir)\%(Identity)')" DestinationFolder="$(StageDir)\Platforms\Android" />
+-
++-->
+ <!-- Silverlight 4 -->
++<!--
+ <Copy SourceFiles="@(DlrLibs->'$(Silverlight4BuildDir)\%(Identity)')" DestinationFolder="$(StageDir)\Platforms\Sl4" />
+ <Copy SourceFiles="@(SilverlightDlrLibs->'$(Silverlight4BuildDir)\%(Identity)')" DestinationFolder="$(StageDir)\Platforms\Sl4" />
+ <Copy SourceFiles="@(IronPythonLibs->'$(Silverlight4BuildDir)\%(Identity)')" DestinationFolder="$(StageDir)\Platforms\Sl4" />
+ <Copy SourceFiles="@(IronPythonModules->'$(Silverlight4BuildDir)\%(Identity)')" DestinationFolder="$(StageDir)\Platforms\Sl4" />
+-
++-->
+ <!-- Silverlight 5 -->
++<!--
+ <Copy SourceFiles="@(DlrLibs->'$(Silverlight5BuildDir)\%(Identity)')" DestinationFolder="$(StageDir)\Platforms\Sl5" />
+ <Copy SourceFiles="@(SilverlightDlrLibs->'$(Silverlight5BuildDir)\%(Identity)')" DestinationFolder="$(StageDir)\Platforms\Sl5" />
+ <Copy SourceFiles="@(IronPythonLibs->'$(Silverlight5BuildDir)\%(Identity)')" DestinationFolder="$(StageDir)\Platforms\Sl5" />
+ <Copy SourceFiles="@(IronPythonModules->'$(Silverlight5BuildDir)\%(Identity)')" DestinationFolder="$(StageDir)\Platforms\Sl5" />
+-
++-->
+ <!-- Windows 8 "Metro" -->
+ <!--<Copy SourceFiles="@(DlrLibs->'$(BuildDir)\%(Identity)')" DestinationFolder="$(StageDir)\Platforms\Metro" />
+ <Copy SourceFiles="@(IronPythonLibs->'$(BuildDir)\%(Identity)')" DestinationFolder="$(StageDir)\Platforms\Metro" />-->
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 @@
+ <OutputPath>$(SolutionDir)..\bin\$(Configuration)</OutputPath>
+ <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
+ <WarningsNotAsErrors>618;429;219;1717;162;414</WarningsNotAsErrors>
+- <NoWarn>1591;1584;1574;444;1685;1573</NoWarn>
++ <NoWarn>1591;1584;1574;1685;1573;436</NoWarn>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <PlatformTarget>AnyCPU</PlatformTarget>
+@@ -467,4 +467,4 @@
+ <Private>False</Private>
+ </Reference>
+ </ItemGroup>
+-</Project>
+\ No newline at end of file
++</Project>
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