freebsd-contrib-8.2.ebuild 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # Copyright 1999-2014 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. inherit bsdmk freebsd flag-o-matic
  4. DESCRIPTION="Contributed sources for FreeBSD"
  5. SRC_URI="mirror://gentoo/${GNU}.tar.bz2
  6. mirror://gentoo/${P}.tar.bz2"
  7. LICENSE="BSD GPL-2+ libodialog"
  8. SLOT="0"
  9. KEYWORDS="~sparc-fbsd ~x86-fbsd"
  10. IUSE=""
  11. RDEPEND=""
  12. DEPEND="=sys-freebsd/freebsd-sources-${RV}*
  13. =sys-freebsd/freebsd-mk-defs-${RV}*
  14. !dev-util/dialog"
  15. S="${WORKDIR}/gnu"
  16. src_unpack() {
  17. echo ">>> Unpacking needed parts of ${GNU}.tar.bz2 to ${WORKDIR}"
  18. tar -jxpf "${DISTDIR}/${GNU}.tar.bz2" gnu/lib/libdialog gnu/usr.bin/sort gnu/usr.bin/patch
  19. echo ">>> Unpacking needed parts of ${CONTRIB}.tar.bz2 to ${WORKDIR}"
  20. tar -jxpf "${DISTDIR}/${CONTRIB}.tar.bz2" contrib/gnu-sort
  21. freebsd_do_patches
  22. freebsd_rename_libraries
  23. }
  24. src_compile() {
  25. cd "${S}/lib/libdialog"
  26. freebsd_src_compile
  27. cd "${S}/usr.bin/sort"
  28. freebsd_src_compile
  29. cd "${S}/usr.bin/patch"
  30. freebsd_src_compile
  31. }
  32. src_install() {
  33. use profile || mymakeopts="${mymakeopts} NO_PROFILE= "
  34. mymakeopts="${mymakeopts} NO_MANCOMPRESS= NO_INFOCOMPRESS= "
  35. cd "${S}/lib/libdialog"
  36. mkinstall || die "libdialog install failed"
  37. cd "${S}/usr.bin/sort"
  38. mkinstall BINDIR="/bin/" || die "libdialog install failed"
  39. cd "${S}/usr.bin/patch"
  40. mkinstall BINDIR="/usr/bin/" || die "libdialog install failed"
  41. }