fatsort-1.3.ebuild 779 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit eutils toolchain-funcs
  5. SVN_REV=365
  6. MY_P=${P}.${SVN_REV}
  7. DESCRIPTION="Sorts files on FAT16/32 partitions, ideal for basic audio players"
  8. HOMEPAGE="http://fatsort.sourceforge.net/"
  9. SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
  10. LICENSE="GPL-2"
  11. SLOT="0"
  12. KEYWORDS="amd64 x86"
  13. IUSE="test"
  14. DEPEND="test? ( dev-util/bbe sys-fs/dosfstools )"
  15. RESTRICT="test? ( userpriv )"
  16. S=${WORKDIR}/${MY_P}
  17. src_prepare() {
  18. sed -i -e '/^\(MANDIR=\|SBINDIR=\)/s|/usr/local|/usr|' \
  19. $(find ./ -name Makefile) || die
  20. }
  21. src_compile() {
  22. emake CC=$(tc-getCC) LD=$(tc-getCC) \
  23. CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" \
  24. DESTDIR="${D}"
  25. }
  26. src_test() {
  27. make tests
  28. }