-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathenigma2-plugin-extensions-gbipboxclient.bb
More file actions
63 lines (50 loc) · 2.27 KB
/
enigma2-plugin-extensions-gbipboxclient.bb
File metadata and controls
63 lines (50 loc) · 2.27 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
SUMMARY = "GigaBlue IPBox Client"
MAINTAINER = "GigaBlue"
SECTION = "base"
LICENSE = "GPLv2"
PACKAGE_ARCH = "all"
require conf/license/license-gplv2.inc
inherit gitpkgv pythonnative
SRCREV = "${AUTOREV}"
PV = "1.0+git${SRCPV}"
PKGV = "1.0+git${GITPKGV}"
VER ="1.0"
PR = "r0"
SRC_URI="git://git@gitlab.openmips.com/dev-openmips/gbipboxclient.git;protocol=ssh"
S = "${WORKDIR}/git"
inherit autotools-brokensep
DEPENDS = "python"
RDEPENDS_${PN} = "cifs"
RCONFLICTS_${PN} = "enigma2-plugin-systemplugins-gbipboxclient"
RREPLACES_${PN} = "enigma2-plugin-systemplugins-gbipboxclient"
EXTRA_OECONF = "\
--with-po \
BUILD_SYS=${BUILD_SYS} \
HOST_SYS=${HOST_SYS} \
STAGING_INCDIR=${STAGING_INCDIR} \
STAGING_LIBDIR=${STAGING_LIBDIR} \
"
do_install_append() {
# remove unused .pyc files
find ${D}/usr/lib/enigma2/python/Plugins/Extensions/${PLUGIN}/ -name '*.pyc' -exec rm {} \;
# remove helper .pyo file
find ${D}/usr/lib/enigma2/python/Plugins/Extensions/${PLUGIN}/ -name '*helper.pyo' -exec rm {} \;
}
# skip this!
install_egg_info() {
}
do_configure_prepend() {
touch ${S}/NEWS
touch ${S}/README
touch ${S}/AUTHORS
touch ${S}/ChangeLog
}
python populate_packages_prepend() {
enigma2_plugindir = bb.data.expand('${libdir}/enigma2/python/Plugins', d)
do_split_packages(d, enigma2_plugindir, '^(\w+/\w+)/[a-zA-Z0-9_]+.*$', 'enigma2-plugin-%s', '%s', recursive=True, match_path=True, prepend=True, extra_depends="enigma2")
do_split_packages(d, enigma2_plugindir, '^(\w+/\w+)/(?!.*helper\.py).*\.py$', 'enigma2-plugin-%s-src', '%s (source files)', recursive=True, match_path=True, prepend=True)
do_split_packages(d, enigma2_plugindir, '^(\w+/\w+)/.*\.la$', 'enigma2-plugin-%s-dev', '%s (development)', recursive=True, match_path=True, prepend=True)
do_split_packages(d, enigma2_plugindir, '^(\w+/\w+)/.*\.a$', 'enigma2-plugin-%s-staticdev', '%s (static development)', recursive=True, match_path=True, prepend=True)
do_split_packages(d, enigma2_plugindir, '^(\w+/\w+)/(.*/)?\.debug/.*$', 'enigma2-plugin-%s-dbg', '%s (debug)', recursive=True, match_path=True, prepend=True)
do_split_packages(d, enigma2_plugindir, '^(\w+/\w+)/.*\/.*\.po$', 'enigma2-plugin-%s-po', '%s (translations)', recursive=True, match_path=True, prepend=True)
}