diff options
author | Jurek Bartuszek <jurek@gentoo.org> | 2008-05-31 11:25:25 +0000 |
---|---|---|
committer | Jurek Bartuszek <jurek@gentoo.org> | 2008-05-31 11:25:25 +0000 |
commit | 7495ec72316cbe88cf9c4bd04d5c5b894d4f2bed (patch) | |
tree | 72ea07395a018fbdf5ee7feb77f6c53ca736deb7 /dev-lang/mono | |
parent | Added dev-lang/mono:moonlight local use flag description (diff) | |
download | historical-7495ec72316cbe88cf9c4bd04d5c5b894d4f2bed.tar.gz historical-7495ec72316cbe88cf9c4bd04d5c5b894d4f2bed.tar.bz2 historical-7495ec72316cbe88cf9c4bd04d5c5b894d4f2bed.zip |
dev-lang/mono-1.2.6-r3: Added moonlight USE flag support (bug #213381)
Package-Manager: portage-2.1.4.4
Diffstat (limited to 'dev-lang/mono')
-rw-r--r-- | dev-lang/mono/ChangeLog | 7 | ||||
-rw-r--r-- | dev-lang/mono/Manifest | 13 | ||||
-rw-r--r-- | dev-lang/mono/mono-1.2.6-r3.ebuild | 135 |
3 files changed, 153 insertions, 2 deletions
diff --git a/dev-lang/mono/ChangeLog b/dev-lang/mono/ChangeLog index 3f3151e4d1b9..fb8b811d9724 100644 --- a/dev-lang/mono/ChangeLog +++ b/dev-lang/mono/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-lang/mono # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/mono/ChangeLog,v 1.137 2008/05/19 09:48:24 drac Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/mono/ChangeLog,v 1.138 2008/05/31 11:25:25 jurek Exp $ + +*mono-1.2.6-r3 (31 May 2008) + + 31 May 2008; Jurek Bartuszek <jurek@gentoo.org> +mono-1.2.6-r3.ebuild: + Added moonlight USE flag support (bug #213381) 19 May 2008; Samuli Suominen <drac@gentoo.org> mono-1.1.16.1.ebuild: Move pkgconfig to DEPEND. diff --git a/dev-lang/mono/Manifest b/dev-lang/mono/Manifest index f8f05f317331..11998f80e319 100644 --- a/dev-lang/mono/Manifest +++ b/dev-lang/mono/Manifest @@ -1,3 +1,6 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + AUX mono-1.1.13-pathfix.diff 658 RMD160 855a6fc37cce70874024703061015f96654f0d0a SHA1 5b3d72d452d046f36c8c6921afc397945d86f5e3 SHA256 b185fb90134584a8f4be4f8180ae395ac74b73ff71cba7c76ddebdfd81254376 AUX mono-1.2.4-make-check.patch 8256 RMD160 d29fbb8944043ad39562099101ae6f4520f01ac7 SHA1 399fd8f2f9a8d9c36beac51c4284482088024ff4 SHA256 722c3b8da0bdbdc9a97f085ee334672a173f6550832036e735688c05ae383a2a AUX mono-1.2.4-pic.patch 515 RMD160 7e6b6bf1bf4279881f5b03135d22f1bf488bed61 SHA1 fa8b18dde84c4305341fafafc88cda725dded3b1 SHA256 daab8ca27e5530d688ba611870c62d558be122781776aed8c0ecd97a56465a63 @@ -22,6 +25,14 @@ EBUILD mono-1.2.5.1.ebuild 3583 RMD160 9069e018edd18945cc961dd0adf99e3e66de266a EBUILD mono-1.2.5.ebuild 3647 RMD160 cbe5ec8265f34589122f08b9a33665760a6e7344 SHA1 92c2e032eafcc01d3bc36012a2d3cc13e121c87b SHA256 0bfd7f811b94c1daa9597e4f9a25e683a91a4f7f10beeb305a71acd9f21218ee EBUILD mono-1.2.6-r1.ebuild 3720 RMD160 28a317b87f35738fc075246923ceca6dd6f9e14f SHA1 75d41791ed72f049be44a964de68cdcefa173280 SHA256 3a9cfbf979e4b322c18568540cd2bcd58a0870047f17eb2260e1f41de5c768ad EBUILD mono-1.2.6-r2.ebuild 3842 RMD160 9fe9f573186c7251496986722191791dbf258cdc SHA1 d2cfb9ee32c862b395e9e2fe74a2e1cb75938323 SHA256 8eacf7d7e853051ca4ee277c774fa6dead0969d90f13993e76e8a2c6e09b4fa2 +EBUILD mono-1.2.6-r3.ebuild 3917 RMD160 6c680c414a4741fbfe2e20dd5b6120561de8c46d SHA1 8b32f6ca403becc675713fe84fad202255988e24 SHA256 915c05b51344c249c821191adb48568d4516689eff4937e4b4992088f8dfc0eb EBUILD mono-1.2.6.ebuild 3570 RMD160 f8bb1f38515d8a48ba0a1c1498cfe9dcd0a48968 SHA1 d6983276047fc1bd6515926ed373af67b2087bd2 SHA256 362b9c4c5efeab2430086cd874d9bb99be3f37d59918f81565eaf3a0a3ba3635 -MISC ChangeLog 30246 RMD160 4ae7d6f98b3259d69d55b4ccd7c6ff30f6a1484a SHA1 6c58b5096bb4bfd33a52af237c72cdadd4ddeb53 SHA256 043c04c95982d02ba5f6d9c22f7ef0f55d33d1cb6a59030781845f649955bdbb +MISC ChangeLog 30400 RMD160 63d190a7a8f1ee9d3cfa61970c8d8fc826c7e02c SHA1 abf46ce103793c7e8a2ecdb7911c7f65ec54863f SHA256 509e4fac32b51b10ca7630eb2133697d8eb9735be27fdf3059629c5c7fd4e9b4 MISC metadata.xml 159 RMD160 41527b6d3fa74dfdcd619b7d91c478b72ecc8ae8 SHA1 ac19a418765e817e54d4c54c1992c9062d5dcf3e SHA256 986c3e2fa3baa5d6e8c0b5c27a2550601780d0cc7857f7f1c01523491706d909 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.9 (GNU/Linux) + +iEYEARECAAYFAkhBNa4ACgkQyOePD61SuWKuPACbB21cw03vHq8H2v0CbAZRcWsO +OcoAn3dGnPgtSkgcwhadlGD7jBHS5StK +=Vo3s +-----END PGP SIGNATURE----- diff --git a/dev-lang/mono/mono-1.2.6-r3.ebuild b/dev-lang/mono/mono-1.2.6-r3.ebuild new file mode 100644 index 000000000000..c9f89b19a1ca --- /dev/null +++ b/dev-lang/mono/mono-1.2.6-r3.ebuild @@ -0,0 +1,135 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/mono/mono-1.2.6-r3.ebuild,v 1.1 2008/05/31 11:25:25 jurek Exp $ + +inherit eutils flag-o-matic multilib autotools + +DESCRIPTION="Mono runtime and class libraries, a C# compiler/interpreter" +HOMEPAGE="http://www.go-mono.com" +SRC_URI="http://www.go-mono.com/sources/mono/${P}.tar.bz2" + +LICENSE="|| ( GPL-2 LGPL-2 X11 )" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~x86-fbsd" +IUSE="X moonlight nptl" + +RDEPEND="!<dev-dotnet/pnet-0.6.12 + >=dev-libs/glib-2.6 + nptl? ( >=sys-devel/gcc-3.3.5-r1 ) + ppc? ( + >=sys-devel/gcc-3.2.3-r4 + >=sys-libs/glibc-2.3.3_pre20040420 + ) + X? ( >=dev-dotnet/libgdiplus-1.2.4 )" +DEPEND="${RDEPEND} + sys-devel/bc + >=dev-util/pkgconfig-0.19" +PDEPEND="dev-dotnet/pe-format" + +# Parallel build unfriendly +MAKEOPTS="${MAKEOPTS} -j1" + +RESTRICT="test" + +function get-memory-total() { + cat /proc/meminfo | grep MemTotal | sed -r "s/[^0-9]*([[0-9]+).*/\1/" +} + +src_unpack() { + unpack ${A} + cd "${S}" + + # Fix the install path, install into $(libdir) + sed -i -e 's:$(prefix)/lib:$(libdir):' \ + -i -e 's:$(exec_prefix)/lib:$(libdir):' \ + -i -e "s:'mono_libdir=\${exec_prefix}/lib':\"mono_libdir=\$libdir\":" \ + "${S}"/{scripts,mono/metadata}/Makefile.am "${S}"/configure.in \ + || die "sed failed" + + sed -i -e 's:^libdir.*:libdir=@libdir@:' \ + -i -e 's:${prefix}/lib/:${libdir}/:g' \ + "${S}"/{scripts,}/*.pc.in \ + || die "sed failed" + + # Remove dummy ltconfig and let libtool handle it + rm -f "${S}"/libgc/ltconfig + + epatch "${FILESDIR}"/mono-biginteger_overflow.diff + + # Fixes bug #202358, see + # https://bugzilla.novell.com/show_bug.cgi?id=349952 + epatch "${FILESDIR}"/${P}-threads-types-private-prototypes.patch + + # Fixes bug #210429, see + # https://bugzilla.novell.com/show_bug.cgi?id=347359 + epatch "${FILESDIR}/${P}-bug-347359.patch" + + einfo "Regenerating the build files, this will take some time..." + eautoreconf +} + +src_compile() { + # mono's build system is finiky, strip the flags + strip-flags + + # Enable the 2.0 FX, use the system glib and the gc + local myconf="--with-preview=yes --with-glib=system --with-gc=included" + + # Threading support + if use amd64 || use nptl ; then + # force __thread on amd64 (bug #83770) + myconf="${myconf} --with-tls=__thread" + else + myconf="${myconf} --with-tls=pthread" + fi + + if use moonlight ; then + myconf="${myconf} --with-moonlight" + fi + + # Enable large heaps if memory is more than >=3GB + if [[ $(get-memory-total) -ge 3145728 ]] ; then + myconf="${myconf} --with-large-heap=yes" + fi + + # Force the use of monolite mcs to prevent issues with classlibs (bug #118062) + touch "${S}"/mcs/build/deps/use-monolite + + econf ${myconf} || die "configure failed" + emake EXTERNAL_MCS=false EXTERNAL_MONO=false + + if [[ "$?" -ne "0" ]]; then + ewarn "If you are using any hardening features such as" + ewarn "PIE+SSP/SELinux/grsec/PAX then most probably this is the reason" + ewarn "why build has failed. In this case turn any active security" + ewarn "enhancements off and try emerging the package again" + die + fi +} + +src_test() { + vecho ">>> Test phase [check]: ${CATEGORY}/${PF}" + + mkdir -p "${T}/home/mono" || die "mkdir home failed" + + export HOME="${T}/home/mono" + export XDG_CONFIG_HOME="${T}/home/mono" + export XDG_DATA_HOME="${T}/home/mono" + + if ! LC_ALL=C emake -j1 check; then + hasq test $FEATURES && die "Make check failed. See above for details." + hasq test $FEATURES || eerror "Make check failed. See above for details." + fi +} + +src_install() { + emake DESTDIR="${D}" install || die "install failed" + + dodoc AUTHORS ChangeLog NEWS README + + docinto docs + dodoc docs/* + + docinto libgc + dodoc libgc/ChangeLog +} |