jfsutils-1.1.15.ebuild 908 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. # Copyright 1999-2014 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit flag-o-matic eutils
  5. DESCRIPTION="IBM's Journaling Filesystem (JFS) Utilities"
  6. HOMEPAGE="http://jfs.sourceforge.net/"
  7. SRC_URI="http://jfs.sourceforge.net/project/pub/${P}.tar.gz"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh ~sparc x86"
  11. IUSE="static"
  12. DOCS=( AUTHORS ChangeLog NEWS README )
  13. src_prepare() {
  14. epatch "${FILESDIR}"/${P}-linux-headers.patch #448844
  15. epatch "${FILESDIR}"/${P}-sysmacros.patch #580056
  16. }
  17. src_configure() {
  18. # It doesn't compile on alpha without this LDFLAGS
  19. use alpha && append-ldflags "-Wl,--no-relax"
  20. use static && append-ldflags -static
  21. econf --sbindir=/sbin
  22. }
  23. src_install () {
  24. default
  25. rm -f "${ED}"/sbin/{mkfs,fsck}.jfs || die
  26. dosym /sbin/jfs_mkfs /sbin/mkfs.jfs
  27. dosym /sbin/jfs_fsck /sbin/fsck.jfs
  28. }