# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit autotools wxwidgets subversion flag-o-matic eutils ESVN_CO_DIR="${PORTAGE_ACTUAL_DISTDIR-${DISTDIR}}"/svn-src/${P/-svn}/"${ESVN_REPO_URI##*/}" ESVN_REPO_URI="https://wxformbuilder.svn.sourceforge.net/svnroot/wxformbuilder/3.x/tags/rc5" ESVN_PROJECT="${P}" WX_GTK_VER="2.8" DESCRIPTION="The OpenSource Designer, GUI Builder, and RAD Tool For wxWidgets" HOMEPAGE="http://wxformbuilder.org/" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64" RDEPEND="=x11-libs/wxGTK-${WX_GTK_VER}* x11-libs/gtk+" DEPEND="${RDEPEND} >=dev-util/premake-3.4" src_unpack() { subversion_src_unpack } src_compile() { append-flags -fPIC echo "Checking for premake binary..." PREMAKE_BIN=`which premake` || die "could not find premake binary" echo "...found" echo cp ${PREMAKE_BIN} ./sdk/premake/premake-linux || die "could not find 'sdk/premake' in svn tree, please check for tree changes and fix the ebuild." ./create_build_files.sh || die "Error creating build files." emake || die "make error, please do NOT report this to official gentoo bugzilla" } src_install() { mkdir ${D}/usr ./install/linux/wxfb_export.sh ${D}/usr || die "install script have changed in svn tree, please check for tree changes and fix the ebuild." } pkg_postinst() { echo ewarn "IMPORTANT:" ewarn "This is an unofficial ebuild for wxFormBuilder." ewarn "If you encounter any problems, do NOT file bugs to gentoo" ewarn "bugzilla." }