diff options
author | Keri Harris <keri@gentoo.org> | 2010-10-22 23:54:39 +0000 |
---|---|---|
committer | Keri Harris <keri@gentoo.org> | 2010-10-22 23:54:39 +0000 |
commit | 6a3ac53caf0bdc750df626013bed2d113cd30c73 (patch) | |
tree | 50cd3ae3311c1eb68ed728a6a09db63c250dd2e5 | |
parent | New upstream release, bug #342067 (diff) | |
download | gentoo-2-6a3ac53caf0bdc750df626013bed2d113cd30c73.tar.gz gentoo-2-6a3ac53caf0bdc750df626013bed2d113cd30c73.tar.bz2 gentoo-2-6a3ac53caf0bdc750df626013bed2d113cd30c73.zip |
Install non-compilable packages
(Portage version: 2.1.8.3/cvs/Linux x86_64)
-rw-r--r-- | dev-lang/mercury-extras/ChangeLog | 7 | ||||
-rw-r--r-- | dev-lang/mercury-extras/mercury-extras-10.04.2-r1.ebuild | 162 |
2 files changed, 168 insertions, 1 deletions
diff --git a/dev-lang/mercury-extras/ChangeLog b/dev-lang/mercury-extras/ChangeLog index 98dd406211ba..7853fe5938b5 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.77 2010/10/10 05:32:54 keri Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/mercury-extras/ChangeLog,v 1.78 2010/10/22 23:54:39 keri Exp $ + +*mercury-extras-10.04.2-r1 (22 Oct 2010) + + 22 Oct 2010; <keri@gentoo.org> +mercury-extras-10.04.2-r1.ebuild: + Install non-compilable packages *mercury-extras-10.04.2 (10 Oct 2010) diff --git a/dev-lang/mercury-extras/mercury-extras-10.04.2-r1.ebuild b/dev-lang/mercury-extras/mercury-extras-10.04.2-r1.ebuild new file mode 100644 index 000000000000..5c6a813da912 --- /dev/null +++ b/dev-lang/mercury-extras/mercury-extras-10.04.2-r1.ebuild @@ -0,0 +1,162 @@ +# 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.2-r1.ebuild,v 1.1 2010/10/22 23:54:39 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 ssl tcl tk xml" + +DEPEND="~dev-lang/mercury-${PV} + glut? ( media-libs/freeglut ) + 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:solver_types/library:" \ + -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/base64 + doins base64/*.m + + insinto /usr/share/doc/${PF}/samples/complex_numbers + doins complex_numbers/samples/* + + insinto /usr/share/doc/${PF}/samples/concurrency + doins concurrency/* + + insinto /usr/share/doc/${PF}/samples/dynamic_linking + doins dynamic_linking/hello.m + + insinto /usr/share/doc/${PF}/samples/error + doins error/* + + insinto /usr/share/doc/${PF}/samples/fixed + doins fixed/*.m + + insinto /usr/share/doc/${PF}/samples/gator + doins -r gator/* + + insinto /usr/share/doc/${PF}/samples/lex + doins lex/samples/* + + insinto /usr/share/doc/${PF}/samples/log4m + doins log4m/*.m + + insinto /usr/share/doc/${PF}/samples/moose + doins moose/samples/* + + insinto /usr/share/doc/${PF}/samples/net + doins net/*.m + + if use ncurses; then + insinto /usr/share/doc/${PF}/samples/curs + doins curs/samples/* + + insinto /usr/share/doc/${PF}/samples/curses + doins curses/sample/* + 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/* + doins graphics/samples/gears/* + doins graphics/samples/maze/* + doins graphics/samples/pent/* + fi + + if use opengl && use tcl && use tk; then + insinto /usr/share/doc/${PF}/samples/graphics + doins graphics/samples/pent/*.m + fi + + if use ssl; then + insinto /usr/share/doc/${PF}/samples/mopenssl + doins mopenssl/*.m + fi + fi + + rm -rf $(find "${D}"/usr/share/doc/${PF}/samples -name CVS) + + dodoc README +} |