diff options
author | Andres Loeh <kosmikus@gentoo.org> | 2005-02-26 14:48:05 +0000 |
---|---|---|
committer | Andres Loeh <kosmikus@gentoo.org> | 2005-02-26 14:48:05 +0000 |
commit | 8d18a7bf2e67ae1ff073b082a6208ba7e257f066 (patch) | |
tree | fa68fab5071b7ac59093e1e2002c680c00dc7c1d /dev-haskell/wxhaskell/wxhaskell-0.9.ebuild | |
parent | Added to ~ppc (diff) | |
download | historical-8d18a7bf2e67ae1ff073b082a6208ba7e257f066.tar.gz historical-8d18a7bf2e67ae1ff073b082a6208ba7e257f066.tar.bz2 historical-8d18a7bf2e67ae1ff073b082a6208ba7e257f066.zip |
New version 0.9. Marked 0.8-r1 stable on x86. Removed 0.6 versions.
Diffstat (limited to 'dev-haskell/wxhaskell/wxhaskell-0.9.ebuild')
-rw-r--r-- | dev-haskell/wxhaskell/wxhaskell-0.9.ebuild | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/dev-haskell/wxhaskell/wxhaskell-0.9.ebuild b/dev-haskell/wxhaskell/wxhaskell-0.9.ebuild new file mode 100644 index 000000000000..f8b70fea843f --- /dev/null +++ b/dev-haskell/wxhaskell/wxhaskell-0.9.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-haskell/wxhaskell/wxhaskell-0.9.ebuild,v 1.1 2005/02/26 14:48:05 kosmikus Exp $ + +inherit flag-o-matic wxwidgets ghc-package + +DESCRIPTION="a portable and native GUI library for Haskell" +HOMEPAGE="http://wxhaskell.sourceforge.net/" +SRC_URI="mirror://sourceforge/wxhaskell/${PN}-src-${PV}.zip" +LICENSE="wxWinLL-3" +SLOT="0" + +KEYWORDS="~x86 ~ppc ~amd64" + +IUSE="doc gtk2" + +DEPEND="${DEPEND} + >=virtual/ghc-6.2 + >=x11-libs/wxGTK-2.4.2-r2 + doc? ( >=dev-haskell/haddock-0.6-r2 )" + +src_unpack() { + unpack ${A} + # adapt to Gentoo path convention + sed -i 's:/doc/html:/share/doc/html:' ${S}/configure + # fix Makefile to respect CXXFLAGS + sed -i 's:^\(WXC-CXXFLAGS.*=\):\1\$(CXXFLAGS) :' ${S}/makefile +} + +src_compile() { + local wxconfig + ghc-setup-pkg + + #wxhaskell supports gtk or gtk2, but not unicode yet: + if ! use gtk2; then + need-wxwidgets gtk + else + need-wxwidgets gtk2 + fi + + [ "${ARCH}" = "amd64" ] && append-flags -fPIC + + # non-standard configure, so econf is not an option + wxconfig="${WX_CONFIG}" + # --wx-config must appear first according to configure file comments + ./configure \ + --wx-config=${wxconfig} \ + --prefix=${D}/usr \ + --with-opengl \ + --libdir=${D}/$(ghc-libdir) \ + --package-conf=${S}/$(ghc-localpkgconf) \ + || die "./configure failed" + + emake -j1 || die "make failed" + + # create documentation + if use doc; then + emake -j1 doc || die "make doc failed" + fi +} + +src_install() { + local f + emake -j1 install || die "make install failed" + for f in ${D}/$(ghc-libdir)/libwxc-*.so; do + mv ${f} ${D}/usr/lib + done + + if use doc; then + dohtml -A haddock -r out/doc/* + cp -r samples ${D}/usr/share/doc/${PF} + fi + + ghc-install-pkg +} |