libs3-2.0-r1.ebuild 704 B

12345678910111213141516171819202122232425262728293031323334
  1. # Copyright 1999-2012 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="A C Library API for Amazon S3"
  6. HOMEPAGE="http://libs3.ischo.com.s3.amazonaws.com/index.html"
  7. SRC_URI="http://libs3.ischo.com.s3.amazonaws.com/${P}.tar.gz"
  8. LICENSE="GPL-3"
  9. SLOT="0"
  10. KEYWORDS="~amd64 ~x86"
  11. IUSE="static-libs"
  12. RDEPEND="
  13. net-misc/curl
  14. dev-libs/libxml2"
  15. DEPEND="${RDEPEND}"
  16. src_prepare() {
  17. epatch "${FILESDIR}"/${P}-build.patch
  18. sed \
  19. -e "s:/lib/:/$(get_libdir)/:g" \
  20. -i *makefile* || die
  21. tc-export CC
  22. }
  23. src_install() {
  24. emake DESTDIR="${ED}/usr" install
  25. use static-libs || rm -f "${ED}"/usr/$(get_libdir)/*a
  26. }