# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="3" DESCRIPTION="Bmin is designed to visualize the minimization of Boolean functions." HOMEPAGE="http://code.google.com/p/bmin" SRC_URI="http://bmin.googlecode.com/files/${P}.tgz" LICENSE="GPL v3" SLOT="0" KEYWORDS="~amd64" IUSE="" RDEPEND="dev-libs/expat media-libs/fontconfig media-libs/freetype media-libs/libpng x11-libs/qt-core x11-libs/qt-gui x11-libs/qt-opengl" DEPEND=$RDEPEND src_unpack(){ unpack "$A" } src_configure() { econf temp="$(cat "$WORKDIR/${P}/Makefile")" temp="${temp//CFLAGS = -pipe -Wall -W -D_REENTRANT/CFLAGS = $CFLAGS}" temp="${temp//CXXFLAGS = -pipe -Wall -W -D_REENTRANT/CXXFLAGS = $CXXFLAGS}" echo "$temp" > "$WORKDIR"/${P}/Makefile } src_compile() { emake || die } src_install() { mkdir -p $D/usr/share/icons/hicolor/16x16/apps mkdir -p $D/usr/bin mkdir -p $D/usr/share/applications cp $WORKDIR/${P}/qtgui/data/icon.png $D/usr/share/icons/hicolor/16x16/apps/bmin.png cp $WORKDIR/${P}/bmin $D/usr/bin echo "[Desktop Entry] Type=Application Name=Bmin Exec=bmin Version=1.01 Comment=Bmin is designed to visualize the minimization of Boolean functions. Icon=bmin.png Categories=Education;Science" > $D/usr/share/applications/bmin.desktop }