diff options
author | Alexis Ballier <aballier@gentoo.org> | 2015-07-15 09:48:06 +0000 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2015-07-15 09:48:06 +0000 |
commit | 37b319c525f4ae32d9b1f9a4f045eaaec578cd3a (patch) | |
tree | 8cf3c2cbc630b2059912d484a634b0c16588cd38 | |
parent | fix build with kpathsea from texlive 2015 (diff) | |
download | gentoo-2-37b319c525f4ae32d9b1f9a4f045eaaec578cd3a.tar.gz gentoo-2-37b319c525f4ae32d9b1f9a4f045eaaec578cd3a.tar.bz2 gentoo-2-37b319c525f4ae32d9b1f9a4f045eaaec578cd3a.zip |
version bump, fix build with kpathsea from texlive 2015
(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 160F534A)
-rw-r--r-- | dev-tex/metapost/ChangeLog | 7 | ||||
-rw-r--r-- | dev-tex/metapost/metapost-1.902.ebuild | 77 |
2 files changed, 83 insertions, 1 deletions
diff --git a/dev-tex/metapost/ChangeLog b/dev-tex/metapost/ChangeLog index 1f003fa528d8..d7c75022e47b 100644 --- a/dev-tex/metapost/ChangeLog +++ b/dev-tex/metapost/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-tex/metapost # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-tex/metapost/ChangeLog,v 1.8 2015/05/31 00:26:14 mrueg Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-tex/metapost/ChangeLog,v 1.9 2015/07/15 09:48:06 aballier Exp $ + +*metapost-1.902 (15 Jul 2015) + + 15 Jul 2015; Alexis Ballier <aballier@gentoo.org> +metapost-1.902.ebuild: + version bump, fix build with kpathsea from texlive 2015 31 May 2015; Manuel Rüger <mrueg@gentoo.org> -metapost-1.212.ebuild, -metapost-1.504.ebuild: diff --git a/dev-tex/metapost/metapost-1.902.ebuild b/dev-tex/metapost/metapost-1.902.ebuild new file mode 100644 index 000000000000..afc33828510a --- /dev/null +++ b/dev-tex/metapost/metapost-1.902.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-tex/metapost/metapost-1.902.ebuild,v 1.1 2015/07/15 09:48:06 aballier Exp $ + +EAPI=5 + +inherit flag-o-matic toolchain-funcs + +DESCRIPTION="System for producing graphics" +HOMEPAGE="http://tug.org/metapost.html" +SRC_URI="https://foundry.supelec.fr/frs/download.php/file/15766/${P}-src.tar.bz2" + +LICENSE="GPL-2 LGPL-3" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +RDEPEND=">=dev-libs/kpathsea-6.1.0_p20120701 + >=app-eselect/eselect-mpost-0.3 + >=x11-libs/cairo-1.12 + >x11-libs/pixman-0.18 + media-libs/libpng:0=" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +S=${WORKDIR}/${P}/source/texk/web2c + +src_configure() { + has_version '>=dev-libs/kpathsea-6.2.1' && append-cppflags "$($(tc-getPKG_CONFIG) --cflags kpathsea)" + econf \ + --disable-all-pkgs \ + --enable-shared \ + --disable-largefile \ + --disable-ptex \ + --enable-mp \ + --with-system-cairo \ + --with-system-libpng \ + --without-ptexenc \ + --with-system-kpathsea \ + --with-system-xpdf \ + --with-system-freetype \ + --with-system-freetype2 \ + --with-system-gd \ + --with-system-teckit \ + --with-system-t1lib \ + --with-system-icu \ + --with-system-graphite \ + --with-system-zziplib \ + --with-system-poppler \ + --with-system-zlib \ + --with-system-pixman \ + --disable-native-texlive-build \ + --without-mf-x-toolkit --without-x +} + +src_compile() { + emake mpost +} + +src_install() { + emake DESTDIR="${D}" \ + SUBDIRS="" \ + bin_PROGRAMS="mpost" \ + nodist_man_MANS="" \ + dist_man_MANS="" \ + install-binPROGRAMS + # Rename it + mv "${D}/usr/bin/mpost" "${D}/usr/bin/mpost-${P}" || die "renaming failed" + + cd "${WORKDIR}/${P}" + dodoc README CHANGES +} + +pkg_postinst(){ + einfo "Calling eselect mpost update" + eselect mpost update +} |