diff options
Diffstat (limited to 'meta-extras/packages/osc/osc-native_svn.bb')
-rwxr-xr-x | meta-extras/packages/osc/osc-native_svn.bb | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/meta-extras/packages/osc/osc-native_svn.bb b/meta-extras/packages/osc/osc-native_svn.bb new file mode 100755 index 0000000000..ab0ee0ba3a --- /dev/null +++ b/meta-extras/packages/osc/osc-native_svn.bb | |||
@@ -0,0 +1,28 @@ | |||
1 | DESCRIPTION = "osc - OpenSUSE build service command-line tool." | ||
2 | HOMEPAGE = "http://en.opensuse.org/Build_Service/CLI" | ||
3 | SECTION = "console/utils" | ||
4 | LICENSE = "GPL" | ||
5 | PV = "0.0+svnr${SRCREV}" | ||
6 | PR = "r1" | ||
7 | DEPENDS = "python-native rpm-native" | ||
8 | RDEPENDS = "" | ||
9 | |||
10 | SRC_URI = "svn://forgesvn1.novell.com/svn/opensuse/trunk/buildservice/src/clientlib/python;module=osc;proto=https" | ||
11 | S = "${WORKDIR}/osc" | ||
12 | |||
13 | inherit native | ||
14 | |||
15 | do_install() { | ||
16 | BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \ | ||
17 | STAGING_LIBDIR=${STAGING_LIBDIR} STAGING_INCDIR=${STAGING_INCDIR} \ | ||
18 | ${STAGING_BINDIR_NATIVE}/python setup.py build || | ||
19 | oefatal "python setup.py build execution failed." | ||
20 | |||
21 | BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \ | ||
22 | STAGING_LIBDIR=${STAGING_LIBDIR_NATIVE} STAGING_INCDIR=${STAGING_INCDIR_NATIVE} \ | ||
23 | ${STAGING_BINDIR_NATIVE}/python setup.py install --prefix=${D}${prefix} --install-data=${D}${datadir} || \ | ||
24 | oefatal "python setup.py install execution failed." | ||
25 | |||
26 | ln -sf osc-wrapper.py ${D}${bindir}/osc | ||
27 | } | ||
28 | |||