xbps-src: don't use unversioned python executable

This commit is contained in:
Alessio Sergi 2018-09-02 20:31:26 +02:00
parent ebc72b9655
commit c50a8c3af6
12 changed files with 17 additions and 17 deletions

View file

@ -32,7 +32,7 @@ do_build() {
-e "/^gccflags.*/a gldflags = '${LDFLAGS}'.split()" \ -e "/^gccflags.*/a gldflags = '${LDFLAGS}'.split()" \
-e "s;self.ldflags = list(ldflags);self.ldflags = gldflags + list(ldflags);" \ -e "s;self.ldflags = list(ldflags);self.ldflags = gldflags + list(ldflags);" \
-e "s/cc='g++'/cc='$CXX'/" -e "s/cc='g++'/cc='$CXX'/"
python make.py python2 make.py
} }
do_install() { do_install() {

View file

@ -62,7 +62,7 @@ do_configure() {
;; ;;
esac esac
python configure.py \ python2 configure.py \
--distribution-info="Void Linux botan-${version}_${revision}" \ --distribution-info="Void Linux botan-${version}_${revision}" \
--cc-abi-flags="-arch ${_arch} -stdlib=libc++" \ --cc-abi-flags="-arch ${_arch} -stdlib=libc++" \
--cpu=${_cpu} \ --cpu=${_cpu} \

View file

@ -19,14 +19,14 @@ if [ -z "CROSS_BUILD" ]; then
fi fi
do_configure() { do_configure() {
python waf configure --prefix=/usr --alsa --classic --dbus python2 waf configure --prefix=/usr --alsa --classic --dbus
} }
do_build() { do_build() {
python waf build ${makejobs} python2 waf build ${makejobs}
} }
do_install() { do_install() {
python waf install --destdir=${DESTDIR} python2 waf install --destdir=${DESTDIR}
# pam_limits(8) support # pam_limits(8) support
vinstall ${FILESDIR}/jack-limitsd.conf 644 etc/security/limits.d jack.conf vinstall ${FILESDIR}/jack-limitsd.conf 644 etc/security/limits.d jack.conf

View file

@ -21,9 +21,9 @@ CXXFLAGS=-std=c++11
do_configure() { do_configure() {
if [ "$CROSS_BUILD" ];then if [ "$CROSS_BUILD" ];then
python waf configure --prefix=/usr --enable-liblash python2 waf configure --prefix=/usr --enable-liblash
else else
python waf configure --prefix=/usr --enable-liblash --enable-pylash python2 waf configure --prefix=/usr --enable-liblash --enable-pylash
fi fi
} }

View file

@ -67,8 +67,8 @@ do_build() {
document_dir=/usr/share/licenses/${pkgname} document_dir=/usr/share/licenses/${pkgname}
use_libprotobuf=1 use_libprotobuf=1
use_libzinnia=1 use_libzinnia=1
" python build_mozc.py gyp --target_platform=Linux " python2 build_mozc.py gyp --target_platform=Linux
python build_mozc.py build -c Release $targets python2 build_mozc.py build -c Release $targets
sed -i 's|/usr/libexec/|/usr/lib/ibus-mozc/|g' out_linux/Release/gen/unix/ibus/mozc.xml sed -i 's|/usr/libexec/|/usr/lib/ibus-mozc/|g' out_linux/Release/gen/unix/ibus/mozc.xml
} }

View file

@ -36,7 +36,7 @@ do_build() {
make -C contrib/notmuch-mutt make -C contrib/notmuch-mutt
make -C bindings make -C bindings
cd bindings/python cd bindings/python
python setup.py build --build-base=build-2 python2 setup.py build --build-base=build-2
} }
do_install() { do_install() {

View file

@ -13,7 +13,7 @@ distfiles="https://github.com/KhronosGroup/OpenCL-CLHPP/archive/v2.0.10.tar.gz"
checksum=fa27456295c3fa534ce824eb0314190a8b3ebd3ba4d93a0b1270fc65bf378f2b checksum=fa27456295c3fa534ce824eb0314190a8b3ebd3ba4d93a0b1270fc65bf378f2b
do_build() { do_build() {
python gen_cl_hpp.py -i input_cl.hpp -o cl.hpp python2 gen_cl_hpp.py -i input_cl.hpp -o cl.hpp
} }
do_install() { do_install() {

View file

@ -16,7 +16,7 @@ distfiles="${PYPI_SITE}/a/appdirs/appdirs-${version}.tar.gz"
checksum=9e5896d1372858f8dd3344faf4e5014d21849c756c8d5701f78f8a103b372d92 checksum=9e5896d1372858f8dd3344faf4e5014d21849c756c8d5701f78f8a103b372d92
do_check() { do_check() {
python setup.py test python2 setup.py test
} }
post_install() { post_install() {

View file

@ -18,7 +18,7 @@ checksum=20ceb9232f9a412ce6554056a6b5039013d0755261d57b5c8ada7035773de795
alternatives="python-gitlab:gitlab:/usr/bin/gitlab2" alternatives="python-gitlab:gitlab:/usr/bin/gitlab2"
do_check() { do_check() {
python setup.py test python2 setup.py test
} }
python3-gitlab_package() { python3-gitlab_package() {

View file

@ -5,4 +5,4 @@ then
chown sickbeard:sickbeard /var/lib/sickbeard chown sickbeard:sickbeard /var/lib/sickbeard
fi fi
exec chpst -usickbeard:sickbeard /usr/bin/python /usr/share/sickbeard/SickBeard.py --datadir=/var/lib/sickbeard --quiet --nolaunch exec chpst -usickbeard:sickbeard python2 /usr/share/sickbeard/SickBeard.py --datadir=/var/lib/sickbeard --quiet --nolaunch

View file

@ -1,7 +1,7 @@
# Template build file for 'sickbeard'. # Template build file for 'sickbeard'.
pkgname=sickbeard pkgname=sickbeard
version=507 version=507
revision=1 revision=2
depends="python-cheetah" depends="python-cheetah"
noarch=yes noarch=yes
short_desc="Usenet personal video recorder" short_desc="Usenet personal video recorder"

View file

@ -19,7 +19,7 @@ distfiles="http://launchpad.net/wicd/1.7/${version}/+download/wicd-${version}.ta
checksum=67989614004773db349791c37675efb914d084bdb221356a05e4369c35e7eb62 checksum=67989614004773db349791c37675efb914d084bdb221356a05e4369c35e7eb62
do_build() { do_build() {
python setup.py configure --verbose --no-install-init \ python2 setup.py configure --verbose --no-install-init \
--resume=/usr/share/wicd/scripts \ --resume=/usr/share/wicd/scripts \
--suspend=/usr/share/wicd/scripts \ --suspend=/usr/share/wicd/scripts \
--python=/usr/bin/python2 --lib=/usr/lib \ --python=/usr/bin/python2 --lib=/usr/lib \
@ -27,7 +27,7 @@ do_build() {
--no-install-gnome-shell-extensions --no-install-gnome-shell-extensions
} }
do_install() { do_install() {
python setup.py install --root=${DESTDIR} python2 setup.py install --root=${DESTDIR}
vinstall ${FILESDIR}/wicd.desktop 644 usr/share/applications vinstall ${FILESDIR}/wicd.desktop 644 usr/share/applications
vmkdir usr/lib/wicd vmkdir usr/lib/wicd