# Copyright 2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="An Erlang/Yaws MVC web development framework." HOMEPAGE="http://erlyweb.org" SRC_URI="http://erlyweb.org/${P}.zip" LICENSE="MIT" SLOT="0" KEYWORDS="~x86" IUSE="doc source" COMMON_DEP=">=dev-lang/erlang-11.2.1" DEPEND="${COMMON_DEP} app-arch/unzip" RDEPEND="${COMMON_DEP} >=www-servers/yaws-1.68" src_compile() { rm ebin/* sed -i s%/usr/local/src/yaws/include%/usr/lib/yaws/include% Emakefile sh make.sh || die "make.sh failed" } src_install() { # binaries dodir /usr/lib/erlang/lib/${P}/ebin insinto /usr/lib/erlang/lib/${P}/ebin doins ebin/* # documentation dodoc README.txt CHANGELOG.txt if use doc ; then dohtml doc/* fi # source code if use source ; then dodir /usr/lib/erlang/lib/${P}/src insinto /usr/lib/erlang/lib/${P}/src doins src/* fi } pkg_postinst() { einfo "To create a new erlyweb app, start yaws in interactive mode and run" einfo "'erlyweb:create_app(\"foo\", \"/your/apps/dir\").'." }