wok-next diff gcc/receipt @ rev 20180

opencc: fix wget_url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Nov 02 12:28:56 2017 +0100 (2017-11-02)
parents 38cf0c75fa4c
children 90a5eb560fd6
line diff
     1.1 --- a/gcc/receipt	Fri Aug 11 04:54:37 2017 +0300
     1.2 +++ b/gcc/receipt	Thu Nov 02 12:28:56 2017 +0100
     1.3 @@ -13,22 +13,21 @@
     1.4  WGET_URL="ftp://gcc.gnu.org/pub/gcc/releases/gcc-$VERSION/$TARBALL"
     1.5  
     1.6  BUILD_DEPENDS="mpc-library-dev mpfr-dev gmp-dev elfutils-dev zlib-dev"
     1.7 -SPLIT="gcc-lib-base gcc-lib-math libgfortran gfortran libgomp libobjc gcc"
     1.8 +SPLIT="gcc-lib-base gcc-lib-math libgfortran gfortran libgomp libobjc \
     1.9 +libatomic gcc"
    1.10  
    1.11 -# Handle cross compilation (native i486/ARM gcc)
    1.12 -case "$ARCH" in
    1.13 -	i?86)
    1.14 -		ARCH_ARGS="--with-tune=$ARCH"
    1.15 -		pkgversion="SliTaz"
    1.16 -		languages="c,c++,objc,fortran" ;;
    1.17 -	arm*)
    1.18 -		pkgversion="SliTaz ARM"
    1.19 -		languages="c,c++" ;;
    1.20 -esac
    1.21 +compile_rules() {
    1.22 +	# Handle cross compilation (native i486/ARM gcc)
    1.23 +	case "$ARCH" in
    1.24 +		i?86)
    1.25 +			ARCH_ARGS="--with-tune=$ARCH"
    1.26 +			pkgversion="SliTaz"
    1.27 +			languages="c,c++,objc,fortran" ;;
    1.28 +		arm*)
    1.29 +			pkgversion="SliTaz ARM"
    1.30 +			languages="c,c++" ;;
    1.31 +	esac
    1.32  
    1.33 -# Rules to configure and make the package.
    1.34 -compile_rules()
    1.35 -{
    1.36  	# Package slitaz-toolchain use 'cook --options' when rebuilding
    1.37  	# the full SliTaz toolchain.
    1.38  	[ "$2" == "--first-pass" ] && opt=$2
    1.39 @@ -99,19 +98,17 @@
    1.40  	rm -rf $WOK/$PACKAGE/$PACKAGE-build
    1.41  }
    1.42  
    1.43 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.44 -genpkg_rules()
    1.45 -{
    1.46 +genpkg_rules() {
    1.47  	case $PACKAGE in
    1.48  		gcc-lib-base)
    1.49  			copy libgcc_s.so* libstdc++.so*
    1.50  			rm $fs/usr/lib/*.py
    1.51 -			CAT="development|base libraries"
    1.52 +			CAT="libs|base libraries"
    1.53  			DEPENDS="glibc-base"
    1.54  			;;
    1.55  		gcc-lib-math)
    1.56  			copy libquadmath.so*
    1.57 -			CAT="development|math libraries"
    1.58 +			CAT="libs|math libraries"
    1.59  			DEPENDS="glibc-base"
    1.60  			;;
    1.61  		libgfortran)
    1.62 @@ -120,15 +117,14 @@
    1.63  			DEPENDS="gcc-lib-base gcc-lib-math glibc-base"
    1.64  			;;
    1.65  		gfortran)
    1.66 -			copy *gfortran libgfortran.* f951 finclude/
    1.67 -			remove_already_packed
    1.68 +			copy *gfortran libgfortran.* f951 finclude/ @rm
    1.69  			CAT="development|fortran extension"
    1.70  			TAGS="compiler fortran"
    1.71  			DEPENDS="libgfortran gcc glibc-base gmp mpc-library mpfr zlib"
    1.72  			;;
    1.73  		libgomp)
    1.74  			copy libgomp.so*
    1.75 -			CAT="development|API specification for parallel programming"
    1.76 +			CAT="libs|API specification for parallel programming"
    1.77  			DEPENDS="glibc-base"
    1.78  			;;
    1.79  		libobjc)
    1.80 @@ -136,10 +132,14 @@
    1.81  			CAT="libdevel|API for gcc object"
    1.82  			DEPENDS="gcc-lib-base glibc-base"
    1.83  			;;
    1.84 +		libatomic)
    1.85 +			copy libatomic.so*
    1.86 +			CAT="libs|libatomic"
    1.87 +			DEPENDS=" "
    1.88 +			;;
    1.89  		gcc)
    1.90 -			copy bin/ lib/ include/ *.py
    1.91 -			remove_already_packed
    1.92 -			DEPENDS="gcc-lib-base libgomp libobjc \
    1.93 +			copy bin/ lib/ include/ *.py @rm
    1.94 +			DEPENDS="gcc-lib-base libgomp libobjc libatomic \
    1.95  			glibc-base gmp mpc-library mpfr zlib   binutils elfutils"
    1.96  			SUGGESTED="python"
    1.97  			TAGS="compiler C"
    1.98 @@ -147,9 +147,7 @@
    1.99  	esac
   1.100  }
   1.101  
   1.102 -# Post install commands for Tazpkg.
   1.103 -post_install_gcc()
   1.104 -{
   1.105 +post_install_gcc() {
   1.106  	[ -f "$1/lib/cpp" ]    || ln -s ../usr/bin/cpp "$1/lib"
   1.107  	[ -f "$1/usr/bin/cc" ] || ln -s gcc "$1/usr/bin/cc"
   1.108  }