# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit wxwidgets WX_GTK_VER="2.8" DESCRIPTION="The OpenSource Designer, GUI Builder, and RAD Tool For wxWidgets" HOMEPAGE="http://www.wxformbuilder.org/" SRC_URI="mirror://sourceforge/wxformbuilder/wxFormBuilder_v${PV}-src.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="" RDEPEND=">=x11-libs/wxGTK-${WX_GTK_VER}" DEPEND="${RDEPEND} >=sys-devel/automake-1.7" S=${WORKDIR} pkg_setup() { # Check for wxGTK 2.8 unicode. need-wxwidgets unicode } src_compile() { # Make premake first. make CONFIG=Release -C"${S}"/sdk/premake/src -f"${S}"/sdk/premake/build/Makefile || die "error making premake" # Call premake. "${S}"/sdk/premake/bin/premake --target gnu --unicode --disable-wx-debug --with-wx-shared || die "error calling premake" # Do it now. make CONFIG=Release || die "error making binaries" } src_install() { # Make directories. mkdir -p ${D}/usr/share/wxformbuilder # Copy output files to target directories. cp -R output/* ${D}/usr/share/wxformbuilder/ rm -f ${D}/usr/share/wxformbuilder/Changelog.txt rm -f ${D}/usr/share/wxformbuilder/license.txt # Reorganize target directories. mv -f ${D}/usr/share/wxformbuilder/bin ${D}/usr/ mv -f ${D}/usr/share/wxformbuilder/lib ${D}/usr/ rm -rf ${D}/usr/share/wxformbuilder/share # Install docs. dodoc "${S}"/COPYING dodoc "${S}"/output/Changelog.txt # Add icon to list. newicon "${S}"/output/resources/icons/logo.png ${PN}.png # Create desktop file make_desktop_entry wxformbuilder "WxFormBuilder" ${PN} Development } pkg_postinst() { echo ewarn "IMPORTANT: this is an unofficial ebuild. If you encounter" ewarn "any problem, please do NOT file bugs to gentoo bugzilla." }