wok-6.x rev 25272

created recipe for gcc83-lang (really)
author Hans-G?nter Theisgen
date Sun Jul 17 17:50:48 2022 +0100 (2022-07-17)
parents 8cb87d95977a
children 78c08df7472f
files gcc83-lang/receipt
line diff
     1.1 --- a/gcc83-lang/receipt	Sun Jul 17 17:44:46 2022 +0100
     1.2 +++ b/gcc83-lang/receipt	Sun Jul 17 17:50:48 2022 +0100
     1.3 @@ -1,73 +1,18 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6 -PACKAGE="gcc83-lib-base"
     1.7 +PACKAGE="gcc83-lang"
     1.8  VERSION="8.3.0"
     1.9 -CATEGORY="development"
    1.10 -SHORT_DESC="GCC base libraries, libgcc_s and libstdc++."
    1.11 +CATEGORY="localization"
    1.12 +SHORT_DESC="GCC base libraries - localised messages."
    1.13  WEB_SITE="https://gcc.gnu.org/"
    1.14 -MAINTAINER="developer@slitaz.org"
    1.15 +MAINTAINER="maintainer@slitaz.org"
    1.16  LICENSE="GPL2"
    1.17  
    1.18 +PROVIDE="gcc-lang"
    1.19  WANTED="gcc83"
    1.20 -PROVIDE="gcc-lib-base"
    1.21  
    1.22  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.23  genpkg_rules()
    1.24  {
    1.25 -	mkdir -p $fs/usr/lib $fs/usr/libgcc83
    1.26 -	for i in $install/usr/libgcc83/libgcc_s.so* ; do
    1.27 -		cp -a $i	$fs/usr/lib/next.$(basename $i)
    1.28 -	done
    1.29 -	cp -a $install/usr/libgcc83/libstdc++.so.*.*.*	$fs/usr/lib
    1.30 -	cp -a $install/usr/libgcc83/libstdc++.la	$fs/usr/libgcc83
    1.31 -	ln -s ../lib/libstdc++.so			$fs/usr/libgcc83
    1.32 -	rm -f $fs/usr/lib/*-gdb.py
    1.33 +	cook_copy_folders	locale
    1.34  }
    1.35 -
    1.36 -pre_install()
    1.37 -{
    1.38 -	cd "$1/usr/lib"
    1.39 -	local lib=$(ls libstdc++.so.6.*.* 2> /dev/null)
    1.40 -	[ "$lib" ] && cp -a $lib prev.$lib
    1.41 -	[ -s libgcc_s.so.1 ] && for i in libgcc_s.so*; do
    1.42 -		cp -a $i prev.$i
    1.43 -	done
    1.44 -	cd - >/dev/null
    1.45 -}
    1.46 -
    1.47 -post_install()
    1.48 -{
    1.49 -	cd "$1/usr/lib"
    1.50 -	ln -fs libstdc++.so.6.*.* libstdc++.so.6
    1.51 -	ln -fs libstdc++.so.6.*.* libstdc++.so
    1.52 -	for i in next.libgcc_s.so* ; do
    1.53 -		cp -af $i ${i#next.}
    1.54 -	done
    1.55 -	cd - >/dev/null
    1.56 -}
    1.57 -
    1.58 -pre_remove()
    1.59 -{
    1.60 -	cd "$1/usr/lib"
    1.61 -	local lib=$(ls prev.libstdc++.so.6.*.* 2> /dev/null)
    1.62 -	if [ "$lib" ]; then
    1.63 -		mv -f $lib ${lib#prev.}
    1.64 -		ln -fs ${lib#prev.} libstdc++.so.6
    1.65 -		ln -fs ${lib#prev.} libstdc++.so
    1.66 -	else
    1.67 -		rm -f libstdc++.so.6 libstdc++.so
    1.68 -	fi
    1.69 -	for i in libgcc_s.so* ; do
    1.70 -		cp -a $i next.$i
    1.71 -	done
    1.72 -	cd - >/dev/null
    1.73 -}
    1.74 -
    1.75 -post_remove()
    1.76 -{
    1.77 -	cd "$1/usr/lib"
    1.78 -	[ -s prev.libgcc_s.so.1 ] && for i in prev.libgcc_s.so* ; do
    1.79 -		mv -f $i ${i#prev.}
    1.80 -	done || rm -f libgcc_s.so*
    1.81 -	cd - >/dev/null
    1.82 -}