fontawesome-9999.ebuild 756 B

123456789101112131415161718192021222324252627282930313233343536
  1. # Copyright 1999-2023 Gentoo Authors
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=8
  4. MY_PN="Font-Awesome"
  5. inherit font
  6. DESCRIPTION="The iconic font"
  7. HOMEPAGE="https://fontawesome.com"
  8. if [[ ${PV} == 9999 ]]; then
  9. inherit git-r3
  10. EGIT_REPO_URI="https://github.com/FortAwesome/${MY_PN}.git"
  11. KEYWORDS=""
  12. else
  13. SRC_URI="https://github.com/FortAwesome/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
  14. KEYWORDS="*"
  15. S="${WORKDIR}/${MY_PN}-${PV}"
  16. fi
  17. RESTRICT="mirror"
  18. LICENSE="CC-BY-4.0 OFL-1.1"
  19. SLOT="0/6"
  20. IUSE="+otf ttf"
  21. REQUIRED_USE="|| ( otf ttf )"
  22. src_install() {
  23. if use otf; then
  24. FONT_S="${S}/otfs" FONT_SUFFIX="otf" font_src_install
  25. fi
  26. if use ttf; then
  27. FONT_S="${S}/webfonts" FONT_SUFFIX="ttf" font_src_install
  28. fi
  29. }