From f683ca59c0c53d4671d4464f386798303731e9ed Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Mon, 12 Dec 2016 21:58:52 +0100 Subject: [PATCH] Add ipe-7.2.7 The current lua:5.3::gentoo package ships a lua5.3.pc file that is broken; it has to be fixed manually. --- media-gfx/ipe/Manifest | 2 + media-gfx/ipe/ipe-7.2.7.ebuild | 97 ++++++++++++++++++++++++++++++++++ 2 files changed, 99 insertions(+) create mode 100644 media-gfx/ipe/ipe-7.2.7.ebuild diff --git a/media-gfx/ipe/Manifest b/media-gfx/ipe/Manifest index 653556a..a03183b 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.5-src.tar.gz 1775528 SHA256 3e1068959e41ebba350ff5373b459dec0ca174a7a761aee2b8ac72ab156be60c SHA512 09e3b6d5604793c43ea151ffc070b99bf717f7e41116662f1020266ca35da5630e2a9ecf945de50e7da7a713cbed78957f1fe4a7085f47cdd81b400ed7720bb5 WHIRLPOOL 22370517a888b146db1bf2aa379f60d325da0a923992dd7654a65a7f0496656af9f7f3a23a5932f1c7bb4e2b2e48c52b9d1bbb963d199fa4cc4f5198b6637cf1 DIST ipe-7.2.6-src.tar.gz 1559458 SHA256 0bc880c564f6f66566305875e3a83a626241e01634e343e507d97d6e74de7d49 SHA512 d03539ac0ed52539d42c0df2b9d6a97141a61dcc87873a0c58d9d044fad9a9d30cac67edc7a2d58f21c937095d6ea6c2218287b5d88aebf5d12de807be623034 WHIRLPOOL 9ab32271db79e1dab9ea66c5dce1bf5bcbee7556263729978abffd7cbe0d109ee147c537a5509400e6932d9574680a74e7f86716cf1f7b80dad7afccfd9496ab +DIST ipe-7.2.7-src.tar.gz 1561350 SHA256 d66d3f2619e3e6ff617f42c2e3695c3db6e2a64adcc3d7613214e5fd14c49f22 SHA512 01c855f77814e59c56198fd9216be61ac7b9b6de827eaa18cbd9464c6c5116ca11d2d3b64a71edee94aecafe0d731352455e476657c7d2e9a2237e0cfa1f7bf5 WHIRLPOOL ca2666a8e546a15bc7993db5632947cf436ae545f9f9ffb1b6585d11818ea6a877124f390cd65bc9ec2aa27e710f767437e29f4c5518c8769d0e4b9edd26f3cf EBUILD ipe-7.1.10.ebuild 2410 SHA256 4ca89f6091fa6cc7cf05a48a2dab42fc25c4b4af1c518c5c20d6440b36b65c50 SHA512 0ca1ba023d61cd88b484108d63ab38c521e170a0c53df0990be5a8c7f9b4212745b8874f3410c1c54747acea75cdfd4c5cc147de4c1c3cd7c5a389e502c9907f WHIRLPOOL 12d55e3c8d7d376c5ac01ccefa27995788b5bf2955746916bf4c8997cf62277c1dffbeeea31ca4412d9f0259904285504e91b8173988ef5f3fded844b107314b EBUILD ipe-7.2.5.ebuild 2410 SHA256 4ca89f6091fa6cc7cf05a48a2dab42fc25c4b4af1c518c5c20d6440b36b65c50 SHA512 0ca1ba023d61cd88b484108d63ab38c521e170a0c53df0990be5a8c7f9b4212745b8874f3410c1c54747acea75cdfd4c5cc147de4c1c3cd7c5a389e502c9907f WHIRLPOOL 12d55e3c8d7d376c5ac01ccefa27995788b5bf2955746916bf4c8997cf62277c1dffbeeea31ca4412d9f0259904285504e91b8173988ef5f3fded844b107314b EBUILD ipe-7.2.6.ebuild 2410 SHA256 4ca89f6091fa6cc7cf05a48a2dab42fc25c4b4af1c518c5c20d6440b36b65c50 SHA512 0ca1ba023d61cd88b484108d63ab38c521e170a0c53df0990be5a8c7f9b4212745b8874f3410c1c54747acea75cdfd4c5cc147de4c1c3cd7c5a389e502c9907f WHIRLPOOL 12d55e3c8d7d376c5ac01ccefa27995788b5bf2955746916bf4c8997cf62277c1dffbeeea31ca4412d9f0259904285504e91b8173988ef5f3fded844b107314b +EBUILD ipe-7.2.7.ebuild 2390 SHA256 b6bdf3f22ac2d57e4a2c3cfb75353630509e9e420cc6ff1412a0f3ed88897861 SHA512 95d0df6e50503b08a45ca73d4edbb8e7bda58e7c0c9482f7647eddeaa4cdae75fe9590ff0747639c1379d94e57b2a5487158c37fa195ff19690585533ff7c5f5 WHIRLPOOL 459dc2734f2cab2abd3495fd656d65e901e29700da9dcb7a4361b9f5f4f7b840c10b54a0e92c8b3857379e098499825ee660c1db21769528f7c1fc52222aad5c diff --git a/media-gfx/ipe/ipe-7.2.7.ebuild b/media-gfx/ipe/ipe-7.2.7.ebuild new file mode 100644 index 0000000..21a02f9 --- /dev/null +++ b/media-gfx/ipe/ipe-7.2.7.ebuild @@ -0,0 +1,97 @@ +# 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.3 + 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" +} + +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