1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit flag-o-matic toolchain-funcs
8 DESCRIPTION="System for producing graphics"
9 HOMEPAGE="http://tug.org/metapost.html"
10 SRC_URI="https://foundry.supelec.fr/frs/download.php/file/15766/${P}-src.tar.bz2"
12 LICENSE="GPL-2 LGPL-3"
17 RDEPEND=">=dev-libs/kpathsea-6.1.0_p20120701
18 >=app-eselect/eselect-mpost-0.3
25 S=${WORKDIR}/${P}/source/texk/web2c
28 has_version '>=dev-libs/kpathsea-6.2.1' && append-cppflags "$($(tc-getPKG_CONFIG) --cflags kpathsea)"
36 --with-system-libpng \
38 --with-system-kpathsea \
40 --with-system-freetype \
41 --with-system-freetype2 \
43 --with-system-teckit \
46 --with-system-graphite \
47 --with-system-zziplib \
48 --with-system-poppler \
50 --with-system-pixman \
51 --disable-native-texlive-build \
52 --without-mf-x-toolkit --without-x
60 emake DESTDIR="${D}" \
62 bin_PROGRAMS="mpost" \
67 mv "${D}/usr/bin/mpost" "${D}/usr/bin/mpost-${P}" || die "renaming failed"
74 einfo "Calling eselect mpost update"