squirrelsh-1.2.7.ebuild 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI="4"
  4. inherit eutils multilib toolchain-funcs
  5. DESCRIPTION="Cross-platform object-oriented scripting shell using the squirrel language"
  6. HOMEPAGE="http://squirrelsh.sourceforge.net/"
  7. SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.bz2"
  8. LICENSE="GPL-3"
  9. SLOT="0"
  10. KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
  11. IUSE="doc"
  12. RDEPEND="dev-libs/libpcre"
  13. DEPEND="${RDEPEND}
  14. virtual/pkgconfig"
  15. src_prepare() {
  16. epatch "${FILESDIR}"/${PN}-rename-LDFLAGS.patch
  17. epatch "${FILESDIR}"/${PN}-no-strip.patch
  18. epatch "${FILESDIR}"/${PN}-fix-in_LDFLAGS.patch
  19. epatch "${FILESDIR}"/${PN}-remove-forced-abi.patch
  20. epatch "${FILESDIR}"/${PN}-no-docs.patch
  21. }
  22. src_configure() {
  23. #This package uses a custom written configure script
  24. ./configure --prefix="${D}"/usr \
  25. --with-cc="$(tc-getCC)" \
  26. --with-cpp="$(tc-getCXX)" \
  27. --with-linker="$(tc-getCXX)" \
  28. --libdir=/usr/"$(get_libdir)" \
  29. --with-pcre="system" \
  30. --with-squirrel="local" \
  31. --with-mime=no || die "configure failed"
  32. }
  33. src_install() {
  34. emake DESTDIR="${D}" install
  35. doman doc/${PN}.1
  36. dodoc HISTORY INSTALL README
  37. use doc && dodoc doc/*.pdf
  38. }