icclib-2.14.ebuild 842 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # Copyright 1999-2012 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=4
  4. inherit base multilib toolchain-funcs
  5. MY_P="${PN}_V${PV}"
  6. DESCRIPTION="Library for reading and writing ICC color profile files"
  7. HOMEPAGE="http://freecode.com/projects/icclib"
  8. SRC_URI="http://www.argyllcms.com/${MY_P}.zip"
  9. LICENSE="BSD"
  10. SLOT="0"
  11. KEYWORDS="~amd64 ~x86"
  12. IUSE=""
  13. DEPEND="app-arch/unzip"
  14. S=${WORKDIR}
  15. ICCLIB_SOVERSION="0"
  16. PATCHES=(
  17. "${FILESDIR}/${P}-make.patch"
  18. )
  19. src_compile() {
  20. emake CC="$(tc-getCC)" ICCLIB_SOVERSION=${ICCLIB_SOVERSION}
  21. }
  22. src_install() {
  23. mv libicc.so libicc.so.${ICCLIB_SOVERSION} || die
  24. dolib.so libicc.so.${ICCLIB_SOVERSION}
  25. dosym libicc.so.${ICCLIB_SOVERSION} /usr/$(get_libdir)/libicc.so
  26. dobin iccdump
  27. dodoc Readme.txt todo.txt log.txt
  28. insinto /usr/include
  29. doins icc*.h
  30. }