Annotation of /trunk/extras/sqlitebrowser/sqlitebrowser-2.0_b1-r2.smage2
Parent Directory | Revision Log
Revision 11260 -
(hide annotations)
(download)
Thu Mar 1 11:52:41 2012 UTC (12 years, 6 months ago) by niro
File size: 1165 byte(s)
Thu Mar 1 11:52:41 2012 UTC (12 years, 6 months ago) by niro
File size: 1165 byte(s)
-fixed build with --as-needed
1 | niro | 11259 | # $Id |
2 | |||
3 | PNAME="sqlitebrowser" | ||
4 | PVER="2.0_b1" | ||
5 | PBUILD="r2" | ||
6 | |||
7 | PCAT="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.8 | ||
14 | >= x11-libs/qt4-gui-4.8 | ||
15 | >= x11-libs/qt4-qt3support-4.8" | ||
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 | niro | 11260 | # fix linking issues with --as-needed enabled |
45 | mmake all LINK="g++ -ldl" || die | ||
46 | niro | 11259 | } |
47 | |||
48 | src_install() | ||
49 | { | ||
50 | cd ${SRCDIR} | ||
51 | |||
52 | minstallexec ${PNAME}/${PNAME} || die | ||
53 | minstallpixmap ${PNAME}/images/128.png ${PNAME}.png || die | ||
54 | minstall_desktop_icon --categories Development || die | ||
55 | } |