Mail archive
alpine-aports

Re: [alpine-aports] [PATCH 3/3] non-free/xephem: new aport

From: Timo Teras <timo.teras_at_iki.fi>
Date: Wed, 20 Jan 2016 10:44:49 +0200

On Tue, 19 Jan 2016 22:07:43 -0800
Isaac Dunham <ibid.ag_at_gmail.com> wrote:

> License is "free for personal/educational/public research only,
> no derivatives without permission, binaries can be distributed only
> if minimal changes are made for porting only
> ---
> non-free/xephem/01-use-mandoc.patch | 13 +++++++++
> non-free/xephem/APKBUILD | 56
> +++++++++++++++++++++++++++++++++++++ 2 files changed, 69
> insertions(+) create mode 100644 non-free/xephem/01-use-mandoc.patch
> create mode 100644 non-free/xephem/APKBUILD

This failed with:

make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.
make[1]: Entering directory '/home/tteras/aports/non-free/xephem/src/xephem-3.7.7/libz'
gcc -Wall -O2 -Os -fomit-frame-pointer -c -o adler32.o adler32.c
gcc -Wall -O2 -Os -fomit-frame-pointer -c -o compress.o compress.c
gcc -Wall -O2 -Os -fomit-frame-pointer -c -o crc32.o crc32.c
gcc -Wall -O2 -Os -fomit-frame-pointer -c -o uncompr.o uncompr.c
gcc -Wall -O2 -Os -fomit-frame-pointer -c -o deflate.o deflate.c
gcc -Wall -O2 -Os -fomit-frame-pointer -c -o trees.o trees.c
gcc -Wall -O2 -Os -fomit-frame-pointer -c -o zutil.o zutil.c
gcc -Wall -O2 -Os -fomit-frame-pointer -c -o inflate.o inflate.c
gcc -Wall -O2 -Os -fomit-frame-pointer -c -o inftrees.o inftrees.c
gcc -Wall -O2 -Os -fomit-frame-pointer -c -o inffast.o inffast.c
ar rc libz.a adler32.o compress.o crc32.o uncompr.o deflate.o trees.o zutil.o inflate.o inftrees.o inffast.o
ranlib libz.a
make[1]: Leaving directory '/home/tteras/aports/non-free/xephem/src/xephem-3.7.7/libz'
>>> ERROR: xephem: all failed
>>> xephem: Uninstalling dependencies...

Not sure what the exact error is. Perhaps related to parallel build
too. Also there seems to be embedded standard libs like libz and
libpng. Possibly others, I wonder if it could use the system libs
instead?


> diff --git a/non-free/xephem/01-use-mandoc.patch
> b/non-free/xephem/01-use-mandoc.patch new file mode 100644
> index 0000000..50797ee
> --- /dev/null
> +++ b/non-free/xephem/01-use-mandoc.patch
> _at_@ -0,0 +1,13 @@
> +diff --git a/GUI/xephem/Makefile b/GUI/xephem/Makefile
> +index 6fa4405..33d5085 100644
> +--- a/GUI/xephem/Makefile
> ++++ b/GUI/xephem/Makefile
> +_at_@ -192,7 +192,7 @@ xephem: $(INCS) $(OBJS)
> + $(CC) $(LDFLAGS) -o $_at_ $(OBJS) $(LIBS)
> +
> + xephem.1: xephem.man
> +- nroff -man $? > $_at_
> ++ mandoc $? > $_at_
> +
> + libs:
> + cd ../../libastro; make
> diff --git a/non-free/xephem/APKBUILD b/non-free/xephem/APKBUILD
> new file mode 100644
> index 0000000..7ed99ec
> --- /dev/null
> +++ b/non-free/xephem/APKBUILD
> _at_@ -0,0 +1,56 @@
> +# Contributor: Isaac Dunham <ibid.ag_at_gmail.com>
> +# Maintainer:
> +pkgname=xephem
> +pkgver=3.7.7
> +pkgrel=0
> +pkgdesc="XEphem, the serious interactive astronomical software
> ephemeris" +url="http://www.clearskyinstitute.com/xephem/"
> +arch="all"
> +license="custom"
> +depends=""
> +depends_dev=""
> +makedepends="$depends_dev mdocml motif-dev"
> +install=""
> +subpackages="$pkgname-doc"
> +source="http://97.74.56.125/free/xephem-$pkgver.tar.gz
> + 01-use-mandoc.patch
> + "
> +
> +_builddir="$srcdir"/xephem-$pkgver
> +prepare() {
> + local i
> + cd "$_builddir"
> + for i in $source; do
> + case $i in
> + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return
> 1;;
> + esac
> + done
> +}
> +
> +build() {
> + cd "$_builddir"/GUI/xephem && \
> + make XLIBS="-lXm -lXt -lXext -lXmu -lX11"
> +}
> +
> +package() {
> + cd "$_builddir"/GUI/xephem
> && \
> + install -d -m 0755 "$pkgdir"/etc/ &&
> \
> + install -d -m 0755 "$pkgdir"/usr/bin/
> && \
> + install -s -m 0755 xephem "$pkgdir"/usr/bin/
> && \
> + install -d -m 0755 "$pkgdir"/usr/share/licenses/xephem/ && \
> + install -m 0644 ../../Copyright
> "$pkgdir"/usr/share/licenses/xephem/ && \
> + install -d -m 0755 "$pkgdir"/usr/share/man/man1/ && \
> + install -c -m 0644 xephem.1 "$pkgdir"/usr/share/man/man1/ &&
> \
> + install -d -m 0755 "$pkgdir"/usr/share/xephem/
> && \
> + cp -R auxil catalogs fifos fits gallery help
> lo \
> + "$pkgdir"/usr/share/xephem/
> && \
> + echo "XEphem.ShareDir: /usr/share/xephem" >>
> "$pkgdir"/etc/XEphem || \
> + return 1
> +}
> +
> +md5sums="7b9829864dc09d3e0f5cd054d8030e68 xephem-3.7.7.tar.gz
> +256fff0a036e7e8c1e24dbc32283993c 01-use-mandoc.patch"
> +sha256sums="d1f8e17cfc5d2e3af5fd5a8bcf34bbf99a79d40f66326c098a819f82af62b4b7
> xephem-3.7.7.tar.gz
> +4a4ac5e6fc852c946b924415c6e16216150c9540219291991cb58e0aba54f8fc
> 01-use-mandoc.patch"
> +sha512sums="d9cfecf0ce8aa495f66fcf6772ca7df0638cef8b9f18d9d6cbf013846a7575786ae9b5c515abc2058783baa7610320c893ddbc6f68bae28c65661a1c73b88634
> xephem-3.7.7.tar.gz
> +a2b723608145413bd578d86cdc9c550e0315eb3034ae8a9ed4a430f61f765488353a1107936301cf0d93464e97019fac88c71485c461519ffcb1bdd1fce5be2f
> 01-use-mandoc.patch"



---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Wed Jan 20 2016 - 10:44:49 GMT