patch-2.7.5.ebuild 922 B

123456789101112131415161718192021222324252627282930
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=4
  4. inherit flag-o-matic eutils
  5. DESCRIPTION="Utility to apply diffs to files"
  6. HOMEPAGE="https://www.gnu.org/software/patch/patch.html"
  7. SRC_URI="mirror://gnu/patch/${P}.tar.xz"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
  11. IUSE="static test xattr"
  12. RDEPEND="xattr? ( sys-apps/attr )"
  13. DEPEND="${RDEPEND}
  14. test? ( sys-apps/ed )"
  15. src_configure() {
  16. use static && append-ldflags -static
  17. # Do not let $ED mess up the search for `ed` 470210.
  18. ac_cv_path_ED=$(type -P ed) \
  19. econf \
  20. $(use_enable xattr) \
  21. --program-prefix="$(use userland_BSD && echo g)"
  22. }