diff options
Diffstat (limited to 'pcr/gcc-gcj/PKGBUILD')
-rw-r--r-- | pcr/gcc-gcj/PKGBUILD | 112 |
1 files changed, 0 insertions, 112 deletions
diff --git a/pcr/gcc-gcj/PKGBUILD b/pcr/gcc-gcj/PKGBUILD deleted file mode 100644 index 2648936fa..000000000 --- a/pcr/gcc-gcj/PKGBUILD +++ /dev/null @@ -1,112 +0,0 @@ -# Maintainer (Arch): Joey Dumont <joey.dumont@gmail.com> -# Contributor (Arch): Renan Manola <rmanola@gmail.com> -# Contributor (Arch): Stefan Husmann <stefan-husmann@t-online.de> -# Maintainer : Parabola GNU / Linux-libre Aurélien DESBRIÈRES <aurelien@hackers.camp> -# Based on a modified version of the gcc PKGBUILD - -pkgname=gcc-gcj -pkgver=4.9.2 -pkgrel=1 -pkgdesc="The GNU Compiler for Java" -arch=('i686' 'x86_64' 'mips64el') -license=('GPL' 'LGPL') -url="http://gcc.gnu.org" -depends=('gtk2' 'libxtst' 'alsa-lib' 'cloog>=0.16.2-1' 'libmpc>=0.8.2-2' 'classpath') -makedepends=('mpfr>=2.4.2-2' 'elfutils' 'jack' 'zip' 'gcc=4.9.2' 'libart-lgpl') -optdepends=('python2: for running /usr/bin/aot-compile' - 'java-environment: for runnig some jars') -options=('!libtool') -install=$pkgname.install -source=("ftp://gcc.gnu.org/pub/gcc/releases/gcc-${pkgver}/gcc-${pkgver}.tar.bz2") -sha512sums=('e96cba06d572dbe7f382a2b00fd9297dcf9f9219d46a9ad0bd904dc36d5e7db3335e422640b79a27fed6fde91b0731732b94a0e2fbcd47344d6779f8ba1f4f9c') - -build() { - cd "$srcdir"/gcc-${pkgver} - - # Do not install libiberty - sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in - - # Do not run fixincludes - sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in - - # Installs x86_64 libraries /lib - [[ $CARCH == "x86_64" ]] && sed -i '/m64=/s/lib64/lib/' gcc/config/i386/t-linux64 - - # Uses python version 3 as default python - sed -i '1s+python+python2+' libjava/contrib/aot-compile.in - - echo ${pkgver} > gcc/BASE-VER - [ -d build ] || mkdir build - - cd build - - ../configure --prefix=/usr --enable-shared --enable-languages=java \ - --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 --enable-java-awt=gtk --with-java-home="$JAVA_HOME" \ - --enable-libgcj-multifile --disable-plugin --with-system-zlib - CPPFLAGS="$CPPFLAGS -O2" - make -} - -package() { - cd "$srcdir"/gcc-${pkgver}/build - make -j1 DESTDIR=${pkgdir} install-target-libjava - - cd gcc - make -j1 DESTDIR=${pkgdir} java.install-common java.install-man - - install -m755 jc1 ${pkgdir}/usr/lib/gcc/${CHOST}/${pkgver}/ - install -m755 jvgenmain ${pkgdir}/usr/lib/gcc/${CHOST}/${pkgver}/ - - # Remove files which belong to the base gcc package - rm -f ${pkgdir}/usr/bin/{c,g}++ - if [ "${CARCH}" = "x86_64" ]; then - rm -f ${pkgdir}/usr/bin/x86_64-unknown-linux-gnu-{c,g}++ - else - rm -f ${pkgdir}/usr/bin/i686-pc-linux-gnu-{c,g}++ - fi - rm -f ${pkgdir}/usr/man/man1/g++.* - # Rename two files to not conflict to classpath - mv ${pkgdir}/usr/share/info/cp-tools.info ${pkgdir}/usr/share/info/cp-tools-gcj.info - mv ${pkgdir}/usr/share/man/man1/gjdoc.1 ${pkgdir}/usr/share/man/man1/gjdoc.gcj.1 - cd $pkgdir - [[ $CARCH == "x86_64" ]] && rm usr/lib/libgcc_s.so usr/lib/libgcc_s.so.1 \ - usr/lib/gcc/x86_64-unknown-linux-gnu/$pkgver/crtbegin.o \ - usr/lib/gcc/x86_64-unknown-linux-gnu/$pkgver/crtbeginS.o \ - usr/lib/gcc/x86_64-unknown-linux-gnu/$pkgver/crtbeginT.o \ - usr/lib/gcc/x86_64-unknown-linux-gnu/$pkgver/crtend.o \ - usr/lib/gcc/x86_64-unknown-linux-gnu/$pkgver/crtendS.o \ - usr/lib/gcc/x86_64-unknown-linux-gnu/$pkgver/crtfastmath.o \ - usr/lib/gcc/x86_64-unknown-linux-gnu/$pkgver/crtprec32.o \ - usr/lib/gcc/x86_64-unknown-linux-gnu/$pkgver/crtprec64.o \ - usr/lib/gcc/x86_64-unknown-linux-gnu/$pkgver/crtprec80.o \ - usr/lib/gcc/x86_64-unknown-linux-gnu/$pkgver/include/unwind.h \ - usr/lib/gcc/x86_64-unknown-linux-gnu/$pkgver/libgcc.a \ - usr/lib/gcc/x86_64-unknown-linux-gnu/$pkgver/libgcc_eh.a \ - usr/lib/gcc/x86_64-unknown-linux-gnu/$pkgver/libgcov.a - [[ $CARCH == "i686" ]] && rm usr/lib/libgcc_s.so usr/lib/libgcc_s.so.1 \ - usr/lib/gcc/i686-pc-linux-gnu/$pkgver/crtbegin.o \ - usr/lib/gcc/i686-pc-linux-gnu/$pkgver/crtbeginS.o \ - usr/lib/gcc/i686-pc-linux-gnu/$pkgver/crtbeginT.o \ - usr/lib/gcc/i686-pc-linux-gnu/$pkgver/crtend.o \ - usr/lib/gcc/i686-pc-linux-gnu/$pkgver/crtendS.o \ - usr/lib/gcc/i686-pc-linux-gnu/$pkgver/crtfastmath.o \ - usr/lib/gcc/i686-pc-linux-gnu/$pkgver/crtprec32.o \ - usr/lib/gcc/i686-pc-linux-gnu/$pkgver/crtprec64.o \ - usr/lib/gcc/i686-pc-linux-gnu/$pkgver/crtprec80.o \ - usr/lib/gcc/i686-pc-linux-gnu/$pkgver/include/unwind.h \ - usr/lib/gcc/i686-pc-linux-gnu/$pkgver/libgcc.a \ - usr/lib/gcc/i686-pc-linux-gnu/$pkgver/libgcc_eh.a \ - usr/lib/gcc/i686-pc-linux-gnu/$pkgver/libgcov.a - - find ${pkgdir}/usr/lib -type f -name '*.so.*' -exec strip --strip-unneeded {} \; - - linkdir=`basename $pkgdir/usr/lib/gcj-${pkgver}*` - ln -sf $linkdir ${pkgdir}/usr/lib/gcj-${pkgver%.?} - ln -sf libgcj-${pkgver}.jar ${pkgdir}/usr/share/java/libgcj-${pkgver%.?}.jar - ln -sf libgcj-${pkgver}.jar ${pkgdir}/usr/share/java/libgcj.jar - ln -sf libgcj-tools-${pkgver}.jar ${pkgdir}/usr/share/java/libgcj-tools-${pkgver%.?}.jar - ln -sf libgcj-tools-${pkgver}.jar ${pkgdir}/usr/share/java/libgcj-tools.jar -} |