Ignore my last mail, there were issues with the patch.
I've attached the correct one now.

-A

On Mon, Nov 13, 2017 at 10:58:08AM +0100, Andreas Grapentin wrote:
> 
> On Mon, Nov 13, 2017 at 07:40:24AM +0000, Josh Branning wrote:
> > You have seen ftp://sourceware.org/pub/java/ecj-4.9-source.tar.bz2 from
> > sourceware's ftp I take it? Or is there a problem building?
> 
> I had indeed not seen that yet, thanks for the pointer. I attached an
> updated patch that I will commit later, unless more issues are pointed
> out.
> 
> Thanks for the assistance :)
> 
> -Andreas
> 
> -- 
> 
> ------------------------------------------------------------------------------
> my GPG Public Key:                 https://files.grapentin.org/.gpg/public.key
> ------------------------------------------------------------------------------

> diff --git a/pcr/gcc-gcj-ecj-bin/PKGBUILD b/pcr/gcc-gcj-ecj-bin/PKGBUILD
> new file mode 100644
> index 000000000..16bd7de2f
> --- /dev/null
> +++ b/pcr/gcc-gcj-ecj-bin/PKGBUILD
> @@ -0,0 +1,28 @@
> +# Maintainer: Andreas Grapentin <[email protected]>
> +# Maintainer (AUR): Joey Dumont <[email protected]>
> +# Contributor (AUR): Pierre Bourdon <[email protected]>
> +# Contributor (AUR): larsrh <[email protected]>
> +
> +pkgname=gcc-gcj-ecj
> +
> +pkgver=4.9
> +pkgrel=4.parabola1
> +arch=(any)
> +
> +pkgdesc="A fork of the Eclipse Java bytecode compiler for GCJ"
> +url="http://gcc.gnu.org/java/";
> +license=(EPL)
> +
> +depends=(gcc6-gcj)
> +provides=(eclipse-ecj)
> +conflicts=(eclipse-ecj)
> +
> +source=(http://mirrors.kernel.org/sources.redhat.com/java/ecj-$pkgver.jar 
> ecj1)
> +md5sums=('7339f199ba11c941890031fd9981d7be'
> +         'ee312c2f80c73152dde859ea66e494d0')
> +noextract=("ecj-$pkgver.jar")
> +
> +package() {
> +     install -D -m644 $srcdir/ecj-$pkgver.jar 
> $pkgdir/usr/share/java/eclipse-ecj.jar
> +     install -D -m755 $srcdir/ecj1 $pkgdir/usr/bin/ecj1
> +}
> diff --git a/pcr/gcc-gcj-ecj-bin/ecj1 b/pcr/gcc-gcj-ecj-bin/ecj1
> new file mode 100755
> index 000000000..eee1f3363
> --- /dev/null
> +++ b/pcr/gcc-gcj-ecj-bin/ecj1
> @@ -0,0 +1,5 @@
> +#!/bin/sh
> +gij-6 -cp /usr/share/java/eclipse-ecj.jar \
> +     org.eclipse.jdt.internal.compiler.batch.GCCMain \
> +     ${1+"$@"}
> +
> diff --git a/pcr/gcc-gcj-ecj/PKGBUILD b/pcr/gcc-gcj-ecj/PKGBUILD
> new file mode 100644
> index 000000000..0f5e7d983
> --- /dev/null
> +++ b/pcr/gcc-gcj-ecj/PKGBUILD
> @@ -0,0 +1,49 @@
> +# Maintainer: Andreas Grapentin <[email protected]>
> +# Maintainer (AUR): Joey Dumont <[email protected]>
> +# Contributor (AUR): Pierre Bourdon <[email protected]>
> +# Contributor (AUR): larsrh <[email protected]>
> +
> +pkgname=gcc-gcj-ecj
> +
> +pkgver=4.9
> +pkgrel=4.parabola1
> +arch=(any)
> +
> +pkgdesc="A fork of the Eclipse Java bytecode compiler for GCJ"
> +url="http://gcc.gnu.org/java/";
> +license=(EPL)
> +
> +makedepends=(eclipse-ecj java-environment)
> +depends=(gcc6-gcj)
> +provides=(eclipse-ecj)
> +conflicts=(eclipse-ecj)
> +
> +source=("ftp://sourceware.org/pub/java/ecj-$pkgver-source.tar.bz2";
> +        
> "https://git.eclipse.org/c/jdt/eclipse.jdt.core.git/snapshot/R4_3_1.tar.gz";
> +        "ecj1")
> +sha256sums=('a48a8bfc419fab20646c49069ae2e0c07b4e73fc56572ac3b7e0151a0388f1c5'
> +            
> 'affb39ca4f5fab6800846e4279fcd0684ddd3753a3bde475e6505f715af9ec61'
> +            
> '3dcf27b250ff7766a9240159b30b4eb5bf8544da93984154643c3068c5dca2d4')
> +noextract=("ecj-$pkgver-source.tar.bz2")
> +
> +prepare() {
> +  mkdir -p $pkgname-$pkgver
> +  cd $pkgname-$pkgver
> +
> +  tar -xf ../ecj-$pkgver-source.tar.bz2
> +  mv ../R4_3_1.tar.gz .
> +
> +  make checkout
> +}
> +
> +build() {
> +  cd $pkgname-$pkgver
> +
> +  make compile
> +  make ecj.jar ecj-source.tar.bz2
> +}
> +
> +package() {
> +     install -D -m644 $srcdir/$pkgname-$pkgver/ecj.jar 
> $pkgdir/usr/share/java/eclipse-ecj.jar
> +     install -D -m755 $srcdir/ecj1 $pkgdir/usr/bin/ecj1
> +}
> diff --git a/pcr/gcc-gcj-ecj/ecj1 b/pcr/gcc-gcj-ecj/ecj1
> new file mode 100644
> index 000000000..eee1f3363
> --- /dev/null
> +++ b/pcr/gcc-gcj-ecj/ecj1
> @@ -0,0 +1,5 @@
> +#!/bin/sh
> +gij-6 -cp /usr/share/java/eclipse-ecj.jar \
> +     org.eclipse.jdt.internal.compiler.batch.GCCMain \
> +     ${1+"$@"}
> +
> diff --git a/pcr/pdftk/Makefile.Parabola b/pcr/pdftk/Makefile.Parabola
> new file mode 100644
> index 000000000..7a0dd09d6
> --- /dev/null
> +++ b/pcr/pdftk/Makefile.Parabola
> @@ -0,0 +1,22 @@
> +# Based on 'Makefile.Arch', part of pdftk
> +# Copyright (c) 2004-2012 Sid Steward
> +
> +export CXX= g++-6
> +export GCJ= gcj-6
> +export GIJ= gij-6
> +export GCJH= gcjh-6
> +export GJAR= gjar-6
> +export CC1PLUS= cc1plus-6
> +export LIBGCJ= /usr/share/java/libgcj.jar
> +export AR= ar
> +export RM= rm
> +export ARFLAGS= rs
> +export RMFLAGS= -vf
> +export CPPFLAGS= -DPATH_DELIM=0x2f -DASK_ABOUT_WARNINGS=false 
> -DUNBLOCK_SIGNALS -fdollars-in-identifiers -fPIC
> +GCC6VER=`gcc -dumpversion`
> +export CXXFLAGS= -O2 -fPIC 
> -I/usr/lib/gcc/x86_64-pc-linux-gnu/${GCC6VER}/include/c++/ 
> -I/usr/lib/gcc/x86_64-pc-linux-gnu/${GCC6VER}/include/c++/x86_64-pc-linux-gnu
> +export GCJFLAGS= -Wno-all -fsource=1.3 -O2 -fPIC
> +export GCJHFLAGS= -force
> +export LDLIBS= -lgcj
> +
> +include Makefile.Base
> diff --git a/pcr/pdftk/PKGBUILD b/pcr/pdftk/PKGBUILD
> new file mode 100644
> index 000000000..5fde66018
> --- /dev/null
> +++ b/pcr/pdftk/PKGBUILD
> @@ -0,0 +1,61 @@
> +# Maintainer: Andreas Grapentin <[email protected]>
> +# Maintainer (AUR): Joey Dumont <[email protected]>
> +# Contributor (AUR): osc
> +# Contributor (AUR): StefanHusmann
> +# Contributor (AUR): larsrh <[email protected]>
> +
> +pkgname=pdftk
> +
> +pkgver=2.02
> +pkgrel=18.parabola1
> +arch=(i686 x86_64)
> +
> +pkgdesc="Pdftk is a simple tool for doing everyday things with PDF documents"
> +url="http://www.pdfhacks.com/pdftk";
> +license=(GPL)
> +
> +depends=(gcc6-gcj gcc-gcj-ecj)
> +options=('!makeflags')
> +
> +source=("http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/$pkgname-$pkgver-src.zip";
> +        "Makefile.Parabola"
> +        "pdftk"
> +)
> +sha256sums=('118f6a25fd3acaafb58824dce6f97cdc07e56050e666b90e4c4ef426ea37b8c1'
> +            
> '4451a807817b5e40755b79686bce5751c70758c83302a4214c23c4f361168620'
> +            
> '9c49337ed05759e986f24ac4173f727567c617e5f160e4c9ec7e089e120af3c3')
> +
> +prepare() {
> +  cd "$srcdir/$pkgname-$pkgver-dist/$pkgname"
> +
> +  cp "$srcdir/Makefile.Parabola" .
> +}
> +
> +build() {
> +  cd "$srcdir/$pkgname-$pkgver-dist/$pkgname"
> +
> +  make -f Makefile.Parabola
> +}
> +
> +package() {
> +  cd "$srcdir/$pkgname-$pkgver-dist/$pkgname"
> +
> +  # Install binary
> +  install -D -m 755 pdftk $pkgdir/usr/bin/pdftk-bin
> +
> +  # Install licenses and adjust permissions
> +  cd ..
> +  LICENSE_DIR="$pkgdir/usr/share/licenses/$pkgname"
> +  mkdir -p "$LICENSE_DIR"
> +  cp -R license_gpl_pdftk/* "$LICENSE_DIR"
> +  chmod -R 0755 "$LICENSE_DIR"
> +  find "$LICENSE_DIR" -type f -exec chmod -x {} \;
> +
> +  # Install manpage
> +  install -D -m 644 "pdftk.1" "$pkgdir/usr/share/man/man1/pdftk.1"
> +
> +  # Install wrapper that sets the proper environment variables.
> +  sed -i "s/CARCH/${CARCH}/" ${srcdir}/pdftk
> +  sed -i "s/GCCVER/`gcc-6 -dumpversion`/" ${srcdir}/pdftk
> +  install -D -m 755 ${srcdir}/pdftk ${pkgdir}/usr/bin/pdftk
> +}
> diff --git a/pcr/pdftk/pdftk b/pcr/pdftk/pdftk
> new file mode 100644
> index 000000000..12d821bd0
> --- /dev/null
> +++ b/pcr/pdftk/pdftk
> @@ -0,0 +1,3 @@
> +#!/bin/bash
> +export 
> LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/lib/gcc/CARCH-pc-linux-gnu/GCCVER
> +pdftk-bin "$@"




> _______________________________________________
> Dev mailing list
> [email protected]
> https://lists.parabola.nu/mailman/listinfo/dev


-- 

------------------------------------------------------------------------------
my GPG Public Key:                 https://files.grapentin.org/.gpg/public.key
------------------------------------------------------------------------------
diff --git a/pcr/gcc-gcj-ecj/PKGBUILD b/pcr/gcc-gcj-ecj/PKGBUILD
new file mode 100644
index 000000000..a340a17ef
--- /dev/null
+++ b/pcr/gcc-gcj-ecj/PKGBUILD
@@ -0,0 +1,46 @@
+# Maintainer: Andreas Grapentin <[email protected]>
+
+pkgname=gcc-gcj-ecj
+
+pkgver=4.9
+pkgrel=4.parabola1
+arch=(any)
+
+pkgdesc="A fork of the Eclipse Java bytecode compiler for GCJ"
+url="http://gcc.gnu.org/java/";
+license=(EPL)
+
+makedepends=(eclipse-ecj java-environment)
+depends=(gcc6-gcj)
+provides=(eclipse-ecj)
+conflicts=(eclipse-ecj)
+
+source=("ftp://sourceware.org/pub/java/ecj-$pkgver-source.tar.bz2";
+        "https://git.eclipse.org/c/jdt/eclipse.jdt.core.git/snapshot/R4_3_1.tar.gz";
+        "ecj1")
+sha256sums=('a48a8bfc419fab20646c49069ae2e0c07b4e73fc56572ac3b7e0151a0388f1c5'
+            'affb39ca4f5fab6800846e4279fcd0684ddd3753a3bde475e6505f715af9ec61'
+            '3dcf27b250ff7766a9240159b30b4eb5bf8544da93984154643c3068c5dca2d4')
+noextract=("ecj-$pkgver-source.tar.bz2")
+
+prepare() {
+  mkdir -p $pkgname-$pkgver
+  cd $pkgname-$pkgver
+
+  tar -xf ../ecj-$pkgver-source.tar.bz2
+  mv ../R4_3_1.tar.gz .
+
+  make checkout
+}
+
+build() {
+  cd $pkgname-$pkgver
+
+  make compile
+  make ecj.jar ecj-source.tar.bz2
+}
+
+package() {
+	install -D -m644 $srcdir/$pkgname-$pkgver/ecj.jar $pkgdir/usr/share/java/eclipse-ecj.jar
+	install -D -m755 $srcdir/ecj1 $pkgdir/usr/bin/ecj1
+}
diff --git a/pcr/gcc-gcj-ecj/ecj1 b/pcr/gcc-gcj-ecj/ecj1
new file mode 100644
index 000000000..eee1f3363
--- /dev/null
+++ b/pcr/gcc-gcj-ecj/ecj1
@@ -0,0 +1,5 @@
+#!/bin/sh
+gij-6 -cp /usr/share/java/eclipse-ecj.jar \
+	org.eclipse.jdt.internal.compiler.batch.GCCMain \
+	${1+"$@"}
+
diff --git a/pcr/pdftk/Makefile.Parabola b/pcr/pdftk/Makefile.Parabola
new file mode 100644
index 000000000..7a0dd09d6
--- /dev/null
+++ b/pcr/pdftk/Makefile.Parabola
@@ -0,0 +1,22 @@
+# Based on 'Makefile.Arch', part of pdftk
+# Copyright (c) 2004-2012 Sid Steward
+
+export CXX= g++-6
+export GCJ= gcj-6
+export GIJ= gij-6
+export GCJH= gcjh-6
+export GJAR= gjar-6
+export CC1PLUS= cc1plus-6
+export LIBGCJ= /usr/share/java/libgcj.jar
+export AR= ar
+export RM= rm
+export ARFLAGS= rs
+export RMFLAGS= -vf
+export CPPFLAGS= -DPATH_DELIM=0x2f -DASK_ABOUT_WARNINGS=false -DUNBLOCK_SIGNALS -fdollars-in-identifiers -fPIC
+GCC6VER=`gcc -dumpversion`
+export CXXFLAGS= -O2 -fPIC -I/usr/lib/gcc/x86_64-pc-linux-gnu/${GCC6VER}/include/c++/ -I/usr/lib/gcc/x86_64-pc-linux-gnu/${GCC6VER}/include/c++/x86_64-pc-linux-gnu
+export GCJFLAGS= -Wno-all -fsource=1.3 -O2 -fPIC
+export GCJHFLAGS= -force
+export LDLIBS= -lgcj
+
+include Makefile.Base
diff --git a/pcr/pdftk/PKGBUILD b/pcr/pdftk/PKGBUILD
new file mode 100644
index 000000000..5fde66018
--- /dev/null
+++ b/pcr/pdftk/PKGBUILD
@@ -0,0 +1,61 @@
+# Maintainer: Andreas Grapentin <[email protected]>
+# Maintainer (AUR): Joey Dumont <[email protected]>
+# Contributor (AUR): osc
+# Contributor (AUR): StefanHusmann
+# Contributor (AUR): larsrh <[email protected]>
+
+pkgname=pdftk
+
+pkgver=2.02
+pkgrel=18.parabola1
+arch=(i686 x86_64)
+
+pkgdesc="Pdftk is a simple tool for doing everyday things with PDF documents"
+url="http://www.pdfhacks.com/pdftk";
+license=(GPL)
+
+depends=(gcc6-gcj gcc-gcj-ecj)
+options=('!makeflags')
+
+source=("http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/$pkgname-$pkgver-src.zip";
+        "Makefile.Parabola"
+        "pdftk"
+)
+sha256sums=('118f6a25fd3acaafb58824dce6f97cdc07e56050e666b90e4c4ef426ea37b8c1'
+            '4451a807817b5e40755b79686bce5751c70758c83302a4214c23c4f361168620'
+            '9c49337ed05759e986f24ac4173f727567c617e5f160e4c9ec7e089e120af3c3')
+
+prepare() {
+  cd "$srcdir/$pkgname-$pkgver-dist/$pkgname"
+
+  cp "$srcdir/Makefile.Parabola" .
+}
+
+build() {
+  cd "$srcdir/$pkgname-$pkgver-dist/$pkgname"
+
+  make -f Makefile.Parabola
+}
+
+package() {
+  cd "$srcdir/$pkgname-$pkgver-dist/$pkgname"
+
+  # Install binary
+  install -D -m 755 pdftk $pkgdir/usr/bin/pdftk-bin
+
+  # Install licenses and adjust permissions
+  cd ..
+  LICENSE_DIR="$pkgdir/usr/share/licenses/$pkgname"
+  mkdir -p "$LICENSE_DIR"
+  cp -R license_gpl_pdftk/* "$LICENSE_DIR"
+  chmod -R 0755 "$LICENSE_DIR"
+  find "$LICENSE_DIR" -type f -exec chmod -x {} \;
+
+  # Install manpage
+  install -D -m 644 "pdftk.1" "$pkgdir/usr/share/man/man1/pdftk.1"
+
+  # Install wrapper that sets the proper environment variables.
+  sed -i "s/CARCH/${CARCH}/" ${srcdir}/pdftk
+  sed -i "s/GCCVER/`gcc-6 -dumpversion`/" ${srcdir}/pdftk
+  install -D -m 755 ${srcdir}/pdftk ${pkgdir}/usr/bin/pdftk
+}
diff --git a/pcr/pdftk/pdftk b/pcr/pdftk/pdftk
new file mode 100644
index 000000000..12d821bd0
--- /dev/null
+++ b/pcr/pdftk/pdftk
@@ -0,0 +1,3 @@
+#!/bin/bash
+export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/lib/gcc/CARCH-pc-linux-gnu/GCCVER
+pdftk-bin "$@"

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Dev mailing list
[email protected]
https://lists.parabola.nu/mailman/listinfo/dev

Reply via email to