# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-scheme/drscheme/drscheme-208.ebuild,v 1.1 2005/07/30 19:17:33 karltk Exp $ DESCRIPTION="DrScheme programming environment. Includes mzscheme." HOMEPAGE="http://www.plt-scheme.org/software/drscheme/" SRC_URI="http://download.plt-scheme.org/bundles/${PV}/plt/plt-${PV}-src-unix.tgz" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="x86 ppc" IUSE="opengl" DEPEND=">=sys-devel/gcc-2.95.3-r7 virtual/x11 opengl? ( virtual/opengl )" RDEPEND="virtual/x11 opengl? ( virtual/opengl )" S=${WORKDIR}/plt src_compile() { cd ${S}/src econf \ --prefix=/usr/share/drscheme/ || die "econf failed" make || die } mysed() { file=${D}/$1 mv ${file} ${file}.orig sed s.${D}./. < ${file}.orig> ${file} chmod a+x ${file} rm ${file}.orig } src_install () { dodir /usr/bin dodir /usr/share/drscheme cd ${S}/src sed -e 's/cp -p/cp/' Makefile > Makefile.new mv Makefile.new Makefile echo -e "n\n" | make prefix=${D}/usr/share/drscheme install || die dodoc README cd ${D}/usr/share/drscheme/man/man1 doman * rm -rf ${D}/usr/share/drscheme/man for x in drscheme games help-desk mzc \ setup-plt tex2page web-server web-server-monitor \ web-server-text do mysed /usr/share/drscheme/bin/${x} || die "Failed to patch ${x}" done cd ${D}/usr/share/drscheme/bin for x in * do dosym /usr/share/drscheme/bin/${x} /usr/bin/${x} done }