libtermcap-compat-2.0.8-r3.ebuild 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # Copyright 1999-2014 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. # we only want this for binary-only packages, so we will only be installing
  4. # the lib used at runtime; no headers and no files to link against
  5. EAPI="4"
  6. inherit eutils multilib toolchain-funcs
  7. PATCHVER="2"
  8. MY_P="termcap-${PV}"
  9. DESCRIPTION="Compatibility package for old termcap-based programs"
  10. HOMEPAGE="http://www.catb.org/~esr/terminfo/"
  11. SRC_URI="http://www.catb.org/~esr/terminfo/termtypes.tc.gz
  12. mirror://gentoo/${MY_P}.tar.bz2
  13. mirror://gentoo/${MY_P}-patches-${PATCHVER}.tar.bz2"
  14. LICENSE="GPL-2 LGPL-2 BSD"
  15. SLOT="0"
  16. KEYWORDS="alpha amd64 ~arm hppa ppc sparc x86"
  17. IUSE=""
  18. S=${WORKDIR}/${MY_P}
  19. src_prepare() {
  20. EPATCH_SOURCE="${WORKDIR}/patch"
  21. EPATCH_SUFFIX="patch"
  22. epatch "${EPATCH_SOURCE}"
  23. cd "${WORKDIR}"
  24. mv termtypes.tc termcap || die
  25. epatch "${EPATCH_SOURCE}"/tc.file
  26. }
  27. src_configure() {
  28. tc-export CC
  29. }
  30. src_install() {
  31. dolib.so libtermcap.so.${PV}
  32. dosym libtermcap.so.${PV} /usr/$(get_libdir)/libtermcap.so.2
  33. insinto /etc
  34. doins "${WORKDIR}"/termcap
  35. dodoc ChangeLog README
  36. }