summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Alfredsen <loki_val@gentoo.org>2009-04-05 12:39:46 +0000
committerPeter Alfredsen <loki_val@gentoo.org>2009-04-05 12:39:46 +0000
commitf1b8102a4e05e4d992c52c5fd24c5a4936f1bab1 (patch)
tree8a9977a18d968a714e1bf90e29c4c6141dcd8d6e /dev-dotnet/monotorrent
parentStable on alpha, bug #264173 (diff)
downloadhistorical-f1b8102a4e05e4d992c52c5fd24c5a4936f1bab1.tar.gz
historical-f1b8102a4e05e4d992c52c5fd24c5a4936f1bab1.tar.bz2
historical-f1b8102a4e05e4d992c52c5fd24c5a4936f1bab1.zip
Initial commit, ebuild by me.
Package-Manager: portage-2.2_rc28/cvs/Linux x86_64
Diffstat (limited to 'dev-dotnet/monotorrent')
-rw-r--r--dev-dotnet/monotorrent/ChangeLog10
-rw-r--r--dev-dotnet/monotorrent/Manifest6
-rw-r--r--dev-dotnet/monotorrent/files/mono.snkbin0 -> 596 bytes
-rw-r--r--dev-dotnet/monotorrent/files/monotorrent.pc.in8
-rw-r--r--dev-dotnet/monotorrent/metadata.xml5
-rw-r--r--dev-dotnet/monotorrent/monotorrent-0.70.ebuild48
6 files changed, 77 insertions, 0 deletions
diff --git a/dev-dotnet/monotorrent/ChangeLog b/dev-dotnet/monotorrent/ChangeLog
new file mode 100644
index 000000000000..197a23b4cf9d
--- /dev/null
+++ b/dev-dotnet/monotorrent/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for dev-dotnet/monotorrent
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-dotnet/monotorrent/ChangeLog,v 1.1 2009/04/05 12:39:45 loki_val Exp $
+
+*monotorrent-0.70 (05 Apr 2009)
+
+ 05 Apr 2009; Peter Alfredsen <loki_val@gentoo.org> +files/mono.snk,
+ +files/monotorrent.pc.in, +metadata.xml, +monotorrent-0.70.ebuild:
+ Initial commit, ebuild by me.
+
diff --git a/dev-dotnet/monotorrent/Manifest b/dev-dotnet/monotorrent/Manifest
new file mode 100644
index 000000000000..0a5ebb71299b
--- /dev/null
+++ b/dev-dotnet/monotorrent/Manifest
@@ -0,0 +1,6 @@
+AUX mono.snk 596 RMD160 bf19be5a57a300f1f54c8ab0466ec0b8532565f1 SHA1 9667c92d7c9009a6b7baf5815483ea8783d12581 SHA256 44a83944d57c37da4e7872967f1fd4b445af18cdcbe8d17a0e3f5e5ce553c78a
+AUX monotorrent.pc.in 159 RMD160 de5efebeeb059bdd1b7101a53f84e20e5af66d20 SHA1 e87063b2f5e09dd95900bcd1ae83820745c64fc6 SHA256 5a8a911bd21e5a79b5b5ba8e4ef0e2f5276e1d8200cf3f8fb57be6c1f2bb17ea
+DIST monotorrent-0.70.tar.gz 268345 RMD160 d81d09585ba57c7d3d54b4d7e28cfe548bce1d96 SHA1 137b0391137ee4d592f2c9f3adb1311d77032486 SHA256 1d80f86afd1e8670d08bd8c4cad8c4b7b2c23bdc0e87efdae04c731e98f129ff
+EBUILD monotorrent-0.70.ebuild 1401 RMD160 3ca116acbc1f29a364789112f986b174edf57eb3 SHA1 e6e04d05bf4a28fc6bcd287ded807a31dcbaa76b SHA256 363c05c84fbdc57863673de61051edb6abd8b9e65d7dd98fc019797525afc6d6
+MISC ChangeLog 424 RMD160 61eaee4793bb93f9fe1365d3900baae07caecd6d SHA1 0feeab8f5b3c8517e2f29b4893cd2c2506aae7f8 SHA256 94280b62ea843509b63f9114755a12a5b8ff049395f8969b72cd9a69c6c93a73
+MISC metadata.xml 160 RMD160 cc10b170ad63a746d8bdfbe5bf1bd9f7065922b8 SHA1 49eaf4246f7502850064d3806cce65d3a404ce1b SHA256 1bc3e313a948415fff0dfa63a5610943327146bfe16bfeca603379bf9706a687
diff --git a/dev-dotnet/monotorrent/files/mono.snk b/dev-dotnet/monotorrent/files/mono.snk
new file mode 100644
index 000000000000..380116c18fc3
--- /dev/null
+++ b/dev-dotnet/monotorrent/files/mono.snk
Binary files differ
diff --git a/dev-dotnet/monotorrent/files/monotorrent.pc.in b/dev-dotnet/monotorrent/files/monotorrent.pc.in
new file mode 100644
index 000000000000..33d48a810842
--- /dev/null
+++ b/dev-dotnet/monotorrent/files/monotorrent.pc.in
@@ -0,0 +1,8 @@
+prefix=${pcfiledir}/../..
+exec_prefix=${prefix}
+libdir=${exec_prefix}/@LIBDIR@
+
+Name: @PACKAGENAME@
+Description: @DESCRIPTION@
+Version: @VERSION@
+Libs: @LIBS@
diff --git a/dev-dotnet/monotorrent/metadata.xml b/dev-dotnet/monotorrent/metadata.xml
new file mode 100644
index 000000000000..e01adbb307db
--- /dev/null
+++ b/dev-dotnet/monotorrent/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>dotnet</herd>
+</pkgmetadata>
diff --git a/dev-dotnet/monotorrent/monotorrent-0.70.ebuild b/dev-dotnet/monotorrent/monotorrent-0.70.ebuild
new file mode 100644
index 000000000000..8405f903074b
--- /dev/null
+++ b/dev-dotnet/monotorrent/monotorrent-0.70.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-dotnet/monotorrent/monotorrent-0.70.ebuild,v 1.1 2009/04/05 12:39:45 loki_val Exp $
+
+EAPI=2
+
+inherit mono multilib
+
+DESCRIPTION="Monotorrent is an open source C# bittorrent library"
+HOMEPAGE="http://www.monotorrent.com/"
+SRC_URI="http://monotorrent.com/Files/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE=""
+RDEPEND=">=dev-lang/mono-2.0.1"
+DEPEND="${RDEPEND}
+ >=dev-util/pkgconfig-0.23"
+
+# The hack we do to get the dll installed in the GAC makes the unit-tests
+# defunct.
+RESTRICT="test"
+
+src_prepare() {
+ sed -i \
+ -e "/InternalsVisibleTo/d" \
+ MonoTorrent/AssemblyInfo.cs* || die
+}
+
+src_compile() {
+ emake -j1 ASSEMBLY_COMPILER_COMMAND="/usr/bin/gmcs -keyfile:${FILESDIR}/mono.snk"
+}
+
+src_install() {
+ egacinstall $(find . -name "MonoTorrent.dll")
+ dodir /usr/$(get_libdir)/pkgconfig
+ ebegin "Installing .pc file"
+ sed \
+ -e "s:@LIBDIR@:$(get_libdir):" \
+ -e "s:@PACKAGENAME@:${PN}:" \
+ -e "s:@DESCRIPTION@:${DESCRIPTION}:" \
+ -e "s:@VERSION@:${PV}:" \
+ -e 's;@LIBS@;-r:${libdir}/mono/monotorrent/MonoTorrent.dll;' \
+ "${FILESDIR}"/${PN}.pc.in > "${D}"/usr/$(get_libdir)/pkgconfig/${PN}.pc
+ PKG_CONFIG_PATH="${D}/usr/$(get_libdir)/pkgconfig/" pkg-config --exists monotorrent || die ".pc file failed to validate."
+ eend $?
+}