plextor-tool-0.5.0.ebuild 796 B

123456789101112131415161718192021222324252627282930313233343536
  1. # Copyright 1999-2013 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit eutils toolchain-funcs
  5. DESCRIPTION="Tool to change the parameters of a Plextor CD-ROM drive"
  6. HOMEPAGE="http://plextor-tool.sourceforge.net/"
  7. SRC_URI="mirror://sourceforge/plextor-tool/${P}.src.tar.bz2"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. KEYWORDS="~amd64 ~x86"
  11. IUSE="static"
  12. S=${WORKDIR}/${PN}/src
  13. src_prepare() {
  14. epatch "${FILESDIR}"/${P}-build.patch
  15. gunzip plextor-tool.8.gz || die
  16. }
  17. src_compile() {
  18. local targets="plextor-tool"
  19. use static && targets="${targets} pt-static"
  20. echo ${targets} > my-make-targets
  21. emake CC="$(tc-getCC)" ${targets}
  22. }
  23. src_install() {
  24. local targets=$(<my-make-targets)
  25. dodoc ../doc/{NEWS,README} TODO
  26. dobin ${targets}
  27. doman plextor-tool.8
  28. }