droid-113-r4.ebuild 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=4
  4. inherit font
  5. MY_PN="${PN/d/D}"
  6. # $PV is a build number, use fontforge to find it out. 113 was taken from:
  7. # https://android.git.kernel.org/?p=platform/frameworks/base.git;a=tree;f=data/fonts;hb=HEAD
  8. DESCRIPTION="Font family from Google's Android project"
  9. HOMEPAGE="https://code.google.com/android/RELEASENOTES.html http://www.cosmix.org/software/"
  10. SRC_URI="mirror://gentoo/${P}-r1.tar.bz2
  11. mirror://gentoo/${MY_PN}SansMonoSlashed-112_p1.ttf.bz2
  12. mirror://gentoo/${MY_PN}SansMonoDotted-112_p1.ttf.bz2"
  13. LICENSE="Apache-2.0"
  14. SLOT="0"
  15. KEYWORDS="amd64 arm ~arm64 ppc ppc64 x86"
  16. IUSE=""
  17. S="${WORKDIR}/${PN}"
  18. FONT_S="${S}"
  19. FONT_SUFFIX="ttf"
  20. FONT_CONF=(
  21. "${FILESDIR}/59-google-droid-sans-mono.conf"
  22. "${FILESDIR}/59-google-droid-sans.conf"
  23. "${FILESDIR}/59-google-droid-serif.conf"
  24. )
  25. src_prepare() {
  26. mv "${WORKDIR}/${MY_PN}SansMonoSlashed-112_p1.ttf" \
  27. "${S}/${MY_PN}SansMonoSlashed.ttf"
  28. mv "${WORKDIR}/${MY_PN}SansMonoDotted-112_p1.ttf" \
  29. "${S}/${MY_PN}SansMonoDotted.ttf"
  30. rm Ahem.ttf # bug 530158
  31. }