meta-openembedded/meta-xfce/classes/xfce.bbclass
Khem Raj 0300f77934 xfce.bbclass: Mark string as raw in a regexp
Fixes python Deprecated behavior warning

xfce.bbclass:3: DeprecationWarning: invalid escape sequence \.
  m = re.match("^([0-9]+)\.([0-9]+)", v)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-10-16 08:25:21 -07:00

15 lines
473 B
Plaintext

def xfce_verdir(v):
import re
m = re.match(r"^([0-9]+)\.([0-9]+)", v)
return "%s.%s" % (m.group(1), m.group(2))
HOMEPAGE = "http://www.xfce.org"
SRC_URI = "http://archive.xfce.org/src/xfce/${BPN}/${@xfce_verdir("${PV}")}/${BPN}-${PV}.tar.bz2"
inherit autotools gettext gtk-icon-cache pkgconfig
DEPENDS += "intltool-native"
FILES:${PN} += "${datadir}/icons/* ${datadir}/applications/* ${libdir}/xfce4/modules/*.so*"
FILES:${PN}-doc += "${datadir}/xfce4/doc"