summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeri Harris <keri@gentoo.org>2010-08-22 06:25:20 +0000
committerKeri Harris <keri@gentoo.org>2010-08-22 06:25:20 +0000
commit46e9d27ceecb0b0f2be836f2d949fc996646194b (patch)
tree0b29ac4ad61e528b2de28b88a3eae92fffff61f2 /dev-lang
parentRespect LDFLAGS (diff)
downloadhistorical-46e9d27ceecb0b0f2be836f2d949fc996646194b.tar.gz
historical-46e9d27ceecb0b0f2be836f2d949fc996646194b.tar.bz2
historical-46e9d27ceecb0b0f2be836f2d949fc996646194b.zip
Respect LDFLAGS
Package-Manager: portage-2.1.8.3/cvs/Linux x86_64
Diffstat (limited to 'dev-lang')
-rw-r--r--dev-lang/mercury-extras/ChangeLog7
-rw-r--r--dev-lang/mercury-extras/Manifest3
-rw-r--r--dev-lang/mercury-extras/mercury-extras-10.04-r1.ebuild133
3 files changed, 141 insertions, 2 deletions
diff --git a/dev-lang/mercury-extras/ChangeLog b/dev-lang/mercury-extras/ChangeLog
index 1f570422f76c..35b23143a5aa 100644
--- a/dev-lang/mercury-extras/ChangeLog
+++ b/dev-lang/mercury-extras/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-lang/mercury-extras
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/mercury-extras/ChangeLog,v 1.73 2010/07/23 21:48:25 keri Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/mercury-extras/ChangeLog,v 1.74 2010/08/22 06:25:20 keri Exp $
+
+*mercury-extras-10.04-r1 (22 Aug 2010)
+
+ 22 Aug 2010; <keri@gentoo.org> +mercury-extras-10.04-r1.ebuild:
+ Respect LDFLAGS
23 Jul 2010; <keri@gentoo.org> mercury-extras-10.04.ebuild,
files/mercury-extras-10.04-lex.patch,
diff --git a/dev-lang/mercury-extras/Manifest b/dev-lang/mercury-extras/Manifest
index 0e887221630c..d62fe806ac73 100644
--- a/dev-lang/mercury-extras/Manifest
+++ b/dev-lang/mercury-extras/Manifest
@@ -31,7 +31,8 @@ DIST mercury-extras-0.13.1.tar.gz 688974 RMD160 d14aeeefe29a2bc6ae59d174043a1880
DIST mercury-extras-10.04-beta.tar.gz 713626 RMD160 d4a4e04e6fef80af430006ad3d20e94d3fc82e61 SHA1 a9efcc59ffc0104d6ceb821daa1dfca08fb83e1a SHA256 34040ca9eb85acee4409a15d3e11d5a6b2ad12f9ef8cb41776754aaf49a8abcd
DIST mercury-extras-10.04.tar.gz 706376 RMD160 988e17736ace555916b452a5f22b3d8f67ad6b4e SHA1 22cb6eb10bd6a4d17605217fe97f8718b8dfbbb4 SHA256 408d0a428b8d15934d5b7f5bd3e2139807fb2eb0a7f58d125c8490456445814b
EBUILD mercury-extras-0.13.1-r1.ebuild 3342 RMD160 9d7e9b6d40140fc59f5c7dfa25ebc091f7193ca8 SHA1 81ece0b057f2b72ae90c4f158d7ee19c3d6141c4 SHA256 d7088f207671007417e25319d31860883331b0243041d159a5da44fbc62c028b
+EBUILD mercury-extras-10.04-r1.ebuild 3628 RMD160 cab5a1787338fff841baebd2e1d8668e17dd2cd8 SHA1 c380bb462e676fefe310b5b01713229c653e4fd6 SHA256 4bb39801d28fabfe6ebb162c40c58df2947354278d0d21dd7386ca69da223d63
EBUILD mercury-extras-10.04.ebuild 3463 RMD160 e7f6e03a106959b04ea17766465aec23b00395c0 SHA1 a960b50c459e1599f484d8fac781c592d6d95705 SHA256 7442af287ee93583c469ef766f63a5c4c0ad82104995915a656ad3235c53849b
EBUILD mercury-extras-10.04_beta1.ebuild 3564 RMD160 52cad5cc67e98fbbd7f4fba943f70598d816467a SHA1 019089411cbc73fa5ebc14fbb2975e18752806c9 SHA256 dda1b4340cf873f160c50b9b979bf9f5ba4dee138e23eb921d6445b9bfa1e861
-MISC ChangeLog 20124 RMD160 13d2ff8ec1777f42fa607acd3a912829a5e1261d SHA1 a76cf2a1f8bdd7c1785c7f6115d20fa6bb1ddb9a SHA256 072c27d36f859e948a2efc95d5aacfc9acfa0232a5f86ebff057bf857985385c
+MISC ChangeLog 20249 RMD160 1efd721a02a9038c6dd59ba052f436d467cc1c7d SHA1 164965fdde457c132e8d1a36c73ea84eda07fd56 SHA256 dfca1ae75a41b2179950a6dd16d07fbb04bdaa10097e05b85ad66fdd179877d5
MISC metadata.xml 247 RMD160 1b3df3c501d9a3b2e2651668be405677e8416397 SHA1 7b705a8a3368abab6ad31ea2fcb5e5db865d92b1 SHA256 2768d0688d443184194068497dcafb2e5d67521980cb46b7e8efc07d3900bcaa
diff --git a/dev-lang/mercury-extras/mercury-extras-10.04-r1.ebuild b/dev-lang/mercury-extras/mercury-extras-10.04-r1.ebuild
new file mode 100644
index 000000000000..723c092b4aad
--- /dev/null
+++ b/dev-lang/mercury-extras/mercury-extras-10.04-r1.ebuild
@@ -0,0 +1,133 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/mercury-extras/mercury-extras-10.04-r1.ebuild,v 1.1 2010/08/22 06:25:20 keri Exp $
+
+inherit eutils
+
+DESCRIPTION="Additional libraries and tools that are not part of the Mercury standard library"
+HOMEPAGE="http://www.cs.mu.oz.au/research/mercury/index.html"
+SRC_URI="http://www.mercury.cs.mu.oz.au/download/files/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+
+IUSE="X examples glut iodbc ncurses odbc opengl tcl tk xml"
+
+DEPEND="~dev-lang/mercury-${PV}
+ glut? ( virtual/glut )
+ odbc? ( dev-db/unixODBC )
+ iodbc? ( !odbc? ( dev-db/libiodbc ) )
+ ncurses? ( sys-libs/ncurses )
+ opengl? ( virtual/opengl )
+ tcl? ( tk? (
+ dev-lang/tcl
+ dev-lang/tk
+ x11-libs/libX11
+ x11-libs/libXmu ) )"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-curs.patch
+ epatch "${FILESDIR}"/${P}-dynamic-linking.patch
+ epatch "${FILESDIR}"/${P}-lex.patch
+ epatch "${FILESDIR}"/${P}-mercury_glut.patch
+ epatch "${FILESDIR}"/${P}-mercury_tcltk.patch
+ epatch "${FILESDIR}"/${P}-mercury_opengl.patch
+ epatch "${FILESDIR}"/${P}-posix.patch
+ epatch "${FILESDIR}"/${P}-no-java-grade-no-erlang-grade.patch
+
+ if use odbc; then
+ epatch "${FILESDIR}"/${P}-odbc.patch
+ elif use iodbc; then
+ epatch "${FILESDIR}"/${P}-iodbc.patch
+ fi
+
+ sed -i -e "s:posix:posix quickcheck:" \
+ -e "s:references::" \
+ -e "s:windows_installer_generator ::" Mmakefile
+
+ use glut && sed -i -e "s: lex : graphics/mercury_glut lex :" Mmakefile
+ use tcl && use tk && sed -i -e "s: lex : graphics/mercury_tcltk lex :" Mmakefile
+ use opengl && sed -i -e "s: lex : graphics/mercury_opengl lex :" Mmakefile
+
+ if use odbc || use iodbc; then
+ sed -i -e "s:moose:moose odbc:" Mmakefile
+ fi
+
+ ! use ncurses && sed -i -e "s:curs curses::" Mmakefile
+ ! use xml && sed -i -e "s:xml::" Mmakefile
+
+ sed -i -e "s:@libdir@:$(get_libdir):" \
+ dynamic_linking/Mmakefile posix/Mmakefile
+
+ # disable broken packages
+ sed -i -e "s:lazy_evaluation ::" \
+ -e "s:quickcheck::" Mmakefile
+}
+
+src_compile() {
+ # Mercury dependency generation must be run single-threaded
+ mmake \
+ -j1 depend || die "mmake depend failed"
+
+ mmake \
+ MMAKEFLAGS="${MAKEOPTS}" \
+ EXTRA_MLFLAGS=--no-strip \
+ EXTRA_LDFLAGS="${LDFLAGS}" \
+ EXTRA_LD_LIBFLAGS="${LDFLAGS}" \
+ || die "mmake failed"
+}
+
+src_install() {
+ mmake \
+ MMAKEFLAGS="${MAKEOPTS}" \
+ EXTRA_LD_LIBFLAGS="${LDFLAGS}" \
+ INSTALL_PREFIX="${D}"/usr \
+ install || die "mmake install failed"
+
+ find "${D}"/usr/$(get_libdir)/mercury -type l | xargs rm
+
+ cd "${S}"
+ if use examples; then
+ insinto /usr/share/doc/${PF}/samples/complex_numbers
+ doins complex_numbers/samples/*.m
+
+ if use ncurses; then
+ insinto /usr/share/doc/${PF}/samples/curs
+ doins curs/samples/*.m
+
+ insinto /usr/share/doc/${PF}/samples/curses
+ doins curses/sample/*.m
+ fi
+
+ if use X; then
+ insinto /usr/share/doc/${PF}/samples/graphics
+ doins graphics/easyx/samples/*.m
+ fi
+
+ if use glut && use opengl; then
+ insinto /usr/share/doc/${PF}/samples/graphics
+ doins graphics/samples/calc/*.m
+ doins graphics/samples/gears/*.m
+ doins graphics/samples/maze/*.m
+ fi
+
+ if use opengl && use tck && use tk; then
+ insinto /usr/share/doc/${PF}/samples/graphics
+ doins graphics/samples/pent/*.m
+ fi
+
+ insinto /usr/share/doc/${PF}/samples/dynamic_linking
+ doins dynamic_linking/hello.m
+
+ insinto /usr/share/doc/${PF}/samples/lex
+ doins lex/samples/*.m
+
+ insinto /usr/share/doc/${PF}/samples/moose
+ doins moose/samples/*.m moose/samples/*.moo
+ fi
+
+ dodoc README
+}