From 539398a6984ca7db9c6cee8d57ad4df113b1610f Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Tue, 19 Jul 2016 22:07:33 +0200 Subject: [PATCH] Add ipe-7.2.5 --- media-gfx/ipe/Manifest | 2 + media-gfx/ipe/ipe-7.2.5.ebuild | 98 ++++++++++++++++++++++++++++++++++ 2 files changed, 100 insertions(+) create mode 100644 media-gfx/ipe/ipe-7.2.5.ebuild diff --git a/media-gfx/ipe/Manifest b/media-gfx/ipe/Manifest index d22d25f..6e0a075 100644 --- a/media-gfx/ipe/Manifest +++ b/media-gfx/ipe/Manifest @@ -2,6 +2,8 @@ AUX ipe-outputprecision.patch 2504 SHA256 142f967987a84d2c45d0ca90d3a4b72360dd72 DIST ipe-7.1.10-src.tar.gz 1797408 SHA256 7fcede66270ec07e0f64634e297a6d1ab460cc434031d563736469250545934f SHA512 c3e8d1ae0f2a5803f24d035b85ba8396fc7c4134e0de80ecf72fc335d3554cc84231d9f06dc4eb2bb17edc3344e54a8f5965b285dc5a7de3307083061b9c008a WHIRLPOOL 97b7054991689223189d7b8839f302fe29baf22180a971acf08c1422790d344392c68cc4f617fd4daef395302d6b90d44cab50be5078f6400149b9f5f417da0b DIST ipe-7.2.3-src.tar.gz 1897577 SHA256 4f463c4315aa894f8ae2cb3ef81bbda71f98ebbc3db7a67c16ea37a95320aa8b SHA512 56f9a46ab6581a8ccba63eebe4936bc8ff4f0ad138ff1805bea4ad401cc9a4fbb1a43ae14082e3ab922cd12fcde94c303dad5dfb27acf5128283cf10e008a37c WHIRLPOOL 63fd74b17a484c952ace12c548803540e15aa3e457cb1c86407b1659419c63c8d5b3c87c8335f03da2376a314ac96d361b3f2b390ff8f07e279072cdabd143c1 DIST ipe-7.2.4-src.tar.gz 2166294 SHA256 ee2fc8fb93262603cb01e2ed2e30cbc0268d5457c4d48f88b38747da4c8c070a SHA512 9ace985b46774692c998994e088ffbdf5ca17b02ae0c5cc115a070ef6c8236b71443c963b98884c5051f222ea18a2dfc4d2a25c40a9bd21b83000279f6e9a134 WHIRLPOOL 2fa3d0f6d7042c2ad79bce9162c0d89d2816bcb9393370d9282e62d0d026ec76f3398d96d77f3577eb55279107620d9fd41dc5f50e786a60e9005df788fe5e27 +DIST ipe-7.2.5-src.tar.gz 1775528 SHA256 3e1068959e41ebba350ff5373b459dec0ca174a7a761aee2b8ac72ab156be60c SHA512 09e3b6d5604793c43ea151ffc070b99bf717f7e41116662f1020266ca35da5630e2a9ecf945de50e7da7a713cbed78957f1fe4a7085f47cdd81b400ed7720bb5 WHIRLPOOL 22370517a888b146db1bf2aa379f60d325da0a923992dd7654a65a7f0496656af9f7f3a23a5932f1c7bb4e2b2e48c52b9d1bbb963d199fa4cc4f5198b6637cf1 EBUILD ipe-7.1.10.ebuild 2410 SHA256 4ca89f6091fa6cc7cf05a48a2dab42fc25c4b4af1c518c5c20d6440b36b65c50 SHA512 0ca1ba023d61cd88b484108d63ab38c521e170a0c53df0990be5a8c7f9b4212745b8874f3410c1c54747acea75cdfd4c5cc147de4c1c3cd7c5a389e502c9907f WHIRLPOOL 12d55e3c8d7d376c5ac01ccefa27995788b5bf2955746916bf4c8997cf62277c1dffbeeea31ca4412d9f0259904285504e91b8173988ef5f3fded844b107314b EBUILD ipe-7.2.3.ebuild 2410 SHA256 4ca89f6091fa6cc7cf05a48a2dab42fc25c4b4af1c518c5c20d6440b36b65c50 SHA512 0ca1ba023d61cd88b484108d63ab38c521e170a0c53df0990be5a8c7f9b4212745b8874f3410c1c54747acea75cdfd4c5cc147de4c1c3cd7c5a389e502c9907f WHIRLPOOL 12d55e3c8d7d376c5ac01ccefa27995788b5bf2955746916bf4c8997cf62277c1dffbeeea31ca4412d9f0259904285504e91b8173988ef5f3fded844b107314b EBUILD ipe-7.2.4.ebuild 2410 SHA256 4ca89f6091fa6cc7cf05a48a2dab42fc25c4b4af1c518c5c20d6440b36b65c50 SHA512 0ca1ba023d61cd88b484108d63ab38c521e170a0c53df0990be5a8c7f9b4212745b8874f3410c1c54747acea75cdfd4c5cc147de4c1c3cd7c5a389e502c9907f WHIRLPOOL 12d55e3c8d7d376c5ac01ccefa27995788b5bf2955746916bf4c8997cf62277c1dffbeeea31ca4412d9f0259904285504e91b8173988ef5f3fded844b107314b +EBUILD ipe-7.2.5.ebuild 2410 SHA256 4ca89f6091fa6cc7cf05a48a2dab42fc25c4b4af1c518c5c20d6440b36b65c50 SHA512 0ca1ba023d61cd88b484108d63ab38c521e170a0c53df0990be5a8c7f9b4212745b8874f3410c1c54747acea75cdfd4c5cc147de4c1c3cd7c5a389e502c9907f WHIRLPOOL 12d55e3c8d7d376c5ac01ccefa27995788b5bf2955746916bf4c8997cf62277c1dffbeeea31ca4412d9f0259904285504e91b8173988ef5f3fded844b107314b diff --git a/media-gfx/ipe/ipe-7.2.5.ebuild b/media-gfx/ipe/ipe-7.2.5.ebuild new file mode 100644 index 0000000..b4962b7 --- /dev/null +++ b/media-gfx/ipe/ipe-7.2.5.ebuild @@ -0,0 +1,98 @@ +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=4 +inherit eutils toolchain-funcs + +DESCRIPTION="Drawing editor for creating figures in PDF or PS formats" +HOMEPAGE="http://ipe.otfried.org" +SRC_URI="https://dl.bintray.com/otfried/generic/ipe/${PV%.*}/${P}-src.tar.gz" + +RESTRICT="mirror" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="highprec" + +RDEPEND="app-text/texlive-core + >=dev-lang/lua-5.2 + media-libs/freetype:2 + x11-libs/cairo + dev-qt/qtcore:5 + dev-qt/qtwidgets:5" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +S="${WORKDIR}/${P}/src" +COMMONDIR=/usr/share/ipe/common + +search_urw_fonts() { + # colon-separated list of paths + local texmfdist="$(kpsewhich -var-value=TEXMFDIST)" + # according to TeX directory structure + local urwdir=fonts/type1/urw + # add colon as field separator + local IFS="${IFS}:" dir + for dir in ${texmfdist}; do + if [[ -d ${dir}/${urwdir} ]]; then + URWFONTDIR="${dir}/${urwdir}" + return 0 + fi + done + return 1 +} + +src_prepare() { + sed -i \ + -e 's/fpic/fPIC/' \ + -e 's_moc_/usr/lib64/qt5/bin/moc_' \ + -e "s:\$(IPEPREFIX)/lib:\$(IPEPREFIX)/$(get_libdir):g" \ + config.mak || die + sed -i -e 's/install -s/install/' common.mak || die + + 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" + ewarn "Ipe will not function properly without them." + fi +} + +src_compile() { + emake \ + CXX=$(tc-getCXX) \ + IPEPREFIX="${EPREFIX}/usr" \ + IPEDOCDIR="${EPREFIX}/usr/share/doc/${PF}/html" \ + LUA_PACKAGE=lua +} + +src_install() { + emake install \ + IPEPREFIX="${EPREFIX}/usr" \ + IPEDOCDIR="${EPREFIX}/usr/share/doc/${PF}/html" \ + INSTALL_ROOT="${ED}" + dodoc ../{news,readme}.txt + doicon ipe/icons/ipe.png + make_desktop_entry ipe Ipe ipe + # 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