summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-dotnet')
-rw-r--r--dev-dotnet/ikvm/Manifest3
-rw-r--r--dev-dotnet/ikvm/ikvm-0.40.0.1.ebuild105
2 files changed, 108 insertions, 0 deletions
diff --git a/dev-dotnet/ikvm/Manifest b/dev-dotnet/ikvm/Manifest
index e26cf8d..a58ab50 100644
--- a/dev-dotnet/ikvm/Manifest
+++ b/dev-dotnet/ikvm/Manifest
@@ -3,7 +3,10 @@ AUX ikvm.pc.in 260 RMD160 bb18056213e45acb7c965df8f834e4a728c45dc6 SHA1 40e0280c
AUX script-template 53 RMD160 1fd479358804cf5b43b991d7ae72322de44f4a2d SHA1 bb035ad3d4e9694d9f72b3a82e870ae2a370ca4c SHA256 23c29b204e00546aced367ffdaa10d606b2c8e9ac94641a0ada23ee82e4b1e14
DIST classpath-0.95-stripped.zip 3217515 RMD160 d399f7a6aa1c70fefdefb3e4fd4ebb71bd8f45ef SHA1 8606522fad75b16752fdb4db6a7e7f09ad181183 SHA256 f2d386dedb3c4aa61fe21c84863e0899903dbc4628fdd95b855c067193ee0552
DIST ikvm-0.38.0.2.zip 14494478 RMD160 52989b33a1edbd09819492579a0b56382250f3fb SHA1 06a6be65979ecf997882fbc9166c9d125b48fc61 SHA256 95d63e2ed5e33da852ec213fe82e7e67e355a3680be6042344ed89db5a995c88
+DIST ikvm-0.40.0.1.zip 16046065 RMD160 ded51d7a5ea6dd34fceb22b768cebf2d25ac2288 SHA1 8f2c907096c948f4676e9e6e559e96c9655eed27 SHA256 369c19238ac2317f28814047aaaba0af7874758b8cf67985f08d6c0c4a12f941
+DIST openjdk6-b12-stripped-IKVM-0.40.zip 32290770 RMD160 f5f432041a2018acaa6b12bb062e95e6a6e85b3d SHA1 a2aa0508c60905552097b96bf392d496f04ee164 SHA256 16d53d4e7cb85cdacf7055e70d51030cc29a65cb27506ba64d9a2b9fe2b7d297
DIST openjdk6-b12-stripped.zip 31673517 RMD160 76a0dda04282a5dfc2066e84b5bcaafcd7352e98 SHA1 3c443c89d0c3e667080aa9682aadd4669a8d436d SHA256 d06b6dcc44b3782e23a22dbffed22daa6389b325dddc6995477101e9134987e7
EBUILD ikvm-0.38.0.2.ebuild 2673 RMD160 7e18fdfba7b91413110d3148d666ba1778968ea2 SHA1 47aedda069266fce55423fd8efbac10701cfed28 SHA256 141a8f266a7075ed52901c1305d2ab45121450261889574096cab9828e48f0c6
+EBUILD ikvm-0.40.0.1.ebuild 2711 RMD160 d7b9b2f71453532197c5b162634a3699a540f461 SHA1 66dcf81f62b43ecc0367c2d592d0ab409a146259 SHA256 0c13de3798b9cdf48bb90b4486723c2f846a64bcb0b228e12bd5a38ae64fccd9
MISC ChangeLog 3508 RMD160 18c4fa0a1b57bd264593d26c1fec3a0e0850799c SHA1 6955728c449511b1f47310ac139dc9ca553d2669 SHA256 0da2ff930fac7ba4b0b13107dba78c1bd61b9a3c58c4ccc2cc1bf39e80e6ad16
MISC metadata.xml 160 RMD160 cc10b170ad63a746d8bdfbe5bf1bd9f7065922b8 SHA1 49eaf4246f7502850064d3806cce65d3a404ce1b SHA256 1bc3e313a948415fff0dfa63a5610943327146bfe16bfeca603379bf9706a687
diff --git a/dev-dotnet/ikvm/ikvm-0.40.0.1.ebuild b/dev-dotnet/ikvm/ikvm-0.40.0.1.ebuild
new file mode 100644
index 0000000..b329aa0
--- /dev/null
+++ b/dev-dotnet/ikvm/ikvm-0.40.0.1.ebuild
@@ -0,0 +1,105 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-dotnet/ikvm/ikvm-0.36.0.11.ebuild,v 1.1 2008/11/30 10:48:36 loki_val Exp $
+
+EAPI=2
+
+inherit eutils mono multilib
+
+CLASSPATH_P="classpath-0.95"
+
+DESCRIPTION="Java VM for .NET"
+HOMEPAGE="http://www.ikvm.net/"
+SRC_URI="http://www.frijters.net/ikvm-0.40.0.1.zip
+ http://www.frijters.net/openjdk6-b12-stripped-IKVM-0.40.zip
+ mirror://sourceforge/${PN}/classpath-0.95-stripped.zip"
+LICENSE="as-is"
+
+SLOT="0"
+KEYWORDS=""
+#KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+RDEPEND=">=dev-lang/mono-2
+ dev-libs/glib"
+DEPEND="${RDEPEND}
+ !dev-dotnet/ikvm-bin
+ >=dev-dotnet/nant-0.85
+ >=virtual/jdk-1.6
+ app-arch/unzip
+ dev-util/pkgconfig"
+
+src_prepare() {
+ # Remove unneccesary executables and
+ # Windows-only libraries (bug #186837)
+ rm bin/{IKVM*dll,*.exe,JVM.DLL,ikvm-native.dll}
+
+ # We use javac instead of ecj because of
+ # memory related problems (see bug #183526)
+# sed -i \
+# -e 's#ecj#javac#' \
+# -e 's#-1.5#-J-mx384M -source 1.5#' \
+# classpath/classpath.build \
+# || die "sed failed"
+
+# sed -i -e 's:pkg-config --cflags:pkg-config --cflags --libs:' \
+# native/native.build || die "sed failed"
+
+}
+
+src_configure() {
+ :
+}
+
+src_compile() {
+ export XDG_DATA_DIRS="${T}"
+ nant -t:mono-2.0 signed || die "ikvm build failed"
+}
+
+generate_pkgconfig() {
+ ebegin "Generating .pc file"
+ local dll LSTRING="Libs:"
+ dodir "/usr/$(get_libdir)/pkgconfig"
+ cat <<- EOF -> "${D}/usr/$(get_libdir)/pkgconfig/${PN}.pc"
+ prefix=/usr
+ exec_prefix=\${prefix}
+ libdir=\${prefix}/$(get_libdir)
+ Name: IKVM.NET
+ Description: An implementation of Java for Mono and the Microsoft .NET Framework.
+ Version: ${PV}
+ EOF
+ for dll in "${S}"/bin/IKVM.*.dll
+ do
+ LSTRING="${LSTRING} -r:"'${libdir}'"/ikvm/${dll##*/}"
+ done
+ printf "${LSTRING}" >> "${D}/usr/$(get_libdir)/pkgconfig/${PN}.pc"
+ PKG_CONFIG_PATH="${D}/usr/$(get_libdir)/pkgconfig/" pkg-config --silence-errors --libs ikvm &> /dev/null
+ eend $?
+}
+
+
+src_install() {
+ local dll dllbase exe
+ insinto /usr/$(get_libdir)/${PN}
+ doins bin/*.exe bin/*.so
+
+ dodir /bin
+ for exe in bin/*.exe
+ do
+ exebase=${exe##*/}
+ ebegin "Generating wrapper for ${exebase} -> ${exebase%.exe}"
+ make_wrapper ${exebase%.exe} "mono /usr/$(get_libdir)/${PN}/${exebase}"
+ eend $? || die "Failed generating wrapper for ${exebase}"
+ done
+
+ generate_pkgconfig || die "generating .pc failed"
+
+ for dll in bin/IKVM.*.dll
+ do
+ dllbase=${dll##*/}
+ ebegin "Installing and registering ${dllbase}"
+ gacutil -i bin/${dllbase} -root "${D}"/usr/$(get_libdir) \
+ -gacdir /usr/$(get_libdir) -package IKVM &>/dev/null
+ eend $? || die "Failed installing ${dllbase}"
+ done
+}