# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit autotools qt3 DESCRIPTION="Gambas is a free development environment based on a Basic interpreter with object extensions" HOMEPAGE="http://gambas.sourceforge.net" my_P="${PN}2-${PV}" SRC_URI="mirror://sourceforge/gambas/${my_P}.tar.bz2" LICENSE="GPL-2" SLOT="2" KEYWORDS="~x86 ~amd64" IUSE="bzip2 curl gtk kde qt3 sqlite sqlite3 zlib" S="${WORKDIR}/${my_P}" DEPEND=" bzip2? ( >=app-arch/bzip2-1.0.5 ) curl? ( >=net-misc/curl-7.18.1 ) gtk? ( >=x11-libs/gtk+-2.12.9-r1 ) kde? ( >=kde-base/kdelibs-3.5.9-r1 ) qt3? ( $(qt_min_version 3.2) ) sqlite? ( =dev-db/sqlite-2* ) sqlite3? ( >=dev-db/sqlite-3.5.6 ) zlib? ( >=sys-libs/zlib-1.2.3-r1 ) " RDEPEND=" " src_unpack() { if [ "${A}" != "" ]; then unpack ${A} fi cd ${S} sed -i -e 's/gb_enable_\$1=yes/gb_enable_\$1=no/' acinclude.m4 \ || die "sed no-automagic-patch failed" # FAILS -- still need myconf_main # sed -i -e 's/GB_FIND[(]libffi\.\$SHLIBEXT\,\(.*\)\,\ lib[)]/GB_FIND(libffi\.\$SHLIBEXT\,\1 \/usr\/lib\/gcc\/*\/*, lib)/' \ # main/configure.ac \ # || die "sed gcc-libffi-lib-path-patch failed" eautoreconf \ || die "eautoreconf failed" } src_compile() { local myconf local myconf_main # myconf=" # $(use_enable bzip2 bzlib2) # $(use_enable zlib) # --disable-mysql # --disable-odbc # --disable-postgresql # $(use_enable sqlite sqlite2) # $(use_enable sqlite3) # --disable-firebird # $(use_enable gtk) # --disable-gtksvg # --disable-pdf # --disable-net # $(use_enable curl) # --disable-smtp # --disable-pcre # $(use_enable qt3 qt) # --disable-qte # $(use_enable kde) # --disable-sdl # --disable-sdlsound # --disable-xml # --disable-v4l # --disable-crypt # --disable-opengl # --disable-corba # --disable-image # --disable-desktop # --disable-maintainer-mode # " myconf=" $(use_enable bzip2 bzlib2) $(use_enable zlib) $(use_enable sqlite sqlite2) $(use_enable sqlite3) $(use_enable gtk) $(use_enable curl) $(use_enable qt3 qt) $(use_enable kde) " myconf_main=" --with-ffi-libraries=/usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/ " econf \ ${myconf} \ ${myconf_main} \ --enable-optimization \ --disable-debug \ --disable-profiling \ || die "econf failed" emake \ || die "emake failed" } src_install() { emake \ DESTDIR="${D}" \ install \ || die "emake install failed" }