blob: b8d1aacdc8edd2856dd728d30b029ac04cdec9fa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# Copyright 1999-2006 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.4 2006/03/19 22:11:31 halcy0n 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="~ppc ~x86"
IUSE="doc"
RESTRICT="nomirror"
RDEPEND=">=dev-lang/mono-1.0
dev-dotnet/nant"
DEPEND="${RDEPEND}
app-arch/unzip"
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 -pPR 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/\""
}
|