c2ps-4.0.ebuild 683 B

123456789101112131415161718192021222324252627
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=4
  4. inherit base toolchain-funcs
  5. DESCRIPTION="Generates a beautified ps document from a source file (c/c++)"
  6. HOMEPAGE="http://www.cs.technion.ac.il/users/c2ps"
  7. SRC_URI="http://www.cs.technion.ac.il/users/c2ps/${P}.tar.gz"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. KEYWORDS="amd64 ~mips ppc sparc x86 ~amd64-linux ~x86-linux ~ppc-macos"
  11. IUSE=""
  12. PATCHES=( "${FILESDIR}/${P}-LDFLAGS.patch" )
  13. src_compile() {
  14. emake CC="$(tc-getCC)" CCFLAGS="${CFLAGS}"
  15. }
  16. src_install() {
  17. dodir /usr/bin /usr/share/man/man1
  18. emake MAN="${ED}"/usr/share/man/man1 PREFIX="${ED}"/usr install
  19. dodoc README
  20. }