Magellan Linux

Contents of /branches/magellan-next/extras/sqlitebrowser/sqlitebrowser-2.0_b1-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9589 - (show annotations) (download)
Thu Dec 22 11:59:03 2011 UTC (12 years, 5 months ago) by niro
File size: 1076 byte(s)
-added compilation fixes
1 # $Id
2
3 PNAME="sqlitebrowser"
4 PVER="2.0_b1"
5 PBUILD="r1"
6
7 PCATEGORIE="dev-db"
8
9 DESCRIPTION="SQLite Database browser is a light GUI editor for SQLite databases, built on top of QT3."
10 HOMEPAGE="http://sourceforge.net/projects/sqlitebrowser/"
11
12 DEPEND=">= dev-db/sqlite-3
13 >= x11-libs/qt4-core-4.7
14 >= x11-libs/qt4-gui-4.7"
15
16 SRCFILE="${PNAME}_200_b1_src.tar.gz"
17 SRCDIR="${BUILDDIR}/trunk/${PNAME}"
18
19 sminclude mtools xdg qt4
20
21 SRC_URI=(
22 sourceforge://${PNAME}/${SRCFILE}
23 mirror://${PNAME}/${SRCFILE}
24 )
25
26 UP2DATE="updatecmd_sourceforge ${PNAME}"
27
28 src_prepare()
29 {
30 munpack ${SRCFILE} || die
31 cd ${SRCDIR}
32
33 # fix compilation against glibc >=2.10
34 sed -i 's:getline:xgetline:' sqlitebrowser/sqlbrowser_util.c || die
35 # fix compilation against qt >= 4.7
36 sed -i 's|: name( 0 ) { }|: name( ) { }|' sqlitebrowser/sqlitedb.h || die
37 }
38
39 src_compile()
40 {
41 cd ${SRCDIR}
42 ${QMAKE} || die
43 mmake all || die
44 }
45
46 src_install()
47 {
48 cd ${SRCDIR}
49
50 minstallexec ${PNAME}/${PNAME} || die
51 minstallpixmap ${PNAME}/images/128.png ${PNAME}.png || die
52 minstall_desktop_icon --categories Development || die
53 }