baekmuk-fonts-2.2-r2.ebuild 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. inherit font font-ebdftopcf
  4. TTF_P="${P/fonts/ttf}"
  5. BDF_P="${P/fonts/bdf}"
  6. UNI_P="20020418"
  7. DESCRIPTION="Korean Baekmuk Font"
  8. HOMEPAGE="http://kldp.net/projects/baekmuk/"
  9. SRC_URI="http://kldp.net/download.php/1429/${TTF_P}.tar.gz
  10. http://kldp.net/download.php/1428/${BDF_P}.tar.gz
  11. unicode? ( http://chem.skku.ac.kr/~wkpark/baekmuk/iso10646/${UNI_P}.tar.bz2 )"
  12. LICENSE="BSD"
  13. SLOT="0"
  14. KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
  15. IUSE="unicode"
  16. S=${WORKDIR}
  17. # Only installs fonts
  18. RESTRICT="strip binchecks"
  19. src_unpack() {
  20. unpack ${BDF_P}.tar.gz ${TTF_P}.tar.gz
  21. if use unicode ; then
  22. cd "${WORKDIR}/${BDF_P}/bdf"
  23. unpack ${UNI_P}.tar.bz2
  24. fi
  25. }
  26. src_compile() {
  27. cd ${BDF_P}/bdf
  28. font-ebdftopcf_src_compile
  29. }
  30. src_install () {
  31. FONT_S="${S}/${TTF_P}/ttf" FONT_SUFFIX="ttf" font_src_install
  32. use X && FONT_S="${S}/${BDF_P}/bdf" FONT_SUFFIX="pcf.gz" font_src_install
  33. use X || FONT_S="${S}/${BDF_P}/bdf" FONT_SUFFIX="bdf" font_src_install
  34. }