bsign-0.4.5.ebuild 915 B

1234567891011121314151617181920212223242526272829303132333435
  1. # Copyright 1999-2012 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=2
  4. inherit autotools eutils toolchain-funcs
  5. DESCRIPTION="embed secure hashes (SHA1) and digital signatures (GNU Privacy Guard) into files"
  6. HOMEPAGE="http://packages.debian.org/sid/bsign"
  7. SRC_URI="mirror://debian/pool/main/b/${PN}/${PN}_${PV}.tar.gz"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. KEYWORDS="~amd64 ppc ~ppc-macos ~x86 ~x86-linux"
  11. IUSE="static-libs"
  12. src_prepare() {
  13. epatch "${FILESDIR}"/${P}-non-gnu.patch # for Darwin, BSD, Solaris, etc.
  14. if ! use static-libs || [[ ${CHOST} == *-darwin* ]]; then
  15. sed -i -e '/^LFLAGS/s/-static//' Makefile.in
  16. fi
  17. sed -i -e "/^CFLAGS/d" \
  18. -e "/^CXXFLAGS/d" configure.in
  19. eautoreconf
  20. tc-export CC CXX
  21. }
  22. src_install() {
  23. dobin bsign_sign bsign_verify bsign_hash bsign_check || die
  24. newbin o/bsign-unstripped bsign || die
  25. doman bsign.1 || die
  26. dodoc README || die
  27. }