freebsd-contrib-9.1.ebuild 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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 multilib
  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="~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
  10. IUSE=""
  11. RDEPEND=""
  12. DEPEND="=sys-freebsd/freebsd-sources-${RV}*
  13. =sys-freebsd/freebsd-mk-defs-${RV}*"
  14. S="${WORKDIR}/gnu"
  15. src_unpack() {
  16. echo ">>> Unpacking needed parts of ${GNU}.tar.bz2 to ${WORKDIR}"
  17. tar -jxpf "${DISTDIR}/${GNU}.tar.bz2" gnu/lib/libodialog gnu/usr.bin/sort gnu/usr.bin/patch
  18. echo ">>> Unpacking needed parts of ${CONTRIB}.tar.bz2 to ${WORKDIR}"
  19. tar -jxpf "${DISTDIR}/${CONTRIB}.tar.bz2" contrib/gnu-sort
  20. freebsd_do_patches
  21. freebsd_rename_libraries
  22. }
  23. src_compile() {
  24. cd "${S}/lib/libodialog"
  25. freebsd_src_compile
  26. cd "${S}/usr.bin/sort"
  27. freebsd_src_compile
  28. cd "${S}/usr.bin/patch"
  29. freebsd_src_compile
  30. }
  31. src_install() {
  32. use profile || mymakeopts="${mymakeopts} NO_PROFILE= "
  33. mymakeopts="${mymakeopts} NO_MANCOMPRESS= NO_INFOCOMPRESS= "
  34. cd "${S}/lib/libodialog"
  35. mkinstall LIBDIR="/usr/$(get_libdir)" || die "libodialog install failed"
  36. cd "${S}/usr.bin/sort"
  37. mkinstall BINDIR="/bin/" || die "sort install failed"
  38. cd "${S}/usr.bin/patch"
  39. mkinstall BINDIR="/usr/bin/" || die "patch install failed"
  40. }