[arch-commits] Commit in gcc/trunk (PKGBUILD gcc.install)

andyrtr at archlinux.org andyrtr at archlinux.org
Fri Aug 29 10:01:32 UTC 2008


    Date: Friday, August 29, 2008 @ 06:01:31
  Author: andyrtr
Revision: 10576

upgpkg: gcc 4.3.2-1
    new toolchain for new kernel-headers, gcc-4.3.2 and added info files all around

Added:
  gcc/trunk/gcc.install
Modified:
  gcc/trunk/PKGBUILD

-------------+
 PKGBUILD    |   31 +++++++++++++++++--------------
 gcc.install |   20 ++++++++++++++++++++
 2 files changed, 37 insertions(+), 14 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2008-08-29 09:51:25 UTC (rev 10575)
+++ PKGBUILD	2008-08-29 10:01:31 UTC (rev 10576)
@@ -3,29 +3,30 @@
 # Maintainer: Andreas Radke <andyrtr at archlinux.org>
 
 pkgname=gcc
-pkgver=4.3.1
-pkgrel=3
-_snapshot=4.3-20080724
+pkgver=4.3.2
+pkgrel=1
+#_snapshot=4.3-20080724
 pkgdesc="The GNU Compiler Collection"
 arch=(i686 x86_64)
 license=('GPL' 'LGPL')
 groups=('base-devel')
 url="http://gcc.gnu.org"
-depends=('binutils>=2.18-8' "gcc-libs>=${pkgver}" 'mpfr>=2.3.1')
+depends=('binutils>=2.18-9' "gcc-libs>=${pkgver}" 'mpfr>=2.3.1')
 makedepends=('texinfo')
 replaces=('gcc-fortran' 'gcc-objc')
 options=('!libtool')
-source=(#ftp://gcc.gnu.org/pub/gcc/releases/gcc-${pkgver}/gcc-{core,g++,fortran,objc,java}-${pkgver}.tar.bz2
-	ftp://gcc.gnu.org/pub/gcc/snapshots/${_snapshot}/gcc-{core,g++,fortran,objc,java}-${_snapshot}.tar.bz2
+install=gcc.install
+source=(ftp://gcc.gnu.org/pub/gcc/releases/gcc-${pkgver}/gcc-{core,g++,fortran,objc,java}-${pkgver}.tar.bz2
+	#ftp://gcc.gnu.org/pub/gcc/snapshots/${_snapshot}/gcc-{core,g++,fortran,objc,java}-${_snapshot}.tar.bz2
 	ftp://gcc.gnu.org/pub/gcc/libstdc++/doxygen/libstdc++-man-20080118.tar.bz2
 	gcc_pure64.patch
 	gcc-hash-style-both.patch
 	gcc-java-driver.patch)
-md5sums=('99ce6170e379779fe9c0971f9e27c704'
-         'e39db43584ec603b314348405c753bd5'
-         '76b9d6a71eb2cd778cd6ad3e9d576c64'
-         '2b2456702ca6362b01583160e888be14'
-         '4a52cbdccc8958738085c21e0db7d847'
+md5sums=('dd8048b43d3d4e5595bcade47b9144c6'
+         'bfdf8d19e1b85f522f8b8d48d25e7aaa'
+         'b3294ae213d65e05aacb9b46d11e1025'
+         '08efa42ef267f8759146aa4e11904d25'
+         '4a1dee5782dccc505072c6401cf1d4c3'
          '990881456a89b1ffbd68d2d7188759da'
          '4030ee1c08dd1e843c0225b772360e76'
          'bb420bc84b1104455b7230b1cd4b96c2'
@@ -37,8 +38,8 @@
     return 1
   fi
   
-  #cd ${srcdir}/gcc-${pkgver}
-  cd ${srcdir}/gcc-${_snapshot}
+  cd ${srcdir}/gcc-${pkgver}
+  #cd ${srcdir}/gcc-${_snapshot}
   # Don't install libiberty
   sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in
 
@@ -54,7 +55,7 @@
   cd build
   ../configure --prefix=/usr --enable-shared \
       --enable-languages=c,c++,fortran,objc,obj-c++,treelang \
-      --enable-threads=posix --mandir=/usr/share/man \
+      --enable-threads=posix --mandir=/usr/share/man --infodir=/usr/share/info \
       --enable-__cxa_atexit  --disable-multilib --libdir=/usr/lib \
       --libexecdir=/usr/lib --enable-clocale=gnu --disable-libstdcxx-pch \
       --with-tune=generic
@@ -75,4 +76,6 @@
 
   # Remove fixed includes, either no need for them, or they're not complete
   rm -rf ${pkgdir}/usr/lib/${CHOST}/${pkgver}/include-fixed/*
+
+  rm -f ${pkgdir}/usr/share/info/dir
 }

Added: gcc.install
===================================================================
--- gcc.install	                        (rev 0)
+++ gcc.install	2008-08-29 10:01:31 UTC (rev 10576)
@@ -0,0 +1,20 @@
+infodir=/usr/share/info
+filelist=(cpp.info cppinternals.info gcc.info gccinstall.info gccint.info gfortran.info libgomb.info treelang.info)
+
+post_install() {
+  for file in ${filelist[@]}; do
+    install-info $infodir/$file $infodir/dir 2> /dev/null
+  done
+}
+
+post_upgrade() {
+  post_install $1
+}
+
+pre_remove() {
+  for file in ${filelist[@]}; do
+    install-info --delete $infodir/$file $infodir/dir 2> /dev/null
+  done
+}
+
+# vim:set ts=2 sw=2 et:




More information about the arch-commits mailing list