diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /media-fonts/dejavu/dejavu-2.35.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'media-fonts/dejavu/dejavu-2.35.ebuild')
-rw-r--r-- | media-fonts/dejavu/dejavu-2.35.ebuild | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/media-fonts/dejavu/dejavu-2.35.ebuild b/media-fonts/dejavu/dejavu-2.35.ebuild new file mode 100644 index 000000000000..53f00cb32efa --- /dev/null +++ b/media-fonts/dejavu/dejavu-2.35.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit font versionator + +DESCRIPTION="DejaVu fonts, bitstream vera with ISO-8859-2 characters" +HOMEPAGE="https://dejavu-fonts.github.io/" + +# If you want to test snapshot from dejavu.sf.net/snapshots/ +# just rename ebuild to dejavu-2.22.20071220.2156.ebuild +MY_PV=$(get_version_component_range 1-2) +snapv=$(get_version_component_range 3-4) +snapv=${snapv/./-} +MY_BP=${PN}-fonts-ttf-${MY_PV} +MY_SP=${PN}-fonts-${MY_PV} + +if [[ -z ${snapv} ]]; then + SRC_URI="!fontforge? ( mirror://sourceforge/${PN}/${MY_BP}.tar.bz2 ) + fontforge? ( mirror://sourceforge/${PN}/${MY_SP}.tar.bz2 )" +else + SRC_URI="!fontforge? ( http://dejavu.sourceforge.net/snapshots/${MY_BP}-${snapv}.tar.bz2 ) + fontforge? ( http://dejavu.sourceforge.net/snapshots/${MY_SP}-${snapv}.tar.bz2 )" +fi + +LICENSE="BitstreamVera" +SLOT="0" +KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~x64-solaris ~x86-solaris" +IUSE="fontforge" + +DEPEND="fontforge? ( x11-apps/mkfontscale + >=media-gfx/fontforge-20080429 + x11-apps/mkfontdir + dev-perl/Font-TTF + app-i18n/unicode-data + >media-libs/fontconfig-2.6.0 )" + +FONT_CONF=( + fontconfig/20-unhint-small-dejavu-sans-mono.conf + fontconfig/20-unhint-small-dejavu-sans.conf + fontconfig/20-unhint-small-dejavu-serif.conf + fontconfig/57-dejavu-sans-mono.conf + fontconfig/57-dejavu-sans.conf + fontconfig/57-dejavu-serif.conf +) + +FONT_S="ttf" +FONT_SUFFIX="ttf" +DOCS="AUTHORS NEWS README status.txt langcover.txt unicover.txt" + +src_unpack() { + default + if use fontforge; then + mv "${MY_SP}" "${P}" || die + else + mv "${MY_BP}" "${P}" || die + fi +} + +src_compile() { + if use fontforge; then + emake -j1 \ + BUILDDIR=ttf \ + BLOCKS=/usr/share/unicode-data/Blocks.txt \ + UNICODEDATA=/usr/share/unicode-data/UnicodeData.txt \ + FC-LANG=/usr/share/fc-lang \ + full sans \ + || die "emake failed" + fi +} + +src_install() { + font_src_install + if use fontforge; then + dodoc ttf/*.txt + fi +} |