cdd+-077a.ebuild 855 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit eutils multilib toolchain-funcs
  5. DESCRIPTION="Another implementation of the double description method"
  6. HOMEPAGE="http://www.ifor.math.ethz.ch/~fukuda/cdd_home/"
  7. SRC_URI="ftp://ftp.ifor.math.ethz.ch/pub/fukuda/cdd/${P}.tar.gz"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. KEYWORDS="amd64 ~arm x86"
  11. IUSE=""
  12. DEPEND="dev-libs/gmp:0="
  13. RDEPEND="${DEPEND}"
  14. src_prepare() {
  15. epatch \
  16. "${FILESDIR}"/${P}-headers.patch \
  17. "${FILESDIR}"/${P}-gentoo.patch \
  18. "${FILESDIR}"/${P}-gcc-5.patch \
  19. "${FILESDIR}"/${P}-qa-const-char.patch
  20. }
  21. src_compile() {
  22. emake \
  23. CC="$(tc-getCC)" \
  24. LIBDIR="${EPREFIX}/usr/$(get_libdir)" \
  25. GMPLIBDIR="${EPREFIX}/usr/$(get_libdir)" \
  26. GMPINCLUDE="${EPREFIX}/usr/include" \
  27. all
  28. }
  29. src_install() {
  30. dobin cddr+ cddf+
  31. }