mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 22:53:51 +02:00
gcc: use create_wrksrc
This commit is contained in:
parent
332e41d664
commit
fd8a7b0ddf
1 changed files with 7 additions and 6 deletions
|
@ -15,7 +15,7 @@ _gmp_version=6.2.0
|
||||||
_mpfr_version=4.1.0
|
_mpfr_version=4.1.0
|
||||||
_mpc_version=1.1.0
|
_mpc_version=1.1.0
|
||||||
_isl_version=0.21
|
_isl_version=0.21
|
||||||
wrksrc=gcc-${version/pre/_pre}
|
create_wrksrc=yes
|
||||||
short_desc="GNU Compiler Collection"
|
short_desc="GNU Compiler Collection"
|
||||||
maintainer="Enno Boland <gottox@voidlinux.org>"
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
||||||
homepage="http://gcc.gnu.org"
|
homepage="http://gcc.gnu.org"
|
||||||
|
@ -155,11 +155,12 @@ if [ "$CROSS_BUILD" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
post_extract() {
|
post_extract() {
|
||||||
mkdir -p ${wrksrc}/{gmp,mpfr,mpc,isl}
|
mv gcc-${version/pre/_pre}/* gcc-${version/pre/_pre}/.??* .
|
||||||
cp -ar ${XBPS_BUILDDIR}/gmp-${_gmp_version}/* ${wrksrc}/gmp/
|
rmdir gcc-${version/pre/_pre}
|
||||||
cp -ar ${XBPS_BUILDDIR}/mpfr-${_mpfr_version}/* ${wrksrc}/mpfr/
|
mv gmp-${_gmp_version} gmp
|
||||||
cp -ar ${XBPS_BUILDDIR}/mpc-${_mpc_version}/* ${wrksrc}/mpc/
|
mv mpfr-${_mpfr_version} mpfr
|
||||||
cp -ar ${XBPS_BUILDDIR}/isl-${_isl_version}/* ${wrksrc}/isl/
|
mv mpc-${_mpc_version} mpc
|
||||||
|
mv isl-${_isl_version} isl
|
||||||
|
|
||||||
if [ "$build_option_gnatboot" ]; then
|
if [ "$build_option_gnatboot" ]; then
|
||||||
local f="${XBPS_SRCDISTDIR}/${pkgname}-${version}/${_gnat_tarball}"
|
local f="${XBPS_SRCDISTDIR}/${pkgname}-${version}/${_gnat_tarball}"
|
||||||
|
|
Loading…
Add table
Reference in a new issue