# Copyright 2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="Mongrel2 is an application, language, and network architecture agnostic web server that focuses on web applications using modern browser technologies." HOMEPAGE="http://mongrel2.org/" SRC_URI="http://mongrel2.org/static/downloads/${P}.tar.bz2" LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~ppc ~sparc ~x86" IUSE="" RDEPEND="net-libs/zeromq dev-db/sqlite" src_unpack() { unpack ${A} cd ${S} sed -i s:^PREFIX?=/usr/local:PREFIX?=${D}usr: Makefile || die "sed Makefile failed" sed -i s:^PREFIX?=/usr/local:PREFIX?=${D}usr: tools/m2sh/Makefile || die "sed tools/m2sh/Makefile failed" cp "${FILESDIR}"/net.c ${S}/src/task/net.c || die "cp net.c failed" } src_install() { emake DESTDIR="${D}" install || die "emake install failed." dodir /usr/share/doc/${P}/ cp -r ${S}/examples/ ${D}usr/share/doc/${P}/ || die "cp examples failed." }