# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit flag-o-matic DESCRIPTION="Samir's secret sharing scheme utility" HOMEPAGE="http://www.point-at-infinity.org/ssss/" SRC_URI="http://www.point-at-infinity.org/ssss/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND="dev-libs/gmp app-doc/xmltoman" RDEPEND="dev-libs/gmp" src_unpack() { unpack ${A} # Add CFLAGS support to the makefile epatch ${FILESDIR}/cflags.patch } src_compile() { # Compiling with -O2 (and above) results in this error: # ssss.c:343: error: prior parameter's size depends on 'n' # line 343: int restore_secret(int n, mpz_t (*A)[n], mpz_t b[]) # -O1 works replace-flags -O[2-9] -O1 emake || die "emake failed" } src_install() { dobin ssss-* || die "dobin failed" doman *.1 || die "doman failed" dodoc ssss.1.html }