# Distributed under the terms of the GNU General Public License v2 EAPI="5" MY_PN=${PN/tengine-/} DESCRIPTION="Module that allows you to add, set, or clear any output or\ input header that you specify" HOMEPAGE="https://github.com/openresty/headers-more-nginx-module" SRC_URI="https://github.com/openresty/${MY_PN}-nginx-module/archive/v${PV}.tar.gz -> ${P}.tar.gz" RESTRICT="mirror" SLOT="0" LICENSE="BSD-2" KEYWORDS="*" IUSE="" RDEPEND="www-servers/tengine" DEPEND="${RDEPEND}" S="${WORKDIR}/${MY_PN}-nginx-module-${PV}" src_compile() { dso_tool --add-module="${S}" --dst="${S}" } src_install() { insinto "${EROOT}/var/lib/tengine/modules" doins "${S}/ngx_http_${MY_PN/-/_}_filter_module.so" }