diff options
author | Lance Albertson <ramereth@gentoo.org> | 2005-06-11 20:27:50 +0000 |
---|---|---|
committer | Lance Albertson <ramereth@gentoo.org> | 2005-06-11 20:27:50 +0000 |
commit | c93c1661748d2c0e6a97b8c2e972b52139c95437 (patch) | |
tree | 2ce36dd2ca74e0373e5ae95600c5471ec5f01c38 /dev-dotnet | |
parent | fix to header (diff) | |
download | gentoo-2-c93c1661748d2c0e6a97b8c2e972b52139c95437.tar.gz gentoo-2-c93c1661748d2c0e6a97b8c2e972b52139c95437.tar.bz2 gentoo-2-c93c1661748d2c0e6a97b8c2e972b52139c95437.zip |
Initial commit for new package
(Portage version: 2.0.51.19)
Diffstat (limited to 'dev-dotnet')
7 files changed, 222 insertions, 0 deletions
diff --git a/dev-dotnet/mysql-connector-net/ChangeLog b/dev-dotnet/mysql-connector-net/ChangeLog new file mode 100644 index 000000000000..a7513890d581 --- /dev/null +++ b/dev-dotnet/mysql-connector-net/ChangeLog @@ -0,0 +1,12 @@ +# ChangeLog for dev-dotnet/mysql-connector-net +# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-dotnet/mysql-connector-net/ChangeLog,v 1.1 2005/06/11 20:27:50 ramereth Exp $ + +*mysql-connector-net-1.0.4 (11 Jun 2005) + + 11 Jun 2005; Lance Albertson <ramereth@gentoo.org> + +files/mysql-connector-net-1.0.4-assembly.patch, + +files/mysql-connector-net-1.0.4-fixes.patch, +metadata.xml, + +mysql-connector-net-1.0.4.ebuild: + Initial commit for new package + diff --git a/dev-dotnet/mysql-connector-net/Manifest b/dev-dotnet/mysql-connector-net/Manifest new file mode 100644 index 000000000000..393cb6587f32 --- /dev/null +++ b/dev-dotnet/mysql-connector-net/Manifest @@ -0,0 +1,6 @@ +MD5 78f78286b0c679b92fbb1ae359ee19e7 mysql-connector-net-1.0.4.ebuild 1444 +MD5 9f8fd2f1aed4550058fcd2781a5f2b62 metadata.xml 699 +MD5 e8c4b807fdfccdacf905c2b909bb19cd ChangeLog 411 +MD5 5ade217ee95b1a9bc23b9df56e4e1e63 files/mysql-connector-net-1.0.4-fixes.patch 4713 +MD5 6e7c20113717cbab7d8d1d11a629a21a files/digest-mysql-connector-net-1.0.4 84 +MD5 9ba1679abeaeecdcdf085f6abcd5ac08 files/mysql-connector-net-1.0.4-assembly.patch 422 diff --git a/dev-dotnet/mysql-connector-net/files/digest-mysql-connector-net-1.0.4 b/dev-dotnet/mysql-connector-net/files/digest-mysql-connector-net-1.0.4 new file mode 100644 index 000000000000..87552e6baf94 --- /dev/null +++ b/dev-dotnet/mysql-connector-net/files/digest-mysql-connector-net-1.0.4 @@ -0,0 +1 @@ +MD5 1cb9797c3bb3622c70b7a9b0e648a189 mysql-connector-net-1.0.4-noinstall.zip 707521 diff --git a/dev-dotnet/mysql-connector-net/files/mysql-connector-net-1.0.4-assembly.patch b/dev-dotnet/mysql-connector-net/files/mysql-connector-net-1.0.4-assembly.patch new file mode 100644 index 000000000000..e7437979e15c --- /dev/null +++ b/dev-dotnet/mysql-connector-net/files/mysql-connector-net-1.0.4-assembly.patch @@ -0,0 +1,10 @@ +--- mysql-connector-net-1.0.4-old/mysqlclient/AssemblyInfo.cs 2005-01-20 10:30:52.000000000 -0600 ++++ mysql-connector-net-1.0.4/mysqlclient/AssemblyInfo.cs 2005-05-03 17:11:11.000000000 -0500 +@@ -74,7 +74,5 @@ + // documentation for more information on this. + // + [assembly: AssemblyDelaySign(false)] +-#if FINAL + [assembly: AssemblyKeyFile(@"d:\work\connector-net\cnet.snk")] +-#endif + [assembly: AssemblyKeyName("")] diff --git a/dev-dotnet/mysql-connector-net/files/mysql-connector-net-1.0.4-fixes.patch b/dev-dotnet/mysql-connector-net/files/mysql-connector-net-1.0.4-fixes.patch new file mode 100644 index 000000000000..e4c49ce98f73 --- /dev/null +++ b/dev-dotnet/mysql-connector-net/files/mysql-connector-net-1.0.4-fixes.patch @@ -0,0 +1,119 @@ +diff -aurN mysql-connector-net-1.0.4-old/Client.build mysql-connector-net-1.0.4/Client.build +--- mysql-connector-net-1.0.4-old/Client.build 2005-01-20 10:56:06.000000000 -0600 ++++ mysql-connector-net-1.0.4/Client.build 2005-04-29 08:38:20.000000000 -0500 +@@ -32,11 +32,8 @@ +
+ <!-- builds the client on all supported frameworks -->
+ <target name="allframeworks">
+- <property name="framework" value="net-1.0"/>
+- <call target="client"/>
+- <property name="framework" value="net-1.1"/>
++ <property name="framework" value="mono-1.0"/>
+ <call target="client"/>
+- <call target="Docs"/>
+ </target>
+
+ <!-- core managed driver target -->
+@@ -44,14 +41,18 @@ + <property name="nant.settings.currentframework" value="${framework}"/>
+ <mkdir dir="bin/${framework}/${buildType}" failonerror="false"/>
+ <csc define="${defines}" output="bin/${framework}/${buildType}/MySql.Data.dll" target="library"
+- debug="${debug}" optimize="${opt}"
+- doc="bin/${framework}/${buildType}/MySql.Data.xml">
++ debug="${debug}" optimize="${opt}" >
+ <arg value="/nowarn:0679"/>
+ <references>
+ <include name="ICSharpCode.SharpZipLib.dll"/>
++ <include name="System.Data.dll"/>
++ <include name="System.dll"/>
++ <include name="Mono.Posix.dll"/>
++ <include name="System.Drawing.dll"/>
+ </references>
+ <sources refid="Source"/>
+ </csc>
++ <!--
+ <csc output="bin/${framework}/${buildType}/MySql.Data.Tests.dll" target="library" debug="${debug}" optimize="${opt}">
+ <arg value="/nowarn:0679"/>
+ <sources>
+@@ -61,7 +62,7 @@ + <include name="bin/${framework}/${buildType}/MySql.Data.dll"/>
+ <include name="${nunit}/nunit.framework.dll"/>
+ </references>
+- </csc>
++ </csc> -->
+ </target>
+
+ <!-- core managed driver target 1.0 -->
+@@ -75,10 +76,14 @@ + <property name="framework" value="net-1.1"/>
+ <call target="client"/>
+ </target>
+-
++
++ <target name="mono-1.0" description="1.0 Mono target">
++ <property name="framework" value="mono-1.0"/>
++ <call target="client"/>
++ </target>
+
+ <!-- testing targets -->
+- <target name="alltests" depends="test-net-1.1, test-net-1.0">
++ <target name="alltests" depends="test-net-1.1, test-net-1.0, test-mono-1.0">
+ </target>
+
+ <target name="test-net-1.1" depends="net-1.1">
+@@ -90,6 +95,12 @@ + <property name="framework" value="net-1.0"/>
+ <call target="testclient"/>
+ </target>
++
++ <target name="test-mono-1.0" depends="mono-1.0">
++ <property name="framework" value="mono-1.0"/>
++ <call target="testclient"/>
++ </target>
++
+
+ <!-- target to run the test suite -->
+ <target name="testclient" description="Target to run NUnit tests">
+diff -aurN mysql-connector-net-1.0.4-old/mysqlclient/SharedMemoryStream.cs mysql-connector-net-1.0.4/mysqlclient/SharedMemoryStream.cs +--- mysql-connector-net-1.0.4-old/mysqlclient/SharedMemoryStream.cs 2005-01-14 09:32:08.000000000 -0600 ++++ mysql-connector-net-1.0.4/mysqlclient/SharedMemoryStream.cs 2005-04-28 14:52:45.000000000 -0500 +@@ -43,7 +43,8 @@ +
+ private uint EVENT_ALL_ACCESS = 0x001F0003;
+ private uint FILE_MAP_WRITE = 0x2;
+- private int BUFFERLENGTH = 16004;
++ private int BUFFERLENGTH = 16004;
++ private uint BUFFERLENGTH_UINT = 16004;
+
+ public SharedMemoryStream(string memName)
+ {
+@@ -91,7 +92,7 @@ + string dataMemoryName = memoryName + "_" + connectNumber;
+ dataMap = OpenFileMapping( FILE_MAP_WRITE, false,
+ dataMemoryName + "_DATA" );
+- dataView = MapViewOfFile( dataMap, FILE_MAP_WRITE, 0, 0, (UIntPtr)BUFFERLENGTH );
++ dataView = MapViewOfFile( dataMap, FILE_MAP_WRITE, 0, 0, (UIntPtr)BUFFERLENGTH_UINT );
+
+ serverWrote = new AutoResetEvent(false);
+ serverWrote.Handle = OpenEvent( EVENT_ALL_ACCESS, false,
+@@ -151,7 +152,7 @@ + {
+ try
+ {
+- dataView = MapViewOfFile( dataMap, FILE_MAP_WRITE, 0, 0, (UIntPtr)BUFFERLENGTH );
++ dataView = MapViewOfFile( dataMap, FILE_MAP_WRITE, 0, 0, (UIntPtr)BUFFERLENGTH_UINT );
+ if (dataView == IntPtr.Zero) return true;
+ return false;
+ }
+diff -aurN mysql-connector-net-1.0.4-old/mysqlclient/common/StreamCreator.cs mysql-connector-net-1.0.4/mysqlclient/common/StreamCreator.cs +--- mysql-connector-net-1.0.4-old/mysqlclient/common/StreamCreator.cs 2005-01-12 17:09:34.000000000 -0600 ++++ mysql-connector-net-1.0.4/mysqlclient/common/StreamCreator.cs 2005-04-29 11:45:43.000000000 -0500 +@@ -103,7 +103,7 @@ + + try + { +- UnixEndPoint endPoint = new UnixEndPoint (hostList[0]); ++ UnixEndPoint endPoint = new UnixEndPoint (hostList); + socket.Connect (endPoint); + return new NetworkStream (socket, true); + } diff --git a/dev-dotnet/mysql-connector-net/metadata.xml b/dev-dotnet/mysql-connector-net/metadata.xml new file mode 100644 index 000000000000..872a2a4cddce --- /dev/null +++ b/dev-dotnet/mysql-connector-net/metadata.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>dotnet</herd> + <maintainer> + <email>ramereth@gentoo.org</email> + <name>Lance Albertson</name> + </maintainer> + <longdescription lang="en"> + MySQL Connector/Net enables developers to easily create .NET + applications that require secure, high-performance data connectivity + with MySQL. It implements the required ADO.NET interfaces and integrates + into ADO.NET aware tools. Developers can build applications using their + choice of .NET languages. MySQL Connector/Net is a fully-managed ADO.NET + driver written in 100% pure C#. + </longdescription> +</pkgmetadata> + diff --git a/dev-dotnet/mysql-connector-net/mysql-connector-net-1.0.4.ebuild b/dev-dotnet/mysql-connector-net/mysql-connector-net-1.0.4.ebuild new file mode 100644 index 000000000000..7ce533c648d9 --- /dev/null +++ b/dev-dotnet/mysql-connector-net/mysql-connector-net-1.0.4.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-dotnet/mysql-connector-net/mysql-connector-net-1.0.4.ebuild,v 1.1 2005/06/11 20:27:50 ramereth Exp $ + +inherit eutils multilib mono + +DESCRIPTION="MySql ADO.NET connector" +HOMEPAGE="http://www.mysql.com/products/connector/net/" +SRC_URI="mirror://mysql/Downloads/Connector-Net/${P}-noinstall.zip" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="doc" +RESTRICT="nomirror" + +DEPEND=">=dev-lang/mono-1.0 + dev-dotnet/nant" + +src_unpack() { + mkdir ${WORKDIR}/${P}; cd ${WORKDIR}/${P}; + unpack ${A}; cd ${S} + epatch ${FILESDIR}/mysql-connector-net-1.0.4-fixes.patch \ + ${FILESDIR}/mysql-connector-net-1.0.4-assembly.patch || die + sed -i 's:AssemblyKeyFile.*:AssemblyKeyFile(\@\"'${S}'\/\'${PN}'.key")]:' mysqlclient/AssemblyInfo.cs +} + +src_compile() { + # Generate signing key + ebegin "Generating a signed key" + sn -k ${PN}.key > /dev/null + eend + # Make dll + nant -t:mono-1.0 || die +} + +src_install() { + # Install dll into the GAC + ebegin "Installing dlls into the GAC" + gacutil -i bin/mono-1.0/release/MySql.Data.dll -root ${D}/usr/$(get_libdir) \ + -gacdir /usr/$(get_libdir) -package ${PN} > /dev/null + eend + + dodoc CHANGES README EXCEPTIONS + + if use doc; then + dodir /usr/share/doc/${PF}/samples + cp -a Samples/* ${D}/usr/share/doc/${PF}/samples/ + fi +} + +pkg_postinst() { + einfo "Adding the path for this connector in your mod_mono" + einfo "configuration may be needed:" + einfo "MonoPath \"/usr/lib/mono/1.0/mysql-connector-net/\"" +} |