barcode-0.98-r1.ebuild 805 B

12345678910111213141516171819202122232425262728293031323334353637
  1. # Copyright 1999-2014 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit eutils multilib toolchain-funcs
  5. DESCRIPTION="barcode generator"
  6. HOMEPAGE="https://www.gnu.org/software/barcode/"
  7. SRC_URI="mirror://gnu/barcode/${P}.tar.gz"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. KEYWORDS="amd64 ~arm ~ppc ~ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos"
  11. IUSE=""
  12. RDEPEND="app-text/libpaper"
  13. DEPEND="${RDEPEND}"
  14. src_prepare() {
  15. epatch "${FILESDIR}"/${PV}-info.patch
  16. sed -i -e '/^LDFLAGS =/s:=:+=:' \
  17. -e "/^aLIBDIR/s:lib:$(get_libdir):" \
  18. -e '/^INFODIR/s:info:share/info:' \
  19. -e '/^MAN/s:man:share/man:' \
  20. Makefile.in || die
  21. }
  22. src_configure() {
  23. tc-export CC
  24. econf
  25. }
  26. src_install() {
  27. emake install prefix="${ED}/usr"
  28. dodoc ChangeLog README TODO doc/barcode.{pdf,ps}
  29. }