# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 inherit flag-o-matic eutils fixheadtails cmake-utils DESCRIPTION="Classic Forum" 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" # CMake <= 2.4.7-r1 does not find swig correctly, so build will fail DEPEND=">dev-util/cmake-2.4.7-r1 sys-libs/db dev-lang/perl sys-libs/zlib dev-libs/gdome2 dev-perl/XML-GDOME dev-perl/BerkeleyDB dev-libs/openssl sys-devel/flex dev-libs/libpcre dev-lang/swig net-dns/libidn net-misc/curl mysql? ( dev-db/mysql ) mailonpost? ( net-libs/libesmtp )" src_compile() { mycmakeargs="-DCMAKE_INSTALL_LOCALSTATEDIR=/var/lib -DPROTOCOL_FILE=/var/log/cforum/sigprotocol.txt" mycmakeargs+=" `cmake-utils_use_enable mysql flt_admin_mysql`" mycmakeargs+=" `cmake-utils_use_enable mailonpost flt_mailonpost`" mycmakeargs+=" `cmake-utils_use_enable shared-mem SHARED_MEM`" mycmakeargs+=" `cmake-utils_use_enable sorting SORTING`" cmake-utils_src_compile } src_install () { cmake-utils_src_install dodoc AUTHORS ChangeLog 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 }