scrollz-2.1.ebuild 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # Copyright 1999-2012 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=4
  4. DESCRIPTION="Advanced IRC client based on ircII"
  5. HOMEPAGE="http://packages.qa.debian.org/s/scrollz.html"
  6. SRC_URI="mirror://debian/pool/main/s/${PN}/${PN}_${PV}.orig.tar.gz"
  7. LICENSE="BSD"
  8. SLOT="0"
  9. KEYWORDS="amd64 ~ppc x86"
  10. IUSE="gmp gnutls ipv6 socks5 ssl"
  11. REQUIRED_USE="gnutls? ( ssl )"
  12. RDEPEND="sys-libs/ncurses
  13. gmp? ( dev-libs/gmp )
  14. ssl? (
  15. gnutls? ( net-libs/gnutls )
  16. !gnutls? ( dev-libs/openssl )
  17. )"
  18. DEPEND="${RDEPEND}
  19. virtual/pkgconfig"
  20. S=${WORKDIR}/${P}.orig
  21. src_configure() {
  22. local _myssl
  23. if use ssl; then
  24. if use gnutls; then
  25. _myssl="--with-ssl"
  26. else
  27. _myssl="--with-openssl"
  28. fi
  29. fi
  30. econf \
  31. --with-default-server=irc.gentoo.org \
  32. $(use_enable socks5) \
  33. $(use_enable ipv6) \
  34. --enable-regexp \
  35. $(use_enable gmp fish) \
  36. ${_myssl}
  37. }
  38. src_install() {
  39. einstall \
  40. sharedir="${ED}/usr/share" \
  41. mandir="${ED}/usr/share/man/man1"
  42. dodoc ChangeLog* NEWS README* todo
  43. }