Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9591 - (show annotations) (download)
Thu Dec 22 12:14:49 2011 UTC (12 years, 4 months ago) by niro
File size: 1108 byte(s)
-fixed a typo
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 >= x11-libs/qt4-qt3support-4.7"
16
17 SRCFILE="${PNAME}_200_b1_src.tar.gz"
18 SRCDIR="${BUILDDIR}/trunk/${PNAME}"
19
20 sminclude mtools xdg qt4
21
22 SRC_URI=(
23 sourceforge://${PNAME}/${SRCFILE}
24 mirror://${PNAME}/${SRCFILE}
25 )
26
27 UP2DATE="updatecmd_sourceforge ${PNAME}"
28
29 src_prepare()
30 {
31 munpack ${SRCFILE} || die
32 cd ${SRCDIR}
33
34 # fix compilation against glibc >=2.10
35 sed -i 's:getline:xgetline:' sqlitebrowser/sqlbrowser_util.c || die
36 # fix compilation against qt >= 4.7
37 sed -i 's|: name( 0 ) { }|: name( ) { }|' sqlitebrowser/sqlitedb.h || die
38 }
39
40 src_compile()
41 {
42 cd ${SRCDIR}
43 ${QMAKE} || die
44 mmake all || die
45 }
46
47 src_install()
48 {
49 cd ${SRCDIR}
50
51 minstallexec ${PNAME}/${PNAME} || die
52 minstallpixmap ${PNAME}/images/128.png ${PNAME}.png || die
53 minstall_desktop_icon --categories Development || die
54 }