diff options
author | Jeroen Roovers <jer@gentoo.org> | 2008-12-15 06:50:43 +0000 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2008-12-15 06:50:43 +0000 |
commit | a6156f994312e268088cc13cbf5b278bd0207c55 (patch) | |
tree | 1324248f04fa55c18c0053be205aa11ea4cec8aa /app-admin/analog/analog-6.0-r2.ebuild | |
parent | Stable for HPPA (bug #249942). (diff) | |
download | gentoo-2-a6156f994312e268088cc13cbf5b278bd0207c55.tar.gz gentoo-2-a6156f994312e268088cc13cbf5b278bd0207c55.tar.bz2 gentoo-2-a6156f994312e268088cc13cbf5b278bd0207c55.zip |
Use system bzip2 library (bug #249140). Get CC and CFLAGS from environment. Bump both EAPI=0 and EAPI=2 ebuilds.
(Portage version: 2.2_rc17/cvs/Linux 2.6.25-gentoo-r7-JeR i686)
Diffstat (limited to 'app-admin/analog/analog-6.0-r2.ebuild')
-rw-r--r-- | app-admin/analog/analog-6.0-r2.ebuild | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/app-admin/analog/analog-6.0-r2.ebuild b/app-admin/analog/analog-6.0-r2.ebuild new file mode 100644 index 000000000000..d9eacc4cdc4c --- /dev/null +++ b/app-admin/analog/analog-6.0-r2.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/analog/analog-6.0-r2.ebuild,v 1.1 2008/12/15 06:50:43 jer Exp $ + +inherit eutils toolchain-funcs + +DESCRIPTION="A webserver log analyzer" +HOMEPAGE="http://www.analog.cx/" +SRC_URI="http://www.analog.cx/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86" +IUSE="" + +DEPEND=">=dev-libs/libpcre-3.4 + >=media-libs/gd-1.8.4-r2 + sys-libs/zlib + media-libs/jpeg + media-libs/libpng" + +pkg_setup() { + if ! built_with_use media-libs/gd jpeg ; then + eerror "libgd is missing jpeg support. Please add" + eerror "'jpeg' to your USE flags, and re-emerge media-libs/gd." + die "libgd needs jpeg support" + fi + if ! built_with_use media-libs/gd png ; then + eerror "libgd is missing jpeg support. Please add" + eerror "'png' to your USE flags, and re-emerge media-libs/gd." + die "libgd needs png support" + fi +} + +S="${WORKDIR}"/${P}/src + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}/${PN}-5.1-gentoo.diff" + epatch "${FILESDIR}/${P}-bzip2.patch" +} + +src_compile() { + tc-export CC || die "ohnoz" + emake || die "make failed" +} + +src_install() { + dobin analog || die "dobin failed" + newman analog.man analog.1 + + dodoc README.txt Licence.txt analog.cfg + dohtml -a html,gif,css,ico docs/* + dohtml -r how-to + docinto examples ; dodoc examples/* + docinto cgi ; dodoc anlgform.pl + + insinto /usr/share/analog/images ; doins images/* + insinto /usr/share/analog/lang ; doins lang/* + dodir /var/log/analog + dosym /usr/share/analog/images /var/log/analog/images + insinto /etc/analog ; doins "${FILESDIR}/analog.cfg" +} |