saundersp-overlay/dev-texlive/worldflags/worldflags-20210512.ebuild
2023-09-21 16:15:00 +02:00

39 lines
673 B
Bash

# $Header: $
EAPI="7"
DESCRIPTION="Drawing flags with TikZ, by Wilhelm Haager"
HOMEPAGE="https://www.ctan.org/pkg/worldflags"
SRC_URI="https://mirrors.ctan.org/graphics/pgf/contrib/worldflags.zip -> ${P}.zip"
LICENSE="lppl-1-3"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~ppc-macos"
SLOT="0"
IUSE=""
DEPEND="app-text/texlive
app-arch/unzip"
src_unpack() {
if [[ -n ${A} ]]; then
unpack ${A}
mv ${PN} ${P}
fi
}
src_compile() {
tex ${PN}.ins
}
src_install() {
dodoc README doc/${PN}.tex doc/${PN}.pdf
insinto /usr/share/texmf-dist/tex/latex
doins tex/${PN}.sty
}
pkg_postinst() {
texhash
}
pkg_postrm() {
texhash
}