# 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-209.ebuild,v 1.4 2005/12/24 15:19:08 hansmi 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="ppc x86" IUSE="" DEPEND="virtual/x11 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 background-help-desk drscheme games help-desk mzc \ setup-plt tex2page web-server web-server-monitor \ web-server-text do mysed /usr/share/drscheme/bin/${x} done cd ${D}/usr/share/drscheme/bin for x in * do dosym /usr/share/drscheme/bin/${x} /usr/bin/${x} done }