aboutsummaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python3-dogtail_git.bb
blob: 0f6e6cecf64099b03d09eebe3db165c51d090cce (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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# Recipe created by recipetool
# This is the basis of a recipe and may need further editing in order to be fully functional.
# (Feel free to remove these comments when editing.)

HOMEPAGE = "http://dogtail.fedorahosted.org/"
# WARNING: the following LICENSE and LIC_FILES_CHKSUM values are best guesses - it is
# your responsibility to verify that the values are complete and correct.
#
# The following license files were not able to be identified and are
# represented as "Unknown" below, you will need to check them yourself:
#   examples/COPYING
#
# NOTE: multiple licenses have been detected; they have been separated with &
# in the LICENSE value for now since it is a reasonable assumption that all
# of the licenses apply. If instead there is a choice between the multiple
# licenses then you should change the value to separate the licenses with |
# instead of &. If there is any doubt, check the accompanying documentation
# to determine which situation is applicable.
LICENSE = "GPLv2 & PD"
LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a \
                    file://examples/COPYING;md5=e012ede43b30fda895555797c3ef4b55"

SRC_URI = "git://gitlab.com/dogtail/dogtail.git;protocol=https \
           file://run-ptest \
"

# Modify these as desired
PV = "0.9.10+git${SRCPV}"
SRCREV = "75927dd63fc84fb8b5eea0498d0de7c2c3624506"

S = "${WORKDIR}/git"

inherit setuptools3 ptest

# WARNING: the following rdepends are determined through basic analysis of the
# python sources, and might not be 100% accurate.
RDEPENDS_${PN} += " \
    python3-codecs \
    python3-core \
    python3-pygobject \
    python3-io \
    python3-math \
    python3-pyatspi \
    python3-pycairo \
    python3-shell \
"

RDEPENDS_${PN}-ptest += "gsettings-desktop-schemas python3-nose"

do_install_ptest() {
    install -d ${D}${PTEST_PATH}/tests
    cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
}

# WARNING: We were unable to map the following python package/module
# dependencies to the bitbake packages which include them:
#    Accessibility
#    apt_pkg (distro)
#    cairo
#    conaryclient (distro)
#    gi
#    gi.repository
#    gi.repository.Gio
#    portage (distro)
#    pyatspi
#    rpm (distro)

FILES_${PN} += " \
  /usr/share/icons \
  /usr/share/dogtail \
  /usr/share/icons/hicolor \
  /usr/share/icons/hicolor/scalable \
  /usr/share/icons/hicolor/scalable/apps \
  /usr/share/icons/hicolor/scalable/apps/dogtail-head.svg \
  /usr/share/icons/hicolor/scalable/apps/dogtail-tail.svg \
  /usr/share/dogtail/icons \
  /usr/share/dogtail/glade \
  /usr/share/dogtail/icons/table.xpm \
  /usr/share/dogtail/icons/tree.xpm \
  /usr/share/dogtail/icons/notebook.xpm \
  /usr/share/dogtail/icons/statusbar.xpm \
  /usr/share/dogtail/icons/text.xpm \
  /usr/share/dogtail/icons/scrolledwindow.xpm \
  /usr/share/dogtail/icons/menuitem.xpm \
  /usr/share/dogtail/icons/combo.xpm \
  /usr/share/dogtail/icons/viewport.xpm \
  /usr/share/dogtail/icons/label.xpm \
  /usr/share/dogtail/icons/checkbutton.xpm \
  /usr/share/dogtail/icons/vseparator.xpm \
  /usr/share/dogtail/icons/menubar.xpm \
  /usr/share/dogtail/icons/checkmenuitem.xpm \
  /usr/share/dogtail/icons/spinbutton.xpm \
  /usr/share/dogtail/icons/dialog.xpm \
  /usr/share/dogtail/icons/window.xpm \
  /usr/share/dogtail/icons/toolbar.xpm \
  /usr/share/dogtail/icons/unknown.xpm \
  /usr/share/dogtail/icons/treeitem.xpm \
  /usr/share/dogtail/icons/vscrollbar.xpm \
  /usr/share/dogtail/icons/image.xpm \
  /usr/share/dogtail/icons/colorselection.xpm \
  /usr/share/dogtail/icons/button.xpm \
  /usr/share/dogtail/glade/sniff.ui \
"