blob: 422b764e794b105beb943bbb3b818794939839d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# Description: Script Perl permettant de colorer la sortie de GCC.
# URL: http://www.schlueters.de/colorgcc.html
# Maintainer: NuTyX core team
# Packager: piernov <piernov@piernov.org>
# Depends on: perl
# Run on: perl
name=colorgcc
version=1.3.2
release=1
source=(http://mir1.ovh.net/gentoo-distfiles/distfiles/$name-$version.tar.gz
colorgcc_1.3.2.0-10.diff
colorgcc.sh)
build() {
cd $name-$version
patch -p1 < ../colorgcc_1.3.2.0-10.diff
patch -p1 < debian/patches/005_old_changes.patch
patch -p1 < debian/patches/01_split_non_quoted.patch
patch -p1 < debian/patches/02_stderr.patch
patch -p1 < debian/patches/03_color_warnings.patch
patch -p1 < debian/patches/04_g++_color.patch
patch -p1 < debian/patches/05_console-colors.patch
patch -p1 < debian/patches/06_use_distcc.patch
patch -p1 < debian/patches/07_invalid_attr.patch
patch -p1 < debian/patches/08_force_color_opt.patch
patch -p1 < debian/patches/09_color_warnings.patch
patch -p1 < debian/patches/10_utf8_output.patch
install -D -m755 colorgcc $PKG/usr/bin/colorgcc
install -D -m644 colorgccrc $PKG/etc/colorgcc/colorgccrc
install -D -m644 debian/colorgccrc.5 $PKG/usr/share/man/man5/colorgccrc.5
install -D -m644 debian/colorgcc.1 $PKG/usr/share/man/man1/colorgcc.1
install -d $PKG/usr/lib/colorgcc/bin
for i in cc c++ gcc g++ ; do
ln -s /usr/bin/colorgcc $PKG/usr/lib/colorgcc/bin/${i}
done
install -D -m755 ../colorgcc.sh $PKG/etc/profile.d/colorgcc.sh
}
|