From 66f3ed9037fbdf5c47078626ec03142f1930ccdc Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Mon, 16 Jan 2012 00:08:28 +0100 Subject: [PATCH] add ipe-7.1.2 --- media-gfx/ipe/Manifest | 5 +- media-gfx/ipe/ipe-7.1.2.ebuild | 95 ++++++++++++++++++++++++++++++++++ 2 files changed, 97 insertions(+), 3 deletions(-) create mode 100644 media-gfx/ipe/ipe-7.1.2.ebuild diff --git a/media-gfx/ipe/Manifest b/media-gfx/ipe/Manifest index 30030c9..3674182 100644 --- a/media-gfx/ipe/Manifest +++ b/media-gfx/ipe/Manifest @@ -1,10 +1,9 @@ AUX ipe-outputprecision.patch 2504 RMD160 e7bb13a68aa0b04798127aa4bbd05f0c6e7620a5 SHA1 faf5d9f6fded765904a6045eb52170b8a1403ce8 SHA256 142f967987a84d2c45d0ca90d3a4b72360dd720f8d1cfa17d6f66c4500ee7e35 -DIST ipe-7.0.13-src.tar.gz 1318709 RMD160 a753fff1dcb7437adf3ce7bbb2a4b9be2aa7d077 SHA1 17471156d5becfd60147f94c765fbbf2c57e1782 SHA256 942335830bb1397a514b7eafdbb1929df4598a7b080296b05f8051f7c08ca295 DIST ipe-7.0.14-src.tar.gz 1322856 RMD160 4f819bd7740e875170e66c4fa4431aad6cb4c835 SHA1 a9b744120019248a405caab63e88664258242151 SHA256 793d92e407649d7edaba2b98502ae28963d1a375d9fcc2bfc6021b44233cf807 DIST ipe-7.1.0-src.tar.gz 1406988 RMD160 cf50ef5e8fc62e7dd0099a804e182ba9a13e8690 SHA1 76800723c02acae3a3922439e64058e92d235970 SHA256 7121979ba19e425e015de9db3622066eeeb722636032a33fdbd5e01727e2ff3a DIST ipe-7.1.1-src.tar.gz 1283803 RMD160 0dc1cd8204084751f979b941acb3769b9ea52fa5 SHA1 a4e85a50c0488721d68eb10bf3f8c5b3c99d4689 SHA256 749d916c0d9f2af9f92d09e2a9b79cba8f6e262ebb7ce8c806ddc0549ef2fdde -EBUILD ipe-7.0.13-r1.ebuild 2568 RMD160 e0f62d77eaa84a4d8b5029552d6c6b9f29f90ebd SHA1 5970aad7f91c05a2cb52452072d89ba12fb7bbff SHA256 a2c93051a772cc1dfa89c9046c03172b81c33793295679693efb817105df4f6d -EBUILD ipe-7.0.13.ebuild 2844 RMD160 25228c648129cce0c51da1b0e0819e87bba2bfdc SHA1 733af4d32fbe065a6d68308d9a1664447a7eb494 SHA256 4627036656d6aa6a4ce54b1fa86b5e94b8432048ec9591200a00e425c2e1eb60 +DIST ipe-7.1.2-src.tar.gz 1416404 RMD160 7ddf4f624be5d4c591096e85165cc6c5271e548b SHA1 7c55d2b72bb256dc99b18145644ae27edc9a056c SHA256 3390de67ee22b2de74acfab2e9fb29bcfd6fe180688086febb758dc8a82eda11 EBUILD ipe-7.0.14.ebuild 2568 RMD160 e0f62d77eaa84a4d8b5029552d6c6b9f29f90ebd SHA1 5970aad7f91c05a2cb52452072d89ba12fb7bbff SHA256 a2c93051a772cc1dfa89c9046c03172b81c33793295679693efb817105df4f6d EBUILD ipe-7.1.0.ebuild 2550 RMD160 aa3cce7cc8b692f85abb45240ac949c75030c1de SHA1 0a146d99b0375714f6c40f69a0b08601677cac8c SHA256 e7c148a5496287deec5e3ac3d3809285ce58f2f26dc807b0655faee00ea9949b EBUILD ipe-7.1.1.ebuild 2550 RMD160 aa3cce7cc8b692f85abb45240ac949c75030c1de SHA1 0a146d99b0375714f6c40f69a0b08601677cac8c SHA256 e7c148a5496287deec5e3ac3d3809285ce58f2f26dc807b0655faee00ea9949b +EBUILD ipe-7.1.2.ebuild 2550 RMD160 aa3cce7cc8b692f85abb45240ac949c75030c1de SHA1 0a146d99b0375714f6c40f69a0b08601677cac8c SHA256 e7c148a5496287deec5e3ac3d3809285ce58f2f26dc807b0655faee00ea9949b diff --git a/media-gfx/ipe/ipe-7.1.2.ebuild b/media-gfx/ipe/ipe-7.1.2.ebuild new file mode 100644 index 0000000..ef2a927 --- /dev/null +++ b/media-gfx/ipe/ipe-7.1.2.ebuild @@ -0,0 +1,95 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="2" +inherit eutils toolchain-funcs qt4-r2 + +DESCRIPTION="A drawing editor which creates figures for inclusion in LaTeX documents and makes PDF presentations." +HOMEPAGE="http://ipe7.sourceforge.net/" +SRC_URI="mirror://sourceforge/ipe7/ipe/${P}-src.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +RESTRICT="mirror" +# highprec: applies patch in order to write coordinates with higher precision +IUSE="highprec" + +DEPEND=" + app-text/texlive-core + >=dev-lang/lua-5.1 + media-libs/freetype:2 + sys-libs/zlib + >=x11-libs/cairo-1.8.0 + x11-libs/qt-core:4 + x11-libs/qt-gui:4 + " + +S=${S}/src +COMMONDIR=/usr/share/ipe/common + + +search_urw_fonts() { + local texmfdist="$(kpsewhich -var-value=TEXMFDIST)" # colon-separated list of paths + local urwdir=fonts/type1/urw # according to TeX directory structure + local IFS="${IFS}:" # add colon as field separator + for dir in ${texmfdist}; do + if [[ -d "${dir}/${urwdir}" ]]; then + URWFONTDIR="${dir}/${urwdir}" + return 0 + fi + done + + return 1 +} + +src_prepare() { + if use highprec; then + einfo "Adding patch for higher output precision" + epatch "${FILESDIR}"/${PN}-outputprecision.patch + fi +} + +pkg_setup() { + if search_urw_fonts; then + einfo "URW fonts found in ${URWFONTDIR}." + else + ewarn "Could not find directory containing URW fonts. Ipe will not" + ewarn "function properly without them." + fi +} + +src_compile() { + # fix detection of lua + sed -i -e 's/lua5.1/lua/g' config.mak || die + # don't strip installed binaries + sed -i -e 's/install -s/install/' common.mak || die + # use moc instead of moc-qt4 + sed -i -e 's/moc-qt4/moc/' config.mak || die + + # -j1, since there are no deps in the Makefiles on libipe + emake -j1 CXX=$(tc-getCXX) IPEPREFIX="/usr" \ + IPEDOCDIR="/usr/share/doc/${PF}" || die "emake failed" +} + +src_install() { + emake install IPEPREFIX="/usr" IPEDOCDIR="/usr/share/doc/${PF}" \ + INSTALL_ROOT="${D}" || die "emake install failed" + dodoc ../{news,readme}.txt || die + + # Link style sheets + if [ -d $COMMONDIR/styles ]; then + einfo "Linking common style sheets from $COMMONDIR" + for f in $COMMONDIR/styles/*; do + einfo " Linking ${f##*/}" + dosym $f usr/share/ipe/${PV}/styles/${f##*/} + done + + elog "Style sheets from $COMMONDIR/styles have been symlinked to" + elog "the style sheet directory of ${P}. If you add additional" + elog "style sheets later to $COMMONDIR/styles you may symlink" + elog "them by hand to '/usr/share/ipe/${PV}/styles/'." + fi +} + -- 2.39.5