blob: ab0ee0ba3a764384a22182a5858334e00cc59185 (
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
|
DESCRIPTION = "osc - OpenSUSE build service command-line tool."
HOMEPAGE = "http://en.opensuse.org/Build_Service/CLI"
SECTION = "console/utils"
LICENSE = "GPL"
PV = "0.0+svnr${SRCREV}"
PR = "r1"
DEPENDS = "python-native rpm-native"
RDEPENDS = ""
SRC_URI = "svn://forgesvn1.novell.com/svn/opensuse/trunk/buildservice/src/clientlib/python;module=osc;proto=https"
S = "${WORKDIR}/osc"
inherit native
do_install() {
BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \
STAGING_LIBDIR=${STAGING_LIBDIR} STAGING_INCDIR=${STAGING_INCDIR} \
${STAGING_BINDIR_NATIVE}/python setup.py build ||
oefatal "python setup.py build execution failed."
BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \
STAGING_LIBDIR=${STAGING_LIBDIR_NATIVE} STAGING_INCDIR=${STAGING_INCDIR_NATIVE} \
${STAGING_BINDIR_NATIVE}/python setup.py install --prefix=${D}${prefix} --install-data=${D}${datadir} || \
oefatal "python setup.py install execution failed."
ln -sf osc-wrapper.py ${D}${bindir}/osc
}
|