gcc6: use create_wrksrc

This commit is contained in:
Đoàn Trần Công Danh 2021-09-19 23:18:09 +07:00
parent fd8a7b0ddf
commit 23d8de91b5
1 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@ version=6.5.0
revision=1
_majorver="${version%%.*}"
_minorver="${version%.*}"
wrksrc=gcc-${version}
create_wrksrc=yes
hostmakedepends="automake libtool perl flex texinfo zip unzip"
makedepends="gmp-devel mpfr-devel libmpc-devel zlib-devel"
depends="binutils"
@ -61,8 +61,8 @@ case "$XBPS_TARGET_MACHINE" in
esac
post_extract() {
mkdir -p ${wrksrc}/isl
cp -ar ${XBPS_BUILDDIR}/isl-${_isl_version}/* ${wrksrc}/isl/
mv gcc-${version}/* .
mv isl-${_isl_version} isl
# https://gcc.gnu.org/ml/java/2008-04/msg00027.html
cp ${XBPS_SRCDISTDIR}/${pkgname}-${version}/ecj-*.jar ${wrksrc}/ecj.jar
}