linamh/www-apache/mod_highlight/mod_highlight-0.1.0.ebuild

48 lines
1.0 KiB
Bash
Raw Normal View History

# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_gnutls/mod_gnutls-0.5.9.ebuild,v 1.1 2011/05/10 16:08:57 arfrever Exp $
EAPI="3"
inherit apache-module
DESCRIPTION="mod_highlight provdes syntax highlighting as an Apache 2.0 Filter Module."
HOMEPAGE="http://www.outoforder.cc/projects/apache/mod_highlight/"
SRC_URI="http://www.outoforder.cc/downloads/${PN}/${P}.tar.bz2
mirror://sourceforge/colorer/Colorer-take5-linux.be5.tar.bz2"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~sparc ~x86"
IUSE=""
DEPEND=""
RDEPEND="${DEPEND}"
APACHE2_MOD_CONF="47_${PN}"
APACHE2_MOD_DEFINE="HIGHLIGHT"
DOCFILES="NEWS NOTICE README README.ENV"
need_apache2
src_prepare() {
rm -rf colorer/*
cd colorer
unpack Colorer-take5-linux.be5.tar.bz2
cd ..
}
src_configure() {
econf --with-apxs="${APXS}"
}
src_compile() {
emake || die "emake failed"
}
src_install() {
mv -f src/.libs/libmod_highlight.so src/.libs/${PN}.so
apache-module_src_install
}