# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-www/apache/apache-2.0.54-r9.ebuild,v 1.10 2005/09/04 11:13:57 hardave Exp $ inherit flag-o-matic eutils fixheadtails gnuconfig DESCRIPTION="Classic Forum, Version 3.4.x" HOMEPAGE="http://wwwtech.de/cforum/" SRC_URI="http://wwwtech.de/cforum/download/cforum-${PV}.tgz" LICENSE="Artistic" SLOT="0" KEYWORDS="x86 amd64" IUSE="shared-mem sorting mysql mailonpost" DEPEND="sys-libs/db dev-lang/perl sys-libs/zlib dev-libs/gdome2 dev-libs/openssl mysql? ( dev-db/mysql ) dev-libs/libpcre dev-lang/swig net-libs/libwww mailonpost? ( net-libs/libesmtp )" src_compile() { local myconf local disabled if ! useq mailonpost; then disabled="flt_mailonpost.la" fi if ! useq mysql; then if ! useq mailonpost; then disabled="flt_admin_mysql.la" else disabled="${disabled} flt_admin_mysql.la" fi fi myconf="--prefix=/usr \ --datadir=/usr/share \ --sysconfdir=/etc \ --localstatedir=/var/lib \ $(use_enable shared-mem) \ $(use_enable sorting) \ " if test ! -z "${disabled}"; then myconf="${myconf} --with-disable-modules='${disabled}'" fi ./configure ${myconf} || die "configure failed" emake || die "problem compiling cforum :(" } src_install () { make DESTDIR=${D} install || die dodoc AUTHORS ChangeLog INSTALL NEWS README THANKS TODO } pkg_postinst() { einfo einfo "You now have to configure the Classic Forum. Follow the instructions" einfo "of the global installation tutorial at" einfo " ." einfo "Config files have been placed in /etc/cforum/." einfo }