# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="Viewer and editor for GDS and OASIS integrated circuit layouts" HOMEPAGE="http://www.klayout.de" SRC_URI="http://www.klayout.de/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="ruby" RDEPEND=">=x11-libs/qt-4.1.0 \ ruby? ( dev-lang/ruby )" DEPEND="${RDEPEND} >=sys-devel/gcc-3.2" src_compile() { local rbinc local rbflags if use ruby ; then # get the location of the ruby.h header file rbinc=`ruby -rrbconfig -e \ "puts Config::CONFIG['archdir'] || Config::CONFIG['rubyhdrdir']"` rbflags="-rblib /usr/lib/libruby.so -rbinc ${rbinc}" fi ./build.sh \ -bin bin \ -qtbin /usr/bin \ -qtinc /usr/include/qt4 \ -qtlib /usr/lib/qt4 \ ${rbflags} } src_install() { into /usr dobin \ bin/klayout \ bin/strm2gds \ bin/strm2oas \ bin/strmclip \ bin/strmcmp insinto /usr/share/${PN}/testdata/gds doins testdata/gds/*.gds insinto /usr/share/${PN}/testdata/oasis doins testdata/oasis/*.oas testdata/oasis/*.ot if use ruby; then insinto /usr/share/${PN} doins -r testdata/ruby fi }