# $Id PNAME="sqlitebrowser" PVER="2.0_b1" PBUILD="r2" PCAT="dev-db" DESCRIPTION="SQLite Database browser is a light GUI editor for SQLite databases, built on top of QT3." HOMEPAGE="http://sourceforge.net/projects/sqlitebrowser/" DEPEND=">= dev-db/sqlite-3 >= x11-libs/qt4-core-4.8 >= x11-libs/qt4-gui-4.8 >= x11-libs/qt4-qt3support-4.8" SRCFILE="${PNAME}_200_b1_src.tar.gz" SRCDIR="${BUILDDIR}/trunk/${PNAME}" sminclude mtools xdg qt4 SRC_URI=( sourceforge://${PNAME}/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) UP2DATE="updatecmd_sourceforge ${PNAME}" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # fix compilation against glibc >=2.10 sed -i 's:getline:xgetline:' sqlitebrowser/sqlbrowser_util.c || die # fix compilation against qt >= 4.7 sed -i 's|: name( 0 ) { }|: name( ) { }|' sqlitebrowser/sqlitedb.h || die } src_compile() { cd ${SRCDIR} ${QMAKE} || die # fix linking issues with --as-needed enabled mmake all LINK="g++ -ldl" || die } src_install() { cd ${SRCDIR} minstallexec ${PNAME}/${PNAME} || die minstallpixmap ${PNAME}/images/128.png ${PNAME}.png || die minstall_desktop_icon --categories Development || die }