You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-tex/bera/bera-20040930.ebuild

57 lines
1.1 KiB

# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=0
inherit latex-package
MY_P=${PN}
S=${WORKDIR}/${MY_P}
SUPPLIER="public"
DESCRIPTION="LaTeX package for the Bera Type1 font family"
HOMEPAGE="http://www.ctan.org/tex-archive/fonts/bera/"
SRC_URI="mirror://gentoo/${P}.zip"
LICENSE="LPPL-1.2"
DEPEND="app-arch/unzip"
KEYWORDS="~amd64 ~x86"
SLOT="0"
IUSE=""
src_unpack() {
unpack ${A}
cd "${S}"
unzip ${MY_P}.zip
}
src_install() {
DOCS="${S}/README ${S}/LICENSE ${S}/doc/fonts/bera/bera.txt"
# install sty and fonts
cd "${S}/tex/latex/${MY_P}"
latex-package_src_install
cd "${S}/fonts/vf/public/${MY_P}"
latex-package_src_install
cd "${S}/fonts/tfm/public/${MY_P}"
latex-package_src_install
# install map
cd "${S}"
dodir ${TEXMF}/fonts/map/dvips/${MY_P}
cp -pPR fonts/map/dvips/${MY_P}.map "${D}${TEXMF}/fonts/map/dvips/${MY_P}"
latex-package_src_install
}
pkg_postinst() {
latex-package_rehash
updmap-sys --enable Map ${MY_P}.map
}
pkg_postrm() {
updmap-sys --disable ${MY_P}.map
}