From 8aa5617aef9fbc09e1f2d325ea9591c03dfc32c8 Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Sun, 25 Oct 2015 11:06:44 +0100 Subject: [PATCH] Add ipe-7.1.9 --- media-gfx/ipe/Manifest | 2 + media-gfx/ipe/ipe-7.1.9.ebuild | 98 ++++++++++++++++++++++++++++++++++ 2 files changed, 100 insertions(+) create mode 100644 media-gfx/ipe/ipe-7.1.9.ebuild diff --git a/media-gfx/ipe/Manifest b/media-gfx/ipe/Manifest index 03503f5..d0a0704 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.3-src.tar.gz 1497624 SHA256 4b3c537aeb9720e74ee5e63d50e1ec1f760f90b3896ffb9acc8c20353f60b8e9 SHA512 eea85ed6f4bc23e746222e01f4cdfd101c9c18aeb19fcba9abff565a65614a2a5e6630ddf9f7b024cac225582a34238a22f6fc5cf7dcc3733b8281ce844ef23d WHIRLPOOL a1b46452fb3b2d5da72a411eca48a2e24331416727b4013cecebad962817d3029c63a972ae7ee743b35cfe9adc4dc3c59d04572e9b472fdf774ad67202b0b264 DIST ipe-7.1.7-src.tar.gz 1758157 SHA256 ec670cd7f0fa521271fc54bf9b663570d82280bdbe405be6de59535fec7c00d2 SHA512 d47b984bfc5d605b4b1ee14ec94ec0abb923955c564d9a25c62f8b3bab7dd40a302ee683654ac5dce7a9903f60ca41c8621c09e88bda9d12afeaa1ad4c6d4b75 WHIRLPOOL 3ccdb72207359d1c27894b5d9d606cc4f648fa2246e098f1a6aea9b5e08f69b256cd1e00afd47987c559e2fb64c5cba2d533d5c812fa9f0dfd9c047decb4110c DIST ipe-7.1.8-src.tar.gz 1663641 SHA256 6a7b8dfb0a012ef9e96b62c317974d910ab6904bef29ae7636d5ac1cb26fa6ff SHA512 4e76dc0d012de9dddb3f7494494a7a1c51b6240934c4941e1b38c2578da90487f3825f59526497b52d78330498b5e2c4459dbd3ceb237fe942d0fa235ece0e38 WHIRLPOOL 3b6c56254a12e55da42c921985501d6b708b6cbf0a69754b3058ad5f45a1189cd9a42994f659576b041e9d72877192026bedc98013c896b7eb22a1b8eed78e33 +DIST ipe-7.1.9-src.tar.gz 1664418 SHA256 b61eb2674d09c12084cc5715113fa1e6083c28575c86d3b225fe6eaf250133d6 SHA512 3b8050215c2203595c31f8b604a740b347c0119c0c35cb92beab172c49ad8cad834bffe32021969efb66d3bc6867739f39888f3be034f74857295f21a4eb087f WHIRLPOOL 2792eb94b9d62e8f5b8bb1009141aff67f47fead371f7e55a73beedccb533c2b89533dcf7d092b9cb53296c2eb5118d2544b40a2dddc13530d5881ca82ff3ee9 EBUILD ipe-7.1.3.ebuild 2345 SHA256 67b7284d5416e8a2df6d38d6457d050aeb363799f438a5ca58b5a8dfb62e7b54 SHA512 f4f1d8a3c213a55c8f98165e41da6682720b4e9a525f6da27437de94edef9aecde38c537257b27b21e786fd9cabbbfa039494673d73b55e2a22d7bddc5d1232b WHIRLPOOL 2a94bb4c3ecf176ef3fca2e86403a8ab514c2b4217959d34171e80bfe7aa33ec6511ed6ee648cd74e358968b9b0d1017e49ca34b5df81ab92521247bedbf9fad EBUILD ipe-7.1.7.ebuild 2411 SHA256 53d48124818681f23725ca5f7494834ed8b036c9ab9e2d7db0e77bc9398d61f7 SHA512 064c9025d99488609542aaef6209a852185444556e5a79065fcd15fe66e4dd7741d482bf03718e0b1551bae610c93aeb5b4fc73cfe6f74caa0cedaa99d5b13e4 WHIRLPOOL 169f2d34e38a7783e2169387fd549747b772acdde95239f51feee5be13c613f5a5fa651b4a0c81a89493eb62bdde06685db1458af56d2ebd4d18c969a37e7610 EBUILD ipe-7.1.8.ebuild 2593 SHA256 eb1544352bd1644c9ee91c880e5397be3e5bd0c54a46ec5c301da6e9026a1d16 SHA512 fcf6b750625749fe1100df5acee76865bebefdbf1f09eed769daf545baa66b5d881208a3c75889c255ad5c2d5edf96e9fd3133729cbdeefce726092b1386936a WHIRLPOOL 5db8e3bdec92a09d2f250fe80424a1b774107663772cdf66ffc30c3de22f628fac363208ed1defac65ff002e1da02b5e3ab6f1a123480a08ec6ce565569cdf8e +EBUILD ipe-7.1.9.ebuild 2424 SHA256 964fa47b82681da962ca1dccebaffafc7d19f5b54ba0cdba11d409a37bf90bef SHA512 2fb4c2d3d3a1c276dbb422c21eccf1eed65925c904bfa5b48e822ca07c1a149416d94318dc98ac5742e401af9ccdf9f6587cc1c4cbf441e571f940fdf47ae84c WHIRLPOOL 143b6081943a8c497db91bcaf960e07dbc0979e18aff45f750279f5389c59d7cc3cf5677c22a9ffd60e4f9cdf4fae5febd8e0b7e98c8dd45caf08e52336e3d35 diff --git a/media-gfx/ipe/ipe-7.1.9.ebuild b/media-gfx/ipe/ipe-7.1.9.ebuild new file mode 100644 index 0000000..e4cccb9 --- /dev/null +++ b/media-gfx/ipe/ipe-7.1.9.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://raw.githubusercontent.com/otfried/ipe/master/releases/7.1/${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