mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-30 05:40:06 +00:00
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
This commit is contained in:
parent
ac24cc8aa5
commit
cc97a2417c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=322866
@ -131,6 +131,7 @@
|
||||
SUBDIR += intel2gas
|
||||
SUBDIR += intercal
|
||||
SUBDIR += io
|
||||
SUBDIR += ironpython
|
||||
SUBDIR += itcl
|
||||
SUBDIR += jakarta-commons-jelly
|
||||
SUBDIR += jruby
|
||||
|
49
lang/ironpython/Makefile
Normal file
49
lang/ironpython/Makefile
Normal file
@ -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>
|
2
lang/ironpython/distinfo
Normal file
2
lang/ironpython/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (ipy-2.7.3.tar.gz) = c5c75cc54f4d8e006bfe8b9c61758804f5a31f179a3bc77eca0cc266b78207ef
|
||||
SIZE (ipy-2.7.3.tar.gz) = 104866745
|
2
lang/ironpython/files/ipy.in
Normal file
2
lang/ironpython/files/ipy.in
Normal file
@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
%%LOCALBASE%%/bin/mono %%PREFIX%%/lib/ironpython/ipy.exe $*
|
2
lang/ironpython/files/ipy64.in
Normal file
2
lang/ironpython/files/ipy64.in
Normal file
@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
%%LOCALBASE%%/bin/mono %%PREFIX%%/lib/ironpython/ipy64.exe $*
|
@ -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>
|
88
lang/ironpython/files/patch-Solutions-Build.IronPython.proj
Normal file
88
lang/ironpython/files/patch-Solutions-Build.IronPython.proj
Normal file
@ -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" />-->
|
18
lang/ironpython/files/patch-Solutions-Common.proj
Normal file
18
lang/ironpython/files/patch-Solutions-Common.proj
Normal file
@ -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>
|
6
lang/ironpython/pkg-descr
Normal file
6
lang/ironpython/pkg-descr
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user