2011-06-16 18:30:23 +02:00
|
|
|
# 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"
|
|
|
|
|
2011-06-19 07:28:25 +02:00
|
|
|
inherit apache-module autotools
|
2011-06-16 18:30:23 +02:00
|
|
|
|
|
|
|
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() {
|
2011-06-19 07:28:25 +02:00
|
|
|
# rm -rf colorer/*
|
2011-06-16 18:30:23 +02:00
|
|
|
cd colorer
|
2011-06-19 07:28:25 +02:00
|
|
|
# unpack Colorer-take5-linux.be5.tar.bz2
|
|
|
|
epatch "${FILESDIR}"/colorer-optflags.diff
|
|
|
|
echo "all: colorer" >> Makefile.in
|
|
|
|
# eautoreconf
|
2011-06-16 18:30:23 +02:00
|
|
|
cd ..
|
|
|
|
}
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
econf --with-apxs="${APXS}"
|
|
|
|
}
|
|
|
|
|
|
|
|
src_compile() {
|
2011-06-19 07:28:25 +02:00
|
|
|
emake -C colorer RPM_OPT_FLAGS="${CFLAGS} -fpermissive -Wall -fPIC" || die "emake failed"
|
2011-06-16 18:30:23 +02:00
|
|
|
emake || die "emake failed"
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
mv -f src/.libs/libmod_highlight.so src/.libs/${PN}.so
|
|
|
|
apache-module_src_install
|
|
|
|
}
|