Merge lp:~zeller-benjamin/ubuntu-sdk-ide/maliit-plugin into lp:ubuntu-sdk-ide

Proposed by Benjamin Zeller
Status: Merged
Approved by: Zoltan Balogh
Approved revision: 116
Merged at revision: 118
Proposed branch: lp:~zeller-benjamin/ubuntu-sdk-ide/maliit-plugin
Merge into: lp:ubuntu-sdk-ide
Diff against target: 133 lines (+99/-1)
3 files modified
CMakeLists.txt (+14/-1)
debian/control (+6/-0)
get_package_source.py (+79/-0)
To merge this branch: bzr merge lp:~zeller-benjamin/ubuntu-sdk-ide/maliit-plugin
Reviewer Review Type Date Requested Status
ubuntu-sdk-build-bot continuous-integration Approve
Zoltan Balogh Approve
Review via email: mp+286265@code.launchpad.net

Commit message

Build maliit plugin for the touch SDK IDE

Description of the change

Build maliit plugin for the touch SDK IDE

To post a comment you must log in.
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Zoltan Balogh (bzoltan) wrote :

Fantastic!!!

review: Approve
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'CMakeLists.txt'
--- CMakeLists.txt 2016-01-26 10:45:13 +0000
+++ CMakeLists.txt 2016-02-17 08:30:43 +0000
@@ -65,6 +65,19 @@
65 INSTALL_COMMAND sh -c "LD_LIBRARY_PATH=${QT_INSTALL_DIR}/lib make install"65 INSTALL_COMMAND sh -c "LD_LIBRARY_PATH=${QT_INSTALL_DIR}/lib make install"
66)66)
6767
68SET (MALIITPLUGIN_PREFIX "${CMAKE_BINARY_DIR}/maliit-plugin-qt-build")
69ExternalProject_Add(maliit-plugin
70 DEPENDS ${QT_VERSION}
71 PREFIX "${MALIITPLUGIN_PREFIX}"
72 SOURCE_DIR "${MALIITPLUGIN_PREFIX}/maliit-framework"
73 BINARY_DIR "${MALIITPLUGIN_PREFIX}/maliit-framework"
74 INSTALL_DIR "${QT_INSTALL_DIR}"
75 DOWNLOAD_COMMAND sh -c "cd ${MALIITPLUGIN_PREFIX} && ${CMAKE_SOURCE_DIR}/get_package_source.py maliit-framework"
76 CONFIGURE_COMMAND sh -c "LD_LIBRARY_PATH=${QT_INSTALL_DIR}/lib ${QT_INSTALL_DIR}/bin/qmake -r CONFIG+=\"qt5-inputcontext glib debug nodoc warn_off\" M_IM_PREFIX=${QT_INSTALL_DIR} MALIIT_SERVER_ARGUMENTS=\"-software -bypass-wm-hint\" MALIIT_DEFAULT_PLUGIN=libmaliit-keyboard-plugin.so"
77 BUILD_COMMAND sh -c "LD_LIBRARY_PATH=${QT_INSTALL_DIR}/lib make ${GENERATED_MAKE_FLAGS}"
78 INSTALL_COMMAND sh -c "cd ${MALIITPLUGIN_PREFIX}/maliit-framework/input-context && make install"
79)
80
68SET (FCITX_PREFIX "${CMAKE_BINARY_DIR}/fcitx-qt-build")81SET (FCITX_PREFIX "${CMAKE_BINARY_DIR}/fcitx-qt-build")
69ConcatStrings (FCITX_BUILD_SCRIPT82ConcatStrings (FCITX_BUILD_SCRIPT
70 "${CMAKE_COMMAND} "83 "${CMAKE_COMMAND} "
@@ -112,7 +125,7 @@
112)125)
113126
114ExternalProject_Add(qtcreator_3.5.0127ExternalProject_Add(qtcreator_3.5.0
115 DEPENDS appmenu-qt5128 DEPENDS appmenu-qt5 fcitx-qt5 maliit-plugin
116 PREFIX "${QTCREATOR_PREFIX}"129 PREFIX "${QTCREATOR_PREFIX}"
117 SOURCE_DIR "${QTCREATOR_PREFIX}/qtcreator"130 SOURCE_DIR "${QTCREATOR_PREFIX}/qtcreator"
118 BINARY_DIR "${QTCREATOR_PREFIX}/build"131 BINARY_DIR "${QTCREATOR_PREFIX}/build"
119132
=== modified file 'debian/control'
--- debian/control 2016-01-27 15:30:05 +0000
+++ debian/control 2016-02-17 08:30:43 +0000
@@ -72,6 +72,12 @@
72 extra-cmake-modules (>= 1.4.0),72 extra-cmake-modules (>= 1.4.0),
73 fcitx-libs-dev (>= 1:4.2.8),73 fcitx-libs-dev (>= 1:4.2.8),
74 intltool,74 intltool,
75 cdbs,
76 libmtdev-dev,
77 libxcb-composite0-dev,
78 libxcb-damage0-dev,
79 libxext-dev,
80
75Standards-Version: 3.9.481Standards-Version: 3.9.4
76Homepage: https://launchpad.net/ubuntu-sdk-ide82Homepage: https://launchpad.net/ubuntu-sdk-ide
77# If you aren't a member of ~ubuntu-sdk-team but need to upload packaging changes,83# If you aren't a member of ~ubuntu-sdk-team but need to upload packaging changes,
7884
=== added file 'get_package_source.py'
--- get_package_source.py 1970-01-01 00:00:00 +0000
+++ get_package_source.py 2016-02-17 08:30:43 +0000
@@ -0,0 +1,79 @@
1#!/usr/bin/python
2from optparse import OptionParser
3import re
4import urlparse
5from launchpadlib.launchpad import Launchpad
6from subprocess import call
7import sys
8import os
9import glob
10
11def create_webroot_url_from_self_link(self_link):
12 scheme, netloc, _, _, _ = urlparse.urlsplit(self_link)
13 netloc = netloc.lstrip("api.")
14 return u"%s://%s/" % (scheme, netloc)
15
16
17def get_dsc(archive, package, series):
18 re_version = re.compile(r"^\d+\:")
19 x = archive.getPublishedSources(exact_match=True, source_name=package,
20 distro_series=series)
21 webroot = create_webroot_url_from_self_link(archive.self_link)
22 version = x[0].source_package_version
23 version = re_version.sub("", version, 1)
24 if archive.owner.name == "ubuntu-archive":
25 yield "%subuntu/+archive/primary/+files/%s_%s.dsc" \
26 % (webroot, x[0].source_package_name, version)
27 else:
28 yield "%s/~ci-train-ppa-service/+archive/ubuntu/stable-phone-overlay/+files/%s_%s.dsc" \
29 % (webroot, x[0].source_package_name, version)
30
31
32def main():
33 parser = OptionParser(usage="usage: %prog [options] pkgname ...")
34 parser.add_option(
35 "-l", "--launchpad", dest="launchpad_instance", default="production")
36 options, args = parser.parse_args()
37 launchpad = Launchpad.login_anonymously('just testing', options.launchpad_instance)
38 ubuntu = launchpad.distributions["ubuntu"]
39 distro_archive = ubuntu.main_archive
40 overlay_archive = launchpad.people["ci-train-ppa-service"].\
41 getPPAByName(name="stable-phone-overlay")
42 series = ubuntu.getSeries(name_or_version="xenial")
43
44 for source_package in args:
45 re_version = re.compile(r"^\d+\:")
46
47 #first try the overlay archive
48 archive = overlay_archive
49 x = overlay_archive.getPublishedSources(exact_match=True,
50 source_name=source_package,
51 distro_series=series)
52 if len(x) == 0:
53 archive = distro_archive
54 x = distro_archive.getPublishedSources(exact_match=True,
55 source_name=source_package,
56 distro_series=series)
57 if len(x) == 0:
58 print("Could not find "+source_package)
59 sys.exit(1)
60 else:
61 print(source_package+" found in Archive")
62 else:
63 print(source_package+" found in overlay ppa")
64
65 x = x[0].source_package_version
66
67 generator = get_dsc(archive, source_package, series)
68 for i in generator:
69 call(["dget", i, "--quiet", "--download-only"])
70 for dsc_file in glob.glob('%s*dsc' % source_package):
71 call(["dpkg-source", "-x", dsc_file])
72 for junk_files in glob.glob("*.?z"):
73 os.remove(junk_files)
74 for junk_files in glob.glob("*.dsc"):
75 os.remove(junk_files)
76 for fetched_module_directory in glob.glob('%s*' % source_package):
77 os.rename(fetched_module_directory, source_package)
78
79main()

Subscribers

People subscribed via source and target branches