From: Stefan Huber Date: Fri, 11 Jan 2019 20:29:16 +0000 (+0100) Subject: Add ipe-7.2.8 X-Git-Url: https://git.sthu.org/?a=commitdiff_plain;h=34d6d51cd4be1048af1b25867300e63876fb870a;p=shuber-gentoo-overlay.git Add ipe-7.2.8 --- diff --git a/media-gfx/ipe/Manifest b/media-gfx/ipe/Manifest index ec07b0e..1b6fd33 100644 --- a/media-gfx/ipe/Manifest +++ b/media-gfx/ipe/Manifest @@ -1,5 +1,7 @@ AUX ipe-outputprecision.patch 2504 BLAKE2B 7db95c3cf1298704e032001e3f5d86164d0c0bb86b05ac0de01f5bc3e27e7a538bc3c4828a37f6581ed96fbe6c62eb39ada76f2e6b9a7081e5ab4575f614eb3b SHA512 13692eb5d0934147195b894f4fc378bf9f8def020cf12066025c6973097a753860f884cc8de6dc686b1bff35603874efaa814fb82838d7695f31f023109c7d83 DIST ipe-7.1.10-src.tar.gz 1797408 BLAKE2B 1a9504883401f36ef169789d1077a1848f9abbf3bda1ec376e66334a8e4fb1fe0ea8fe4fee9751eee48cff074f6b1f4da1cce7d223657da22c33880884662a5b SHA512 c3e8d1ae0f2a5803f24d035b85ba8396fc7c4134e0de80ecf72fc335d3554cc84231d9f06dc4eb2bb17edc3344e54a8f5965b285dc5a7de3307083061b9c008a DIST ipe-7.2.7-src.tar.gz 1561350 BLAKE2B d6b16174da0cdb243f60771a38fda27ded90c100234af597239f858ac77a93bd1df1310f2615a7e26f876561976040488accf36e6bc6fdc2800d7fbc759dd067 SHA512 01c855f77814e59c56198fd9216be61ac7b9b6de827eaa18cbd9464c6c5116ca11d2d3b64a71edee94aecafe0d731352455e476657c7d2e9a2237e0cfa1f7bf5 +DIST ipe-7.2.8-src.tar.gz 1847318 BLAKE2B de15edab07884f3fcad8ee14a063c9682e2f2f148fcb7205a69815fb91bc3abb120ab06280f6571e878fc0a219c2932b51db2dcba71045cd9876c7fd8919e649 SHA512 841428ccaf3ac8fef417c8c0868f2e95e7d8f39f670d3cc368a26eb8fa5f2615a67c6b1cd9692833e85f3db4731e6146537fed1fba64dee62458ecf403c897e6 EBUILD ipe-7.1.10.ebuild 2410 BLAKE2B 69f1255d1d9530a04142515d6143472d2814e1516a2c9c0440b795ef7fd619657c86834fc3495364a28397ad6f9c3653005dc7b8f349b092a53cbd659b741658 SHA512 0ca1ba023d61cd88b484108d63ab38c521e170a0c53df0990be5a8c7f9b4212745b8874f3410c1c54747acea75cdfd4c5cc147de4c1c3cd7c5a389e502c9907f EBUILD ipe-7.2.7.ebuild 2390 BLAKE2B 63ed211dc6b9553dcbc5afa864e0e85b6c0a2716597b555d4ae41bba819bb1f74f4c80fd8f33d776941baa5448b63a8c88e234dde2ffa78170ac36e8f73af3f1 SHA512 95d0df6e50503b08a45ca73d4edbb8e7bda58e7c0c9482f7647eddeaa4cdae75fe9590ff0747639c1379d94e57b2a5487158c37fa195ff19690585533ff7c5f5 +EBUILD ipe-7.2.8.ebuild 2390 BLAKE2B 63ed211dc6b9553dcbc5afa864e0e85b6c0a2716597b555d4ae41bba819bb1f74f4c80fd8f33d776941baa5448b63a8c88e234dde2ffa78170ac36e8f73af3f1 SHA512 95d0df6e50503b08a45ca73d4edbb8e7bda58e7c0c9482f7647eddeaa4cdae75fe9590ff0747639c1379d94e57b2a5487158c37fa195ff19690585533ff7c5f5 diff --git a/media-gfx/ipe/ipe-7.2.8.ebuild b/media-gfx/ipe/ipe-7.2.8.ebuild new file mode 100644 index 0000000..21a02f9 --- /dev/null +++ b/media-gfx/ipe/ipe-7.2.8.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 +}