aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/gtk-webcore/midori_git.bb
blob: 4f051321ab9721a37fae98bb37d27d353686f590 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
require midori.inc

DEPENDS += "vala-native python-native python-docutils-native"

DEFAULT_PREFERENCE = "-1"
DEFAULT_PREFERENCE_shr = "1"

# increment PR every time SRCREV is updated!
SRCREV = "ad2f0066ce969152080cd841ce4cdd0920565409"
PR = "r0"
PV = "0.2.9+${PR}+gitr${SRCPV}"

SRC_URI = "git://git.xfce.org/apps/midori;protocol=git"

S = "${WORKDIR}/git"

SRC_URI_append_shr = " file://config \
"

do_configure() {
	sed -i -e 's:, shell=False::g' wscript
	./configure \
            --prefix=${prefix} \
            --bindir=${bindir} \
            --sbindir=${sbindir} \
            --libexecdir=${libexecdir} \
            --datadir=${datadir} \
            --sysconfdir=${sysconfdir} \
            --sharedstatedir=${sharedstatedir} \
            --localstatedir=${localstatedir} \
            --libdir=${libdir} \
            --includedir=${includedir} \
            --infodir=${infodir} \
            --mandir=${mandir} \
            ${EXTRA_OECONF} 
}

do_install_append_shr() {
	install -d ${D}${sysconfdir}/xdg/midori
	install -m 0644 ${WORKDIR}/config ${D}${sysconfdir}/xdg/midori
}