Skip to content
Browse files

FL-528: dev-lang/boo import, patch by Kai Korla

  • Loading branch information...
1 parent 094630f commit 7f700c31f9693a65b05a9c1f2ce8f311b4504e5b @angryvincent angryvincent committed Apr 26, 2013
View
1 dev-lang/boo/Manifest
@@ -0,0 +1 @@
+DIST boo-0.9.4.9-src.tar.bz2 1934465 SHA256 089c7d9f6c6a957c69240281d245ee3ad44fea56c86307c2d4bc73a9cb984b4e SHA512 b571b13e762e9f5017b9d65cf113076240bcb9f2d5909996539831f4ff1d6679f6aa2857e3b376975f6e98ce136b88e4fcbfcb7614b5e506bd63cc6266ecf5fa WHIRLPOOL 98ddd9066b78df5f7a2f4f7b619607e0a0d3695b9bfae4ada8860e795ab1ab6531b0a841eb73892b589233f924f66301e9479d3d13b848d0f2b72595d8be090e
View
75 dev-lang/boo/boo-0.9.4.9.ebuild
@@ -0,0 +1,75 @@
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=2
+
+inherit multilib mono fdo-mime eutils
+
+DESCRIPTION="A wrist friendly language for the CLI"
+HOMEPAGE="http://boo.codehaus.org/"
+SRC_URI="http://dist.codehaus.org/boo/distributions/${P}-src.tar.bz2"
+LICENSE="BSD"
+
+SLOT="0"
+KEYWORDS="*"
+IUSE=""
+
+RDEPEND=">=dev-lang/mono-2.0
+ x11-libs/gtksourceview:2.0"
+DEPEND="${RDEPEND}
+ x11-misc/shared-mime-info
+ app-arch/unzip
+ >=dev-dotnet/nant-0.86_beta1"
+
+RESTRICT="test"
+
+pkg_setup() {
+ if /usr/bin/gacutil -l|grep Boo.Lang.Extensions &> /dev/null
+ then
+ eerror "$(best_version ${CATEGORY}/${PN}) has installed Boo.Lang.Extensions into the GAC."
+ eerror "This is a bug, that will cause compilation of ${CATEGORY}/${PF} to fail. It has"
+ eerror "been fixed in this version. For now, it requires that you uninstall"
+ eerror "${CATEGORY}/${PN} before updating."
+ eerror "Please run: emerge -C ${CATEGORY}/${PN} and try again."
+ die "Please run: emerge -C ${CATEGORY}/${PN} and try again."
+ fi
+
+ # gacutil may generate a root-owned directory in ${T} which makes nant fail afterwards (bug #269907)
+ rm -rf "${T}/.wapi"
+}
+
+src_prepare() {
+ sed -i -e 's@${libdir}/boo@${libdir}/mono/boo@g' \
+ extras/boo.pc.in || die
+ epatch "${FILESDIR}/${PN}-0.9.1.3287-GACproblems.patch"
+ epatch "${FILESDIR}/${PN}-0.7.8.2559-gtksourceview2.patch"
+ # FIX: https://bugs.gentoo.org/show_bug.cgi?id=435684
+ epatch "${FILESDIR}/${PN}-0.9.4.9-pt-fail.patch"
+}
+
+src_compile() {
+ nant -t:mono-2.0 \
+ -D:install.prefix=/usr \
+ -D:install.libdir=/usr/$(get_libdir) \
+ set-release-configuration all|| die "Compilation failed"
+}
+
+src_install() {
+ nant install -D:install.buildroot="${D}" \
+ -D:install.prefix="${D}"/usr \
+ -D:install.share="${D}"/usr/share \
+ -D:install.libdir="${D}"/usr/lib \
+ -D:install.bindir="${D}/usr/bin" \
+ -D:fakeroot.sharedmime="${D}"/usr \
+ -D:fakeroot.gsv="${D}"/usr \
+ || die "install failed"
+ rm -rf "${D}"/usr/share/gtksourceview-1.0 || die
+ mono_multilib_comply
+}
+
+pkg_postinst() {
+ fdo-mime_mime_database_update
+}
+
+pkg_postrm() {
+ fdo-mime_mime_database_update
+}
View
11 dev-lang/boo/files/boo-0.7.8.2559-gtksourceview2.patch
@@ -0,0 +1,11 @@
+--- boo-0.7.8.2559/default.build~ 2007-06-12 18:58:29.000000000 +0200
++++ boo-0.7.8.2559/default.build 2007-06-12 18:58:36.000000000 +0200
+@@ -504,7 +504,7 @@
+
+ <property name="sharedmime.prefix" value="${pkg-config::get-variable('shared-mime-info','prefix')}" />
+ <property name="fakeroot.sharedmime" value="${install.destdir}/${sharedmime.prefix}" />
+- <property name="gsv.prefix" value="${pkg-config::get-variable('gtksourceview-1.0','prefix')}" />
++ <property name="gsv.prefix" value="${pkg-config::get-variable('gtksourceview-2.0','prefix')}" />
+ <property name="fakeroot.gsv" value="${install.destdir}/${gsv.prefix}" />
+
+ <mkdir dir="${fakeroot.boolib}"/>
View
29 dev-lang/boo/files/boo-0.9.1.3287-GACproblems.patch
@@ -0,0 +1,29 @@
+diff -NrU5 boo-0.9.1.3287.orig/default.build boo-0.9.1.3287/default.build
+--- boo-0.9.1.3287.orig/default.build 2009-05-06 12:07:51.000000000 +0200
++++ boo-0.9.1.3287/default.build 2009-05-06 12:25:31.000000000 +0200
+@@ -561,17 +561,24 @@
+ <include name="*.exe"/>
+ <include name="*.rsp"/>
+ <include name="*.config"/>
+ <include name="*.targets"/>
+ <include name="*.Tasks.dll" />
++ <include name="Boo.Lang.Extensions.dll" />
+ </fileset>
+ </copy>
+
+ <foreach item="File" property="filename">
+ <in>
+ <items>
+- <include name="${build.dir}/Boo.Lang*.dll" />
++ <include name="${build.dir}/Boo.Lang.dll" />
++ <include name="${build.dir}/Boo.Lang.CodeDom.dll" />
++ <include name="${build.dir}/Boo.Lang.Compiler.dll" />
++ <include name="${build.dir}/Boo.Lang.Interpreter.dll" />
++ <include name="${build.dir}/Boo.Lang.Parser.dll" />
++ <include name="${build.dir}/Boo.Lang.PatternMatching.dll" />
++ <include name="${build.dir}/Boo.Lang.Useful.dll" />
+ </items>
+ </in>
+ <do>
+ <exec program="gacutil" useruntimeengine="false" workingdir="${build.dir}">
+ <arg value="/i" />
View
17 dev-lang/boo/files/boo-0.9.4.9-pt-fail.patch
@@ -0,0 +1,17 @@
+*** default.build 2011-01-20 13:25:04.000000000 +0100
+--- default.build 2013-04-22 11:16:57.070753922 +0200
+***************
+*** 612,623 ****
+ </exec>
+ </do>
+ </foreach>
+-
+- <copy todir="${fakeroot.boolib}/pt">
+- <fileset basedir="${build.dir}/pt">
+- <include name="*"/>
+- </fileset>
+- </copy>
+
+ <copy todir="${fakeroot.bindir}">
+ <fileset basedir="${build.dir}">
+--- 612,617 ----

0 comments on commit 7f700c3

Please sign in to comment.
Something went wrong with that request. Please try again.