# Template file for 'eukleides' pkgname=eukleides version=1.5.4 revision=2 build_style=gnu-makefile hostmakedepends="flex texinfo" makedepends="readline-devel" short_desc="Computer language devoted to elementary plane geometry" maintainer="Leah Neukirchen " license="GPL-3" homepage="http://www.eukleides.org/" distfiles="http://www.eukleides.org/files/${pkgname}-${version}.tar.bz2" checksum=18c489460cb2cb98f4ea9c0187519ef77b4422117fd43bcd4e4836580ef40c69 disable_parallel_build=yes post_extract() { sed -i -e 's/^CFLAGS =/override CFLAGS +=/' \ -e 's/^LDFLAGS =/override LDFLAGS +=/' \ -e 's/@\$(CC) \$(LDFLAGS) \$\^ -o \$@/@$(CC) $^ -o $@ $(LDFLAGS)/' \ build/Makefile } do_install() { vbin build/eukleides vbin build/euktopst for f in bash/*; do vbin $f done vmkdir usr/share/info vinstall doc/eukleides.info.gz 644 usr/share/info for f in man/*.1; do vman $f; done vmkdir opt/texlive/texmf-local/tex/latex/eukleides vinstall tex/eukleides.tex 0644 opt/texlive/texmf-local/tex/latex/eukleides vinstall tex/eukleides.sty 0644 opt/texlive/texmf-local/tex/latex/eukleides }