# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="Midgard is a framework built on the common Apache, PHP and MySQL components for Content Management Systems." HOMEPAGE="http://www.midgard-project.org/" SRC_URI="http://www.midgard-project.org/download/midgard-${P}.tar.bz2" LICENSE="LGPL-2 | GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND="=net-www/apache-1.3* \ >=sys-devel/autoconf-2.58-r1 \ >=sys-devel/automake-1.7.7 \ >=sys-devel/libtool-1.4.3-r4 \ >=app-text/rcs-5.7-r2 \ >=dev-php/php-4.3.4-r4 \ >=dev-lang/perl-5.8.2-r1 \ >=sys-devel/flex-2.5.4a-r5 \ >=sys-libs/zlib-1.1.4-r2 \ >=dev-libs/expat-1.95.6-r1 \ >=dev-libs/glib-2.2.3 \ >=dev-db/mysql-4.0.17" RDEPEND="" S=${WORKDIR}/${P} src_compile() { econf || die emake || die # if emake fails use make #make || die } src_install() { # You must *personally verify* that this trick doesn't install # anything outside of DESTDIR; do this by reading and # understanding the install part of the Makefiles. make DESTDIR=${D} install || die # For Makefiles that don't make proper use of DESTDIR, setting # prefix is often an alternative. However if you do this, then # you also need to specify mandir and infodir, since they were # passed to ./configure as absolute paths (overriding the prefix # setting). #make \ # prefix=${D}/usr \ # mandir=${D}/usr/share/man \ # infodir=${D}/usr/share/info \ # install || die # Again, verify the Makefiles! We don't want anything falling # outside of ${D}. # The portage shortcut to the above command is simply: # #einstall || die # Note that einstall will die on failure, but please use einstall || die # for consistency. }