Files
guru/media-fonts/unscii/unscii-2.1.ebuild
Andrew Ammerlaan 35a166ddf5 media-fonts/unscii: drop UnusedInherits
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
2021-12-15 12:05:40 +01:00

48 lines
827 B
Bash

# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
FONT_SUFFIX="otf pcf ttf"
inherit font
DESCRIPTION="Set of bitmapped Unicode fonts based on classic system fonts"
HOMEPAGE="http://viznut.fi/unscii/"
SRC_URI="http://viznut.fi/unscii/${P}-src.tar.gz -> ${P}.tar.gz"
LICENSE="
public-domain
unicode? ( GPL-2 )
"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="unicode"
RDEPEND="media-libs/sdl-image"
DEPEND="
${RDEPEND}
dev-lang/perl
media-gfx/fontforge
x11-apps/bdftopcf
unicode? ( media-fonts/unifont[utils] )
"
S="${WORKDIR}/${P}-src"
DOCS=( ${PN}.txt )
src_prepare() {
default
sed -i \
-e 's;CC=.*;CC ?= gcc;' \
-e 's;$(CC) ;&$(CFLAGS) ;' \
-e 's;$(CC) .* -o .*;& $(LDFLAGS);' \
Makefile || die
}
src_install() {
font_src_install
dobin bm2uns
}