diff options
author | Keri Harris <keri@gentoo.org> | 2008-08-22 07:51:10 +0000 |
---|---|---|
committer | Keri Harris <keri@gentoo.org> | 2008-08-22 07:51:10 +0000 |
commit | 97e9b3ae5cdbc0383abe0c0c6530563fd37e8c89 (patch) | |
tree | 52c62ab4b65367795ad6f71cdc4c66cc05321a8e /dev-lang | |
parent | Mask GNOME-2.22 for arm in preparation of removing the global one (diff) | |
download | gentoo-2-97e9b3ae5cdbc0383abe0c0c6530563fd37e8c89.tar.gz gentoo-2-97e9b3ae5cdbc0383abe0c0c6530563fd37e8c89.tar.bz2 gentoo-2-97e9b3ae5cdbc0383abe0c0c6530563fd37e8c89.zip |
Support hlc.gc libgrade
(Portage version: 2.1.4.4)
Diffstat (limited to 'dev-lang')
4 files changed, 207 insertions, 3 deletions
diff --git a/dev-lang/mercury-extras/ChangeLog b/dev-lang/mercury-extras/ChangeLog index 07f355dccbf8..c1baa4371a40 100644 --- a/dev-lang/mercury-extras/ChangeLog +++ b/dev-lang/mercury-extras/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-lang/mercury-extras # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/mercury-extras/ChangeLog,v 1.64 2008/03/12 06:30:58 keri Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/mercury-extras/ChangeLog,v 1.65 2008/08/22 07:51:09 keri Exp $ + +*mercury-extras-0.13.1-r1 (22 Aug 2008) + + 22 Aug 2008; <keri@gentoo.org> +files/mercury-extras-0.13.1-iodbc.patch, + files/mercury-extras-0.13.1-odbc.patch, +mercury-extras-0.13.1-r1.ebuild: + Support hlc.gc libgrade. 12 Mar 2008; keri <keri@gentoo.org> mercury-extras-0.12.2-r2.ebuild, mercury-extras-0.13.1.ebuild: diff --git a/dev-lang/mercury-extras/files/mercury-extras-0.13.1-iodbc.patch b/dev-lang/mercury-extras/files/mercury-extras-0.13.1-iodbc.patch new file mode 100644 index 000000000000..0bfaea27f6f7 --- /dev/null +++ b/dev-lang/mercury-extras/files/mercury-extras-0.13.1-iodbc.patch @@ -0,0 +1,50 @@ +--- mercury-extras-0.13.1.orig/odbc/Mmakefile 2006-04-04 13:49:14.000000000 +1200 ++++ mercury-extras-0.13.1/odbc/Mmakefile 2008-08-22 19:26:52.000000000 +1200 +@@ -12,7 +12,7 @@ + # The driver manager. + # Legal values for MODBC_DRIVER are MODBC_IODBC, MODBC_UNIX, and MODBC_MS. + # Feel free to add more (and handle them in odbc.m). +-MODBC_DRIVER=MODBC_UNIX ++MODBC_DRIVER=MODBC_IODBC + + # The database. + # Legal values for MODBC_DB are MODBC_MYSQL and MODBC_SQL_SERVER. +@@ -36,22 +36,25 @@ + MLLIBS=-lodbc32 + else + #ODBC_LIB_DIR=$(IODBC_DIR)/lib +- #ODBC_INCL_DIR=$(IODBC_DIR)/include ++ ODBC_CFLAGS=`iodbc-config --cflags` + + # The following are for Debian. + + # for unixODBC +- MLLIBS=-lodbc -lpthread -lltdl -ldl ++ MLLIBS=`iodbc-config --libs` + + # for iODBC + # MLLIBS=-liodbc l-pthread -ldl + # note: on a DEC Alpha using OSF1 remove the -ldl. + endif + +-MAIN_TARGET=odbc_test ++MAIN_TARGET=libodbc + + .PHONY: depend +-depend: odbc_test.depend ++depend: odbc.depend ++ ++.PHONY: install ++install: libodbc.install + + .PHONY: check + check: +@@ -62,7 +65,7 @@ + # `--no-ansi' is needed because the ODBC header files include C++-style + # "//" comments. `--no-ansi' allows recognition of C++-style "//" comments, + # presuming you have gcc version 2.7.1 or greater. +-MGNUCFLAGS=--no-ansi -D$(MODBC_DRIVER) -D$(MODBC_DB) -I$(ODBC_INCL_DIR) ++MGNUCFLAGS=--no-ansi -D$(MODBC_DRIVER) -D$(MODBC_DB) $(ODBC_CFLAGS) + + #-----------------------------------------------------------------------------# + #-----------------------------------------------------------------------------# diff --git a/dev-lang/mercury-extras/files/mercury-extras-0.13.1-odbc.patch b/dev-lang/mercury-extras/files/mercury-extras-0.13.1-odbc.patch index 0acf03d28bd9..d8b8cc8205b0 100644 --- a/dev-lang/mercury-extras/files/mercury-extras-0.13.1-odbc.patch +++ b/dev-lang/mercury-extras/files/mercury-extras-0.13.1-odbc.patch @@ -1,6 +1,20 @@ --- mercury-extras-0.13.1.orig/odbc/Mmakefile 2006-04-04 13:49:14.000000000 +1200 -+++ mercury-extras-0.13.1/odbc/Mmakefile 2006-12-04 22:05:56.000000000 +1300 -@@ -48,10 +48,13 @@ ++++ mercury-extras-0.13.1/odbc/Mmakefile 2008-08-22 19:27:49.000000000 +1200 +@@ -36,22 +36,25 @@ + MLLIBS=-lodbc32 + else + #ODBC_LIB_DIR=$(IODBC_DIR)/lib +- #ODBC_INCL_DIR=$(IODBC_DIR)/include ++ ODBC_CFLAGS=`odbc_config --cflags` + + # The following are for Debian. + + # for unixODBC +- MLLIBS=-lodbc -lpthread -lltdl -ldl ++ MLLIBS=`odbc_config --libs` + + # for iODBC + # MLLIBS=-liodbc l-pthread -ldl # note: on a DEC Alpha using OSF1 remove the -ldl. endif @@ -16,3 +30,12 @@ .PHONY: check check: +@@ -62,7 +65,7 @@ + # `--no-ansi' is needed because the ODBC header files include C++-style + # "//" comments. `--no-ansi' allows recognition of C++-style "//" comments, + # presuming you have gcc version 2.7.1 or greater. +-MGNUCFLAGS=--no-ansi -D$(MODBC_DRIVER) -D$(MODBC_DB) -I$(ODBC_INCL_DIR) ++MGNUCFLAGS=--no-ansi -D$(MODBC_DRIVER) -D$(MODBC_DB) $(ODBC_CFLAGS) + + #-----------------------------------------------------------------------------# + #-----------------------------------------------------------------------------# diff --git a/dev-lang/mercury-extras/mercury-extras-0.13.1-r1.ebuild b/dev-lang/mercury-extras/mercury-extras-0.13.1-r1.ebuild new file mode 100644 index 000000000000..fc7462da2da0 --- /dev/null +++ b/dev-lang/mercury-extras/mercury-extras-0.13.1-r1.ebuild @@ -0,0 +1,125 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/mercury-extras/mercury-extras-0.13.1-r1.ebuild,v 1.1 2008/08/22 07:51:09 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="ftp://ftp.mercury.cs.mu.oz.au/pub/mercury/mercury-extras-0.13.1.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" + +IUSE="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 + + 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 +} + +src_compile() { + mmake \ + -j1 depend || die "mmake depend failed" + mmake \ + MMAKEFLAGS="${MAKEOPTS}" \ + EXTRA_MLFLAGS=--no-strip \ + || die "mmake failed" + + if use opengl && use tcl && use tk; then + cd "${S}"/graphics/mercury_opengl + cp ../mercury_tcltk/mtcltk.m ./ + mmake \ + -f Mmakefile.mtogl \ + -j1 depend || die "mmake depend mtogl failed" + mmake \ + MMAKEFLAGS="${MAKEOPTS}" \ + -f Mmakefile.mtogl \ + || die "mmake mtogl failed" + fi +} + +src_install() { + mmake \ + MMAKEFLAGS="${MAKEOPTS}" \ + INSTALL_PREFIX="${D}" \ + install || die "mmake install failed" + + if use opengl && use tcl && use tk; then + cd "${S}"/graphics/mercury_opengl + mv Mmakefile Mmakefile.opengl + mv Mmakefile.mtogl Mmakefile + mmake \ + MMAKEFLAGS="${MAKEOPTS}" \ + INSTALL_PREFIX="${D}" \ + install || die "mmake install mtogl failed" + fi + + find "${D}"/usr/lib/mercury-${PV} -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 + + 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 +} |