translate-toolkit: upgrade 2.3.1 -> 2.5.0 and move to setuptools3/python3

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
This commit is contained in:
Andreas Müller
2020-02-02 21:11:21 +01:00
parent 15392f0418
commit 6ce347c9b6

View File

@@ -3,32 +3,27 @@ LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://COPYING;md5=98efdc0d236de427ac1ff87d5108bd36"
HOMEPAGE = "http://toolkit.translatehouse.org/"
inherit setuptools
inherit setuptools3
SRC_URI = "git://github.com/translate/translate.git"
SRCREV = "44fadd143869f3b03bb93a401891fe539543b2b2"
SRCREV = "2ac3101666208d2186c096f9865e00cf1b257fc0"
S = "${WORKDIR}/git"
PV = "2.3.1"
PV = "2.5.0"
do_install_append() {
# move files to correct location
# 1. /usr/share/lib(64) -> ${libdir}
if [ -d ${D}${datadir}/${baselib} ] ; then
mkdir -p ${D}/${libdir}
cp -r ${D}${datadir}/${baselib}/* ${D}/${libdir}
rm -rf ${D}${datadir}/${baselib}
fi
# if empty datadir -> delete
rmdir ${D}${datadir} || true
# 2. ${D}${STAGING_DIR}/${HOST_SYS} -> ${D}
# ${D}${STAGING_DIR_HOST} -> ${D}
# this is a bad hack aligning installed locations - but have not found a better way
if [ -d ${D}${STAGING_DIR}/${HOST_SYS} ] ; then
cp -r ${D}${STAGING_DIR}/${HOST_SYS}/* ${D}
staging_base=`echo ${STAGING_DIR} | cut -d "/" -f2`
rm -rf ${D}/$staging_base
if [ -d ${D}${STAGING_DIR_HOST} ] ; then
echo
echo "Copy files from ${D}${STAGING_DIR_HOST} -> ${D}"
cp -r ${D}${STAGING_DIR_HOST}/* ${D}
staging_base=`echo ${STAGING_DIR_HOST} | cut -d "/" -f2`
echo "Delete leftover $staging_base"
rm -r ${D}/$staging_base
fi
}
RDEPENDS_${PN} += "bash"
RDEPENDS_${PN} += "bash python3-core"