diff options
author | Danny Rawlins <romster@shortcircuit.net.au> | 2007-02-15 16:00:38 +1100 |
---|---|---|
committer | Danny Rawlins <romster@shortcircuit.net.au> | 2007-02-15 16:00:38 +1100 |
commit | 75cc43a4a0c7d9e8c8c71ab4f2f027fb0a9b1593 (patch) | |
tree | 168d477bfd6856077b05f6fc2747df7187efcc8b /gcc-fortran | |
parent | de85503f6cd8e6dc0ce9533dd5ddea6e81c1025a (diff) | |
download | contrib-75cc43a4a0c7d9e8c8c71ab4f2f027fb0a9b1593.tar.gz contrib-75cc43a4a0c7d9e8c8c71ab4f2f027fb0a9b1593.tar.xz |
gcc-fortran: un-needed files fix
Diffstat (limited to 'gcc-fortran')
-rw-r--r-- | gcc-fortran/Pkgfile | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/gcc-fortran/Pkgfile b/gcc-fortran/Pkgfile index a9a73850d..7d3aa835f 100644 --- a/gcc-fortran/Pkgfile +++ b/gcc-fortran/Pkgfile @@ -6,13 +6,13 @@ name=gcc-fortran version=4.0.3 -release=2 +release=3 source=(ftp://sources.redhat.com/pub/gcc/releases/gcc-$version/gcc-{core,fortran}-$version.tar.bz2 \ - $name-$version-version.patch) + gcc-fortran-$version-version.patch) build() { - patch -d gcc-$version -p1 -i $SRC/$name-$version-version.patch - cd gcc-$version + patch -d gcc-$version -p1 -i $SRC/gcc-fortran-$version-version.patch + cd gcc-$version mkdir build cd build @@ -39,15 +39,14 @@ build() { rm \ $PKG/usr/lib/libiberty.a \ - $PKG/usr/bin/*-linux-gnu-* + $PKG/usr/bin/*-linux-gnu-* \ + $PKG/usr/man/man1/{cpp,gcc,gcov}.1 rm -r \ $PKG/usr/info \ - $PKG/usr/lib/gcc/*/$version/install-tools - - rm -fr \ - $PKG/usr/man/man1/{cpp,gcc,gcov}.1.gz \ - $PKG/usr/man/man7 + $PKG/usr/man/man7 \ + $PKG/usr/lib/gcc/*/$version/install-tools \ + $PKG/usr/lib/gcc/*/$version/include # remove files already on the system out of the port for i in $(find $PKG | sed -e "s|$PKG|/|"); do @@ -59,7 +58,7 @@ build() { # Remove empty directories find $PKG -depth -empty -exec rm -r {} \; - # remove build links from *.la files + # remove build paths from *.la files for i in `find $PKG -name '*.la' | sed -e "s|$PKG|/|"`; do sed -i "s|-L$SRC[^ ]* ||g" $PKG/$i done |