tix-8.4.3-r1.ebuild 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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
  5. MY_P="Tix${PV}"
  6. DESCRIPTION="A widget library for Tcl/Tk"
  7. HOMEPAGE="http://tix.sourceforge.net/"
  8. SRC_URI="mirror://sourceforge/tix/${MY_P}-src.tar.gz"
  9. IUSE=""
  10. LICENSE="BSD"
  11. SLOT="0"
  12. KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos"
  13. RESTRICT="test"
  14. DEPEND="
  15. dev-lang/tk:0=
  16. x11-libs/libX11
  17. x11-libs/libXau
  18. x11-libs/libXdmcp"
  19. RDEPEND="${DEPEND}"
  20. S="${WORKDIR}/${MY_P}"
  21. src_prepare() {
  22. (use x86-macos || use x64-macos) || epatch "${FILESDIR}"/${P}-link.patch
  23. sed \
  24. -e 's:-Os::g' \
  25. -i configure tclconfig/tcl.m4 || die
  26. epatch \
  27. "${FILESDIR}"/${P}-tcl8.5.patch \
  28. "${FILESDIR}"/${P}-tcl8.6.patch
  29. }
  30. src_configure() {
  31. econf \
  32. --with-tcl="${EPREFIX}/usr/$(get_libdir)" \
  33. --with-tk="${EPREFIX}/usr/$(get_libdir)"
  34. }
  35. src_install() {
  36. default
  37. # Bug 168897
  38. doheader generic/tix.h
  39. # Bug 201138
  40. if use x86-macos || use x64-macos; then
  41. mv "${ED}"/usr/$(get_libdir)/${MY_P}/libTix{,.}${PV}.dylib
  42. dosym ${MY_P}/libTix.${PV}.dylib /usr/$(get_libdir)/libTix.${PV}.dylib
  43. else
  44. dosym ${MY_P}/lib${MY_P}.so /usr/$(get_libdir)/lib${MY_P}.so
  45. fi
  46. dodoc ChangeLog README.txt docs/*.txt
  47. dohtml -r index.html ABOUT.html docs/
  48. }