diff options
author | Andres Loeh <kosmikus@gentoo.org> | 2004-04-12 12:44:23 +0000 |
---|---|---|
committer | Andres Loeh <kosmikus@gentoo.org> | 2004-04-12 12:44:23 +0000 |
commit | ef44558d48b0d332a404716b4a22a0773a0f8dfb (patch) | |
tree | 6bd5bdad8f3da0f405b2bf1e21e8d62364f144f4 /dev-haskell/wxhaskell | |
parent | Initial import (Manifest recommit) (diff) | |
download | gentoo-2-ef44558d48b0d332a404716b4a22a0773a0f8dfb.tar.gz gentoo-2-ef44558d48b0d332a404716b4a22a0773a0f8dfb.tar.bz2 gentoo-2-ef44558d48b0d332a404716b4a22a0773a0f8dfb.zip |
new wxhaskell version
Diffstat (limited to 'dev-haskell/wxhaskell')
-rw-r--r-- | dev-haskell/wxhaskell/ChangeLog | 7 | ||||
-rw-r--r-- | dev-haskell/wxhaskell/Manifest | 2 | ||||
-rw-r--r-- | dev-haskell/wxhaskell/files/digest-wxhaskell-0.7 | 1 | ||||
-rw-r--r-- | dev-haskell/wxhaskell/wxhaskell-0.7.ebuild | 86 |
4 files changed, 95 insertions, 1 deletions
diff --git a/dev-haskell/wxhaskell/ChangeLog b/dev-haskell/wxhaskell/ChangeLog index f68fb92ef6f3..0fd5c9f45666 100644 --- a/dev-haskell/wxhaskell/ChangeLog +++ b/dev-haskell/wxhaskell/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-haskell/wxhaskell # Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-haskell/wxhaskell/ChangeLog,v 1.2 2004/03/03 22:21:39 kosmikus Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-haskell/wxhaskell/ChangeLog,v 1.3 2004/04/12 12:44:23 kosmikus Exp $ + +*wxhaskell-0.7 (12 Apr 2004) + + 12 Apr 2004; Andres Loeh <kosmikus@gentoo.org> wxhaskell-0.7.ebuild: + New version. *wxhaskell-0.6-r1 (03 Mar 2004) diff --git a/dev-haskell/wxhaskell/Manifest b/dev-haskell/wxhaskell/Manifest index 1ff5f52d7b63..33e57338115f 100644 --- a/dev-haskell/wxhaskell/Manifest +++ b/dev-haskell/wxhaskell/Manifest @@ -1,6 +1,8 @@ +MD5 eae823f2dba7fdca2e77934af3835db4 wxhaskell-0.7.ebuild 2439 MD5 551c0176efd249a23dd105c11b9c11a3 wxhaskell-0.6-r1.ebuild 2408 MD5 389242ce3dad1f078960f26d85d69445 wxhaskell-0.6.ebuild 2278 MD5 a6b734840e74073a7d160c668985fe86 ChangeLog 572 MD5 a769ecfcd1cdd2d40986627df7dfb249 metadata.xml 224 MD5 3370d9be457b4e8fa9b80ec89b49f30b files/digest-wxhaskell-0.6 132 +MD5 6f249be5b808ef834f9ea740d68b12c4 files/digest-wxhaskell-0.7 66 MD5 2b3cf83262913705b98fae84eb4e5757 files/digest-wxhaskell-0.6-r1 66 diff --git a/dev-haskell/wxhaskell/files/digest-wxhaskell-0.7 b/dev-haskell/wxhaskell/files/digest-wxhaskell-0.7 new file mode 100644 index 000000000000..0e85880c7250 --- /dev/null +++ b/dev-haskell/wxhaskell/files/digest-wxhaskell-0.7 @@ -0,0 +1 @@ +MD5 d0a548857f7ae3ffcce97b22dfcb8206 wxhaskell-src-0.7.zip 524205 diff --git a/dev-haskell/wxhaskell/wxhaskell-0.7.ebuild b/dev-haskell/wxhaskell/wxhaskell-0.7.ebuild new file mode 100644 index 000000000000..f8207a155799 --- /dev/null +++ b/dev-haskell/wxhaskell/wxhaskell-0.7.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-haskell/wxhaskell/wxhaskell-0.7.ebuild,v 1.1 2004/04/12 12:44:23 kosmikus Exp $ + +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" + +IUSE="doc" + +DEPEND="${DEPEND} + >=virtual/ghc-6.2 + >=x11-libs/wxGTK-2.4.1 + doc? ( >=dev-haskell/haddock-0.6-r2 )" + +S=${WORKDIR}/${P} + +# the variable ghc_version is used to store the ghc version we are building against + +src_compile() { + # non-standard configure, so econf is not an option + mv configure configure.orig + # adapt to Gentoo path convention + sed -e 's:/doc/html:/share/doc/html:' \ + configure.orig > configure + # sed -e 's:test "$wxwinlib\":test "":' configure.orig > configure + chmod u+x ./configure + # determine ghc library directory + # (so that it's possible to install the library for + # multiple versions of ghc) + local myopts + ghc_version=`best_version virtual/ghc | sed "s:.*/::"` + test -n ${ghc_version} && ghclibdir="/usr/lib/${ghc_version}" + test -n ${ghclibdir} || ghclibdir="/usr/lib" + test -n ${ghclibdir} && myopts="${myopts} --libdir=${D}/${ghclibdir}" + ./configure \ + --prefix=${D}/usr \ + --hcpkg=/bin/true \ + --with-opengl \ + ${myopts} \ + || die "./configure failed" + # emake doesn't work + make || die "make failed" + # create documentation + if [ `use doc` ]; then + make doc || die "make doc failed" + fi +} + +src_install() { + local f + make install || die "make install failed" + for f in ${D}/usr/lib/${ghc_version}/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 +} + +pkg_postinst() { + einfo "Registering wxcore package" + wxhlibdir=${ghclibdir} ghc-pkg -u -i ${S}/config/wxcore.pkg + einfo "Registering wx package" + wxhlibdir=${ghclibdir} ghc-pkg -u -i ${S}/config/wx.pkg +} + +pkg_postrm() { + # check if another version is still there + has_version "<${CATEGORY}/${PF}" \ + || has_version ">${CATEGORY}/${PF}" \ + || unregister_ghc_packages +} + +unregister_ghc_packages() { + einfo "Unregistering wx package" + /usr/bin/ghc-pkg -r wx + einfo "Unregistering wxcore package" + /usr/bin/ghc-pkg -r wxcore +} + |